32 #include "G4HCofThisEvent.hh"
33 #include "G4VHitsCollection.hh"
71 if( pathName(0) !=
'/' ) pathName.
prepend(
"/");
72 if( pathName(pathName.length()-1) !=
'/' ) pathName +=
"/";
74 if(numberOfCollections<1)
return;
75 for(
G4int i=0;i<numberOfCollections;i++)
84 <<
"> is registored at " << pathName <<
G4endl;
95 << SDname <<
"/" << DCname <<
"> has already been reginstered." <<
G4endl;
99 G4cout <<
"G4SDManager::AddNewCollection : the collection <"
100 << SDname <<
"/" << DCname <<
"> is registered at " << i <<
G4endl;
120 if( pathName(0) !=
'/' ) pathName.
prepend(
"/");
127 if( pathName(0) !=
'/' ) pathName.
prepend(
"/");
135 {
G4cout <<
"<" << colName <<
"> is not found." <<
G4endl; }
137 {
G4cout <<
"<" << colName <<
"> is ambiguous." <<
G4endl; }
G4int GetCollectionID(G4String HCname) const
void AddNewDetector(G4VSensitiveDetector *aSD, G4String treeStructure)
void AddNewCollection(G4String SDname, G4String DCname)
G4int GetCollectionID(G4String colName)
void Initialize(G4HCofThisEvent *HCE)
void Activate(G4String aName, G4bool sensitiveFlag)
void TerminateCurrentEvent(G4HCofThisEvent *HCE)
G4String & prepend(const char *)
G4int Registor(G4String SDname, G4String HCname)
G4GLOB_DLL std::ostream G4cout
void Terminate(G4HCofThisEvent *HCE)
void Activate(G4String dName, G4bool activeFlag)
G4SDmessenger * theMessenger
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
void AddNewDetector(G4VSensitiveDetector *aSD)
G4HCofThisEvent * PrepareNewEvent()
static G4ThreadLocal G4SDManager * fSDManager
G4int GetNumberOfCollections() const
static G4SDManager * GetSDMpointer()
G4String GetCollectionName(G4int id) const
G4String GetPathName() const
static G4SDManager * GetSDMpointerIfExist()
G4VSensitiveDetector * FindSensitiveDetector(G4String aName, G4bool warning=true)