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;
G4VPhysicalVolume * GetWorldVolume(const G4String &setupName="Default") const
const G4GDMLAuxMapType * GetAuxMap() const
G04DetectorConstruction(const G4GDMLParser &parser)
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
void AddNewDetector(G4VSensitiveDetector *aSD)
Definition of the G04DetectorConstruction class.
Sensitive detector to be attached to the GDML geometry.
CommandLineParser * parser(0)
virtual G4VPhysicalVolume * Construct()
std::map< G4LogicalVolume *, G4GDMLAuxListType > G4GDMLAuxMapType
static G4SDManager * GetSDMpointer()
Definition of the G04SensitiveDetector class.
G4GLOB_DLL std::ostream G4cout
virtual void ConstructSDandField()
const G4GDMLParser & fParser
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)