57 return (
this==&right);
63 G4String remainingPath = treeStructure;
65 if( ! remainingPath.
isNull() )
70 if( tgtSDS ==
nullptr )
83 else if( tgtSD != aSD )
87 ed << aSD->
GetName() <<
" had already been stored in "
88 <<
pathName <<
". Object pointer is overwitten.\n";
89 ed <<
"It's users' responsibility to delete the old sensitive detector object.";
101 {
if( subD == st->dirName )
return st; }
108 {
if(aSDName == det->GetName())
return det; }
122 if( i !=
G4int(std::string::npos) ) subD.
remove(i+1);
130 if( aPath.
first(
'/') != std::string::npos )
134 if( tgtSDS ==
nullptr )
140 tgtSDS->
Activate(aName,sensitiveFlag);
145 for(
auto det :
detector) det->Activate(sensitiveFlag);
151 if( tgtSD ==
nullptr )
166 if( aPath.
first(
'/') != std::string::npos )
170 if( tgtSDS ==
nullptr )
184 if( tgtSD ==
nullptr )
197 { st->Initialize(HCE); }
200 {
if(dt->isActive()) dt->Initialize(HCE); }
207 { st->Terminate(HCE); }
210 {
if(dt->isActive()) dt->EndOfEvent(HCE); }
220 {
G4cout <<
" *** Active "; }
222 {
G4cout <<
" XXX Inactive "; }