17#include "GDMLProcessor.hh"
18#include "GDMLExpressionEvaluator.hh"
21#include "G4BooleanSolid.hh"
29 m_tofversion=tofversion;
44 fWorld=(G4VPhysicalVolume *)GDMLProcessor::GetInstance()->GetWorldVolume();
46 G4Exception(
"World volume not set properly check your setup selection criteria or GDML input!");
51 G4LogicalVolume* logicalBes =
const_cast<G4LogicalVolume*
>( GDMLProcessor::GetInstance()->GetLogicalVolume(
"logicalWorld" ) );
56 std::cout <<
"ExBesDetectorConstruction: You are using the old Tofdetector " << std::endl;
59 else if(m_tofversion==4)
61 std::cout <<
"ExBesDetectorConstruction: You are using the new (MRPC) Tofdetector " << std::endl;
66 std::cout <<
"ExBesDetectorConstruction: TofDetector is not well defined! \n " << std::endl;
67 std::cout <<
" Use in your jobOption script " << std::endl;
68 std::cout <<
" TrkExtAlg.Tof = 4; for the new Tof (MRPC Endcaps) " << std::endl;
69 std::cout <<
" TrkExtAlg.Tof = 2; for the old Tof. " << std::endl;
G4VPhysicalVolume * Construct()
~ExtBesDetectorConstruction()
ExtBesDetectorConstruction(const bool bFieldOn, int tofversion)
void Construct(G4LogicalVolume *)
void Construct(G4LogicalVolume *)
void Construct(G4LogicalVolume *logicBes)
void Construct_mrpc(G4LogicalVolume *logicBes)
void Construct(G4LogicalVolume *logicBes)