60 G4String trackerChamberSDname =
"Tracker";
70 G4cout <<
"Found " << auxmap->size()
71 <<
" volume(s) with auxiliary information."
73 for(G4GDMLAuxMapType::const_iterator iter=auxmap->begin();
74 iter!=auxmap->end(); iter++)
76 G4cout <<
"Volume " << ((*iter).first)->GetName()
77 <<
" has the following list of auxiliary information: "
79 for (G4GDMLAuxListType::const_iterator vit=(*iter).second.begin();
80 vit!=(*iter).second.end(); vit++)
82 G4cout <<
"--> Type: " << (*vit).type
83 <<
" Value: " << (*vit).value <<
G4endl;
91 for(G4GDMLAuxMapType::const_iterator iter=auxmap->begin();
92 iter!=auxmap->end(); iter++)
94 G4cout <<
"Volume " << ((*iter).first)->GetName()
95 <<
" has the following list of auxiliary information: "
97 for (G4GDMLAuxListType::const_iterator vit=(*iter).second.begin();
98 vit!=(*iter).second.end();vit++)
100 if ((*vit).type==
"SensDet")
102 G4cout <<
"Attaching sensitive detector " << (*vit).value
103 <<
" to volume " << ((*iter).first)->GetName()
115 G4cout << (*vit).value <<
" detector not found" <<
G4endl;
virtual void ConstructSDandField()
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
Definition of the G04DetectorConstruction class.
G4GLOB_DLL std::ostream G4cout
Definition of the G04SensitiveDetector class.
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
CommandLineParser * parser(0)
void AddNewDetector(G4VSensitiveDetector *aSD)
const G4GDMLAuxMapType * GetAuxMap() const
static G4SDManager * GetSDMpointer()
virtual G4VPhysicalVolume * Construct()
G04DetectorConstruction(const G4GDMLParser &parser)
std::map< G4LogicalVolume *, G4GDMLAuxListType > G4GDMLAuxMapType
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
Sensitive detector to be attached to the GDML geometry.