50 parser.
Read(
"Par02FullDetector.gdml" );
51 G4cout <<
"Geometry loaded from file .......Par02FullDetector.gdml " <<
G4endl;
57 for ( G4GDMLAuxMapType::const_iterator iter = aAuxMap->begin();
58 iter != aAuxMap->end(); ++iter ) {
59 for ( G4GDMLAuxListType::const_iterator vit = (*iter).second.begin();
60 vit != (*iter).second.end(); ++vit ) {
61 if ( (*vit).type ==
"FastSimModel" ) {
63 if ( ( myvol->
GetName() ).find(
"Tracker" ) != std::string::npos ) {
66 }
else if ( ( myvol->
GetName() ).find(
"HCal" ) != std::string::npos ) {
68 fHCalList.back()->AddRootLogicalVolume( myvol );
69 }
else if ( ( myvol->
GetName() ).find(
"ECal" ) != std::string::npos ) {
71 fECalList.back()->AddRootLogicalVolume( myvol );
72 }
else if ( ( myvol->
GetName() ).find(
"Muon" ) != std::string::npos ) {
74 fMuonList.back()->AddRootLogicalVolume( myvol );
76 G4cout << G4endl <<
"NOT A KNOWN DETECTOR !!!" <<
G4endl;
84 fTrackerList[ iterTracker ]->GetProductionCuts()->SetProductionCut
85 ( 1.0* ( ( *
fTrackerList[ iterTracker ]->GetRootLogicalVolumeIterator() )->
86 GetMaterial()->GetRadlen() ) );
92 fECalList[ iterECal ]->GetProductionCuts()->SetProductionCut
93 ( 0.5* ( ( *
fECalList[ iterECal ]->GetRootLogicalVolumeIterator() )->
94 GetMaterial()->GetRadlen() ) );
95 fECalList[ iterECal ]->GetProductionCuts()->
100 fHCalList[ iterHCal ]->GetProductionCuts()->SetProductionCut(
101 0.5* ( ( *
fHCalList[iterHCal]->GetRootLogicalVolumeIterator() )->
102 GetMaterial()->GetRadlen() ) );
103 fHCalList[ iterHCal ]->GetProductionCuts()->
Shortcut to the ordinary tracking for hadronic calorimeters.
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
std::vector< G4Region * > fTrackerList
A vector of the tracking detector regions.
virtual ~Par02DetectorConstruction()
G4GLOB_DLL std::ostream G4cout
Par02DetectorConstruction()
A default constructor.
Shortcut to the ordinary tracking for tracking detectors.
Shortcut to the ordinary tracking for electromagnetic calorimeters.
CommandLineParser * parser(0)
std::vector< G4Region * > fMuonList
A vector of the muon detector regions.
const G4GDMLAuxMapType * GetAuxMap() const
void Read(const G4String &filename, G4bool Validate=true)
virtual G4VPhysicalVolume * Construct()
A method invoked by G4RunManager::Initialize()
std::vector< G4Region * > fHCalList
A vector of the the hadronic calorimeter regions.
Definition of the Par02DetectorConstruction class.
const G4String & GetName() const
std::map< G4LogicalVolume *, G4GDMLAuxListType > G4GDMLAuxMapType
virtual void ConstructSDandField()
A method invoked by G4RunManager::Initialize() to construct thread local objects. ...
std::vector< G4Region * > fECalList
A vector of the the electromagnetic calorimeter regions.