38 for(std::size_t i = 0; i < HClist.size(); ++i)
40 if(HClist[i] == HCname && SDlist[i] == SDname)
43 HClist.push_back(HCname);
44 SDlist.push_back(SDname);
45 return (
G4int)HClist.size();
51 if(HCname.find(
"/") == std::string::npos)
53 for(std::size_t j = 0; j < HClist.size(); ++j)
55 if(HClist[j] == HCname)
65 for(std::size_t j = 0; j < HClist.size(); ++j)
86 <<
"> does not have a registered hits collection." <<
G4endl;
92 <<
"> has more than one registered hits collections." <<
G4endl;
93 G4cerr <<
"Candidates are : ";
101 for(std::size_t k = 0; k < SDlist.size(); ++k)
103 if(SDlist[k] == aSD->
GetName())
G4GLOB_DLL std::ostream G4cerr
G4int Registor(G4String SDname, G4String HCname)
G4int GetCollectionID(G4String HCname) const
G4int GetNumberOfCollections() const
G4String GetCollectionName(G4int id) const