38 for(
size_t i=0;i<HClist.size();i++)
39 {
if(HClist[i]==HCname && SDlist[i]==SDname)
return -1; }
40 HClist.push_back(HCname);
41 SDlist.push_back(SDname);
48 if(HCname.
index(
"/")==std::string::npos)
50 for(
size_t j=0;j<HClist.size();j++)
61 for(
size_t j=0;j<HClist.size();j++)
81 <<
"> does not have a registered hits collection."
88 <<
"> has more than one registered hits collections."
90 G4cerr <<
"Candidates are : ";
96 for(
size_t k=0;k<SDlist.size();k++)
97 {
if(SDlist[k]==aSD->
GetName())
return k; }
G4GLOB_DLL std::ostream G4cerr
G4int Registor(G4String SDname, G4String HCname)
G4int GetCollectionID(G4String HCname) const
str_size index(const char *, G4int pos=0) const
G4int GetNumberOfCollections() const
G4String GetCollectionName(G4int id) const