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++)
81 if( verboseLevel > 0 )
84 <<
"> is registored at " << pathName <<
G4endl;
95 ED <<
"G4SDManager::AddNewCollection : the collection <"
96 << SDname <<
"/" << DCname <<
"> has already been reginstered." <<
G4endl;
101 G4cout <<
"G4SDManager::AddNewCollection : the collection <"
102 << SDname <<
"/" << DCname <<
"> is registered at " << i <<
G4endl;
122 if( pathName(0) !=
'/' ) pathName.
prepend(
"/");
123 treeTop->
Activate(pathName,activeFlag);
129 if( pathName(0) !=
'/' ) pathName.
prepend(
"/");
137 {
G4cout <<
"<" << colName <<
"> is not found." <<
G4endl; }
139 {
G4cout <<
"<" << colName <<
"> is ambiguous." <<
G4endl; }
G4DLLIMPORT std::ostream G4cout
G4int Registor(G4String SDname, G4String HCname)
G4int GetCollectionID(G4String HCname) const
static G4SDManager * GetSDMpointer()
void TerminateCurrentEvent(G4HCofThisEvent *HCE)
G4HCofThisEvent * PrepareNewEvent()
void Activate(G4String dName, G4bool activeFlag)
void AddNewDetector(G4VSensitiveDetector *aSD)
G4int GetCollectionID(G4String colName)
G4VSensitiveDetector * FindSensitiveDetector(G4String dName, G4bool warning=true)
static G4SDManager * GetSDMpointerIfExist()
void AddNewCollection(G4String SDname, G4String DCname)
void Initialize(G4HCofThisEvent *HCE)
void Terminate(G4HCofThisEvent *HCE)
void Activate(G4String aName, G4bool sensitiveFlag)
void AddNewDetector(G4VSensitiveDetector *aSD, G4String treeStructure)
G4VSensitiveDetector * FindSensitiveDetector(G4String aName, G4bool warning=true)
G4String & prepend(const char *)
G4int GetNumberOfCollections() const
G4String GetCollectionName(G4int id) const
G4String GetPathName() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
std::ostringstream G4ExceptionDescription