30 #ifndef G4ScoringManager_h
31 #define G4ScoringManager_h 1
52 typedef std::vector<G4VScoringMesh*>
MeshVec;
53 typedef std::vector<G4VScoringMesh*>::iterator
MeshVecItr;
58 typedef std::map<G4int,G4VScoringMesh*>
MeshMap;
59 typedef std::map<G4int,G4VScoringMesh*>::iterator
MeshMapItr;
121 { fCurrentMesh = scm; }
123 {
return fCurrentMesh; }
125 { fCurrentMesh = 0; }
129 for(
MeshVecItr itr = fMeshVec.begin(); itr != fMeshVec.end(); itr++) {
130 (*itr)->SetVerboseLevel(vl);
135 {
return verboseLevel; }
137 {
return fMeshVec.size(); }
141 fMeshVec.push_back(scm);
145 {
return fMeshVec[i]; }
147 {
return fMeshVec[i]->GetWorldName(); }
152 if(writer) {
delete writer; }
static void SetReplicaLevel(G4int)
void RegisterScoreColorMap(G4VScoreColorMap *colorMap)
std::map< G4int, G4VScoringMesh * > MeshMap
G4String GetWorldName(G4int i) const
std::map< G4String, G4VScoreColorMap * >::const_iterator ColorMapDictConstItr
std::vector< G4VScoringMesh * >::const_iterator MeshVecConstItr
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
void ListScoreColorMaps()
std::map< G4int, G4VScoringMesh * >::const_iterator MeshMapConstItr
void DumpAllQuantitiesToFile(const G4String &meshName, const G4String &fileName, const G4String &option="")
std::vector< G4VScoringMesh * >::iterator MeshVecItr
G4int GetVerboseLevel() const
static G4ScoringManager * GetScoringManagerIfExist()
static G4int GetReplicaLevel()
void SetScoreWriter(G4VScoreWriter *sw)
std::map< G4String, G4VScoreColorMap * > ColorMapDict
void Accumulate(G4VHitsCollection *map)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
void Merge(const G4ScoringManager *scMan)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
std::vector< G4VScoringMesh * > MeshVec
G4VScoringMesh * GetCurrentMesh() const
std::map< G4int, G4VScoringMesh * >::iterator MeshMapItr
void SetCurrentMesh(G4VScoringMesh *scm)
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
void SetVerboseLevel(G4int vl)
static G4ScoringManager * GetScoringManager()
size_t GetNumberOfMesh() const
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
void SetVerboseLevel(G4int vl)
void RegisterScoringMesh(G4VScoringMesh *scm)
G4VScoringMesh * GetMesh(G4int i) const
void SetVerboseLevel(G4int vl)