39 for(
size_t i=0;i<HClist.size();i++)
40 {
if(HClist[i]==HCname && SDlist[i]==SDname)
return -1; }
41 HClist.push_back(HCname);
42 SDlist.push_back(SDname);
49 if(HCname.
index(
"/")==std::string::npos)
51 for(
size_t j=0;j<HClist.size();j++)
62 for(
size_t j=0;j<HClist.size();j++)
82 <<
"> does not have a registered hits collection."
89 <<
"> has more than one registered hits collections."
91 G4cerr <<
"Candidates are : ";
97 for(
size_t k=0;k<SDlist.size();k++)
98 {
if(SDlist[k]==aSD->
GetName())
return k; }
G4DLLIMPORT 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