55 : verboseLevel(0),fCurrentMesh(nullptr)
61 (*fColorMapDict)[fDefaultLinearColorMap->
GetName()] = fDefaultLinearColorMap;
63 (*fColorMapDict)[logColorMap->
GetName()] = logColorMap;
69 if (writer) {
delete writer; }
70 delete fDefaultLinearColorMap;
72 delete fQuantityMessenger;
78{ replicaLevel = lvl; }
80{
return replicaLevel; }
88 G4cout <<
" is calling G4VScoringMesh::Accumulate() of " << sm->GetWorldName() <<
G4endl; }
96 auto msh = fMeshMap.find(colID);
97 if(msh==fMeshMap.end())
101 fMeshMap[colID] = sm;
104 { sm = (*msh).second; }
111 for(
auto msh : fMeshVec)
112 {
if(msh->GetWorldName()==wName)
return msh; }
113 if(!sm && verboseLevel>9)
114 {
G4cout <<
"WARNING : G4ScoringManager::FindMesh() --- <" << wName <<
"> is not found. Null returned." <<
G4endl; }
121 for(
auto msh : fMeshVec) msh->List();
126 for(
auto msh : fMeshVec) msh->Dump();
139 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
140 colorMap = fDefaultLinearColorMap;
142 mesh->
DrawMesh(psName,colorMap,axflg);
144 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
145 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
160 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
161 colorMap = fDefaultLinearColorMap;
163 mesh->
DrawMesh(psName,idxPlane,iColumn,colorMap);
165 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
166 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
180 G4cerr <<
"ERROR : G4ScoringManager::DrawQuantityToFile() --- <"
181 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
194 G4cerr <<
"ERROR : G4ScoringManager::DrawAllQuantitiesToFile() --- <"
195 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
201 if(fColorMapDict->find(colorMap->
GetName()) != fColorMapDict->end())
203 G4cerr <<
"ERROR : G4ScoringManager::RegisterScoreColorMap -- "
204 << colorMap->
GetName() <<
" has already been registered. Method ignored." <<
G4endl;
208 (*fColorMapDict)[colorMap->
GetName()] = colorMap;
215 if(mItr == fColorMapDict->end()) {
return nullptr; }
216 return (mItr->second);
221 G4cout <<
"Registered Score Color Maps -------------------------------------------------------" <<
G4endl;
223 for(;mItr!=fColorMapDict->end();mItr++)
224 {
G4cout <<
" " << mItr->first; }
234 fMesh->
Merge(scMesh);
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
std::map< G4String, G4VScoreColorMap * > ColorMapDict
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
static G4int GetReplicaLevel()
G4VScoringMesh * GetMesh(G4int i) const
void Accumulate(G4VHitsCollection *map)
static void SetReplicaLevel(G4int)
size_t GetNumberOfMesh() const
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
void DumpAllQuantitiesToFile(const G4String &meshName, const G4String &fileName, const G4String &option="")
static G4ScoringManager * GetScoringManager()
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
void RegisterScoreColorMap(G4VScoreColorMap *colorMap)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
void ListScoreColorMaps()
void Merge(const G4ScoringManager *scMan)
static G4ScoringManager * GetScoringManagerIfExist()
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
const G4String & GetSDname() const
const G4String & GetName() const
virtual void DumpQuantityToFile(const G4String &psName, const G4String &fileName, const G4String &option)
virtual void DumpAllQuantitiesToFile(const G4String &fileName, const G4String &option)
void SetScoringMesh(G4VScoringMesh *sm)
void DrawMesh(const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
void Merge(const G4VScoringMesh *scMesh)