41G4int G4ScoringManager::replicaLevel = 3;
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; }
90 G4cout <<
" is calling G4VScoringMesh::Accumulate() of " << sm->GetWorldName() <<
G4endl; }
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; }
std::vector< G4VScoringMesh * >::const_iterator MeshVecConstItr
std::vector< G4VScoringMesh * >::iterator MeshVecItr
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
std::map< G4String, G4VScoreColorMap * > ColorMapDict
G4DLLIMPORT std::ostream G4cerr
G4DLLIMPORT std::ostream G4cout
G4VScoringMesh * FindMesh(const G4String &)
static G4int GetReplicaLevel()
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()
void RegisterScoreColorMap(G4VScoreColorMap *colorMap)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
void ListScoreColorMaps()
static G4ScoringManager * GetScoringManagerIfExist()
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
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)