#include <G4SDStructure.hh>
Definition at line 47 of file G4SDStructure.hh.
◆ G4SDStructure()
G4SDStructure::G4SDStructure |
( |
G4String |
aPath | ) |
|
◆ ~G4SDStructure()
G4SDStructure::~G4SDStructure |
( |
| ) |
|
Definition at line 48 of file G4SDStructure.cc.
std::vector< G4VSensitiveDetector * > detector
std::vector< G4SDStructure * > structure
◆ Activate()
Definition at line 127 of file G4SDStructure.cc.
131 if( aPath.
first(
'/') !=
G4int(std::string::npos) )
135 if( tgtSDS ==
nullptr )
141 tgtSDS->
Activate(aName,sensitiveFlag);
146 for(
auto det :
detector) det->Activate(sensitiveFlag);
152 if( tgtSD ==
nullptr )
void Activate(G4bool activeFlag)
G4String & remove(str_size)
std::vector< G4VSensitiveDetector * > detector
void Activate(G4String aName, G4bool sensitiveFlag)
G4GLOB_DLL std::ostream G4cout
G4SDStructure * FindSubDirectory(G4String subD)
G4VSensitiveDetector * GetSD(G4String aName)
G4String ExtractDirName(G4String aPath)
std::vector< G4SDStructure * > structure
◆ AddNewDetector()
Definition at line 61 of file G4SDStructure.cc.
64 G4String remainingPath = treeStructure;
66 if( ! remainingPath.
isNull() )
71 if( tgtSDS ==
nullptr )
84 else if( tgtSD != aSD )
88 ed << aSD->
GetName() <<
" had already been stored in " 89 <<
pathName <<
". Object pointer is overwitten.\n";
90 ed <<
"It's users' responsibility to delete the old sensitive detector object.";
void AddNewDetector(G4VSensitiveDetector *aSD, G4String treeStructure)
std::ostringstream G4ExceptionDescription
G4String & remove(str_size)
void RemoveSD(G4VSensitiveDetector *)
std::vector< G4VSensitiveDetector * > detector
G4String & prepend(const char *)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4SDStructure * FindSubDirectory(G4String subD)
G4VSensitiveDetector * GetSD(G4String aName)
G4SDStructure(G4String aPath)
G4String ExtractDirName(G4String aPath)
std::vector< G4SDStructure * > structure
◆ ExtractDirName()
◆ FindSensitiveDetector()
Definition at line 163 of file G4SDStructure.cc.
167 if( aPath.
first(
'/') !=
G4int(std::string::npos) )
171 if( tgtSDS ==
nullptr )
185 if( tgtSD ==
nullptr )
G4String & remove(str_size)
G4GLOB_DLL std::ostream G4cout
G4SDStructure * FindSubDirectory(G4String subD)
G4VSensitiveDetector * GetSD(G4String aName)
G4String ExtractDirName(G4String aPath)
G4VSensitiveDetector * FindSensitiveDetector(G4String aName, G4bool warning=true)
◆ FindSubDirectory()
Definition at line 99 of file G4SDStructure.cc.
102 {
if( subD == st->dirName )
return st; }
std::vector< G4SDStructure * > structure
◆ GetSD()
Definition at line 106 of file G4SDStructure.cc.
109 {
if(aSDName == det->GetName())
return det; }
std::vector< G4VSensitiveDetector * > detector
◆ Initialize()
Definition at line 194 of file G4SDStructure.cc.
198 { st->Initialize(HCE); }
201 {
if(dt->isActive()) dt->Initialize(HCE); }
std::vector< G4VSensitiveDetector * > detector
std::vector< G4SDStructure * > structure
◆ ListTree()
void G4SDStructure::ListTree |
( |
| ) |
|
Definition at line 214 of file G4SDStructure.cc.
221 {
G4cout <<
" *** Active "; }
223 {
G4cout <<
" XXX Inactive "; }
std::vector< G4VSensitiveDetector * > detector
G4GLOB_DLL std::ostream G4cout
std::vector< G4SDStructure * > structure
◆ operator==()
◆ RemoveSD()
Definition at line 113 of file G4SDStructure.cc.
std::vector< G4VSensitiveDetector * > detector
◆ SetVerboseLevel()
void G4SDStructure::SetVerboseLevel |
( |
G4int |
vl | ) |
|
|
inline |
Definition at line 76 of file G4SDStructure.hh.
81 for(
size_t j=0; j<
detector.size(); j++)
82 {
detector[j]->SetVerboseLevel(vl); }
std::vector< G4VSensitiveDetector * > detector
std::vector< G4SDStructure * > structure
◆ Terminate()
Definition at line 204 of file G4SDStructure.cc.
208 { st->Terminate(HCE); }
211 {
if(dt->isActive()) dt->EndOfEvent(HCE); }
std::vector< G4VSensitiveDetector * > detector
std::vector< G4SDStructure * > structure
◆ detector
◆ dirName
◆ pathName
◆ structure
◆ verboseLevel
G4int G4SDStructure::verboseLevel |
|
private |
The documentation for this class was generated from the following files: