56 : verboseLevel(0),fCurrentMesh(0)
62 (*fColorMapDict)[fDefaultLinearColorMap->
GetName()] = fDefaultLinearColorMap;
64 (*fColorMapDict)[logColorMap->
GetName()] = logColorMap;
70 if (writer) {
delete writer; }
71 delete fDefaultLinearColorMap;
73 delete fQuantityMessenger;
79 { replicaLevel = lvl; }
81 {
return replicaLevel; }
97 for(
MeshVecItr itr = fMeshVec.begin(); itr != fMeshVec.end(); itr++) {
98 G4String smName = (*itr)->GetWorldName();
104 if(!sm && verboseLevel>9)
105 {
G4cout <<
"WARNING : G4ScoringManager::FindMesh() --- <" << wName <<
"> is not found. Null returned." <<
G4endl; }
113 for(
MeshVecConstItr itr = fMeshVec.begin(); itr != fMeshVec.end(); itr++) {
120 for(
MeshVecConstItr itr = fMeshVec.begin(); itr != fMeshVec.end(); itr++) {
135 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
136 colorMap = fDefaultLinearColorMap;
138 mesh->
DrawMesh(psName,colorMap,axflg);
140 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
141 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
156 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
157 colorMap = fDefaultLinearColorMap;
159 mesh->
DrawMesh(psName,idxPlane,iColumn,colorMap);
161 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
162 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
176 G4cerr <<
"ERROR : G4ScoringManager::DrawQuantityToFile() --- <"
177 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
190 G4cerr <<
"ERROR : G4ScoringManager::DrawAllQuantitiesToFile() --- <"
191 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
197 if(fColorMapDict->find(colorMap->
GetName()) != fColorMapDict->end())
199 G4cerr <<
"ERROR : G4ScoringManager::RegisterScoreColorMap -- "
200 << colorMap->
GetName() <<
" has already been registered. Method ignored." <<
G4endl;
204 (*fColorMapDict)[colorMap->
GetName()] = colorMap;
211 if(mItr == fColorMapDict->end()) {
return 0; }
212 return (mItr->second);
217 G4cout <<
"Registered Score Color Maps -------------------------------------------------------" <<
G4endl;
219 for(;mItr!=fColorMapDict->end();mItr++)
220 {
G4cout <<
" " << mItr->first; }
230 fMesh->
Merge(scMesh);
static void SetReplicaLevel(G4int)
const G4String & GetWorldName() const
void DrawMesh(const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
void RegisterScoreColorMap(G4VScoreColorMap *colorMap)
void Merge(const G4VScoringMesh *scMesh)
std::vector< G4VScoringMesh * >::const_iterator MeshVecConstItr
void Accumulate(G4THitsMap< G4double > *map)
void ListScoreColorMaps()
void DumpAllQuantitiesToFile(const G4String &meshName, const G4String &fileName, const G4String &option="")
virtual void DumpAllQuantitiesToFile(const G4String &fileName, const G4String &option)
std::vector< G4VScoringMesh * >::iterator MeshVecItr
G4GLOB_DLL std::ostream G4cout
static G4ScoringManager * GetScoringManagerIfExist()
static G4int GetReplicaLevel()
std::map< G4String, G4VScoreColorMap * > ColorMapDict
void Accumulate(G4VHitsCollection *map)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
G4VScoringMesh * FindMesh(const G4String &)
void Merge(const G4ScoringManager *scMan)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
void SetScoringMesh(G4VScoringMesh *sm)
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
static G4ScoringManager * GetScoringManager()
size_t GetNumberOfMesh() const
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
G4VScoringMesh * GetMesh(G4int i) const
G4GLOB_DLL std::ostream G4cerr
virtual void DumpQuantityToFile(const G4String &psName, const G4String &fileName, const G4String &option)