#include <G4ScoringManager.hh>
|
| ~G4ScoringManager () |
|
void | RegisterScoreColorMap (G4VScoreColorMap *colorMap) |
|
void | Accumulate (G4VHitsCollection *map) |
|
void | Merge (const G4ScoringManager *scMan) |
|
G4VScoringMesh * | FindMesh (G4VHitsCollection *map) |
|
G4VScoringMesh * | FindMesh (const G4String &) |
|
void | List () const |
|
void | Dump () const |
|
void | DrawMesh (const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111) |
|
void | DrawMesh (const G4String &meshName, const G4String &psName, G4int idxPlane, G4int iColumn, const G4String &colorMapName) |
|
void | DumpQuantityToFile (const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="") |
|
void | DumpAllQuantitiesToFile (const G4String &meshName, const G4String &fileName, const G4String &option="") |
|
G4VScoreColorMap * | GetScoreColorMap (const G4String &mapName) |
|
void | ListScoreColorMaps () |
|
void | SetCurrentMesh (G4VScoringMesh *scm) |
|
G4VScoringMesh * | GetCurrentMesh () const |
|
void | CloseCurrentMesh () |
|
void | SetVerboseLevel (G4int vl) |
|
G4int | GetVerboseLevel () const |
|
size_t | GetNumberOfMesh () const |
|
void | RegisterScoringMesh (G4VScoringMesh *scm) |
|
G4VScoringMesh * | GetMesh (G4int i) const |
|
G4String | GetWorldName (G4int i) const |
|
void | SetScoreWriter (G4VScoreWriter *sw) |
|
Definition at line 62 of file G4ScoringManager.hh.
G4ScoringManager::G4ScoringManager |
( |
| ) |
|
|
protected |
Definition at line 55 of file G4ScoringManager.cc.
56 : verboseLevel(0),fCurrentMesh(
nullptr)
62 (*fColorMapDict)[fDefaultLinearColorMap->
GetName()] = fDefaultLinearColorMap;
64 (*fColorMapDict)[logColorMap->
GetName()] = logColorMap;
std::map< G4String, G4VScoreColorMap * > ColorMapDict
G4ScoringManager::~G4ScoringManager |
( |
| ) |
|
Definition at line 68 of file G4ScoringManager.cc.
70 if (writer) {
delete writer; }
71 delete fDefaultLinearColorMap;
73 delete fQuantityMessenger;
Definition at line 83 of file G4ScoringManager.cc.
89 G4cout <<
" is calling G4VScoringMesh::Accumulate() of " <<
sm->GetWorldName() <<
G4endl; }
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
G4GLOB_DLL std::ostream G4cout
void G4ScoringManager::CloseCurrentMesh |
( |
| ) |
|
|
inline |
Definition at line 130 of file G4ScoringManager.cc.
140 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
141 colorMap = fDefaultLinearColorMap;
143 mesh->
DrawMesh(psName,colorMap,axflg);
145 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
146 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
void DrawMesh(const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
G4GLOB_DLL std::ostream G4cerr
Definition at line 150 of file G4ScoringManager.cc.
161 G4cerr <<
"WARNING : Score color map <" << colorMapName <<
"> is not found. Default linear color map is used." <<
G4endl;
162 colorMap = fDefaultLinearColorMap;
164 mesh->
DrawMesh(psName,idxPlane,iColumn,colorMap);
166 G4cerr <<
"ERROR : G4ScoringManager::DrawMesh() --- <"
167 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
void DrawMesh(const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111)
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
G4GLOB_DLL std::ostream G4cerr
void G4ScoringManager::Dump |
( |
| ) |
const |
Definition at line 186 of file G4ScoringManager.cc.
195 G4cerr <<
"ERROR : G4ScoringManager::DrawAllQuantitiesToFile() --- <"
196 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
virtual void DumpAllQuantitiesToFile(const G4String &fileName, const G4String &option)
void SetScoringMesh(G4VScoringMesh *sm)
G4GLOB_DLL std::ostream G4cerr
Definition at line 171 of file G4ScoringManager.cc.
181 G4cerr <<
"ERROR : G4ScoringManager::DrawQuantityToFile() --- <"
182 << meshName <<
"> is not found. Nothing is done." <<
G4endl;
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
void SetScoringMesh(G4VScoringMesh *sm)
G4GLOB_DLL std::ostream G4cerr
virtual void DumpQuantityToFile(const G4String &psName, const G4String &fileName, const G4String &option)
Definition at line 93 of file G4ScoringManager.cc.
97 auto msh = fMeshMap.find(colID);
98 if(msh==fMeshMap.end())
102 fMeshMap[colID] =
sm;
105 { sm = (*msh).second; }
G4VScoringMesh * FindMesh(G4VHitsCollection *map)
Definition at line 109 of file G4ScoringManager.cc.
112 for(
auto msh : fMeshVec)
113 {
if(msh->GetWorldName()==wName)
return msh; }
114 if(!sm && verboseLevel>9)
115 {
G4cout <<
"WARNING : G4ScoringManager::FindMesh() --- <" << wName <<
"> is not found. Null returned." <<
G4endl; }
G4GLOB_DLL std::ostream G4cout
size_t G4ScoringManager::GetNumberOfMesh |
( |
| ) |
const |
|
inline |
G4int G4ScoringManager::GetReplicaLevel |
( |
| ) |
|
|
static |
Definition at line 213 of file G4ScoringManager.cc.
216 if(mItr == fColorMapDict->end()) {
return nullptr; }
217 return (mItr->second);
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
G4int G4ScoringManager::GetVerboseLevel |
( |
| ) |
const |
|
inline |
void G4ScoringManager::List |
( |
| ) |
const |
Definition at line 119 of file G4ScoringManager.cc.
122 for(
auto msh : fMeshVec) msh->List();
G4GLOB_DLL std::ostream G4cout
size_t GetNumberOfMesh() const
void G4ScoringManager::ListScoreColorMaps |
( |
| ) |
|
Definition at line 220 of file G4ScoringManager.cc.
222 G4cout <<
"Registered Score Color Maps -------------------------------------------------------" <<
G4endl;
224 for(;mItr!=fColorMapDict->end();mItr++)
225 {
G4cout <<
" " << mItr->first; }
G4GLOB_DLL std::ostream G4cout
std::map< G4String, G4VScoreColorMap * >::iterator ColorMapDictItr
Definition at line 229 of file G4ScoringManager.cc.
235 fMesh->
Merge(scMesh);
void Merge(const G4VScoringMesh *scMesh)
size_t GetNumberOfMesh() const
G4VScoringMesh * GetMesh(G4int i) const
Definition at line 200 of file G4ScoringManager.cc.
202 if(fColorMapDict->find(colorMap->
GetName()) != fColorMapDict->end())
204 G4cerr <<
"ERROR : G4ScoringManager::RegisterScoreColorMap -- "
205 << colorMap->
GetName() <<
" has already been registered. Method ignored." <<
G4endl;
209 (*fColorMapDict)[colorMap->
GetName()] = colorMap;
G4GLOB_DLL std::ostream G4cerr
Definition at line 138 of file G4ScoringManager.hh.
141 fMeshVec.push_back(scm);
void SetCurrentMesh(G4VScoringMesh *scm)
void SetVerboseLevel(G4int vl)
void G4ScoringManager::SetReplicaLevel |
( |
G4int |
lvl | ) |
|
|
static |
Definition at line 150 of file G4ScoringManager.hh.
152 if(writer) {
delete writer; }
void SetVerboseLevel(G4int vl)
void G4ScoringManager::SetVerboseLevel |
( |
G4int |
vl | ) |
|
|
inline |
Definition at line 126 of file G4ScoringManager.hh.
129 for(
MeshVecItr itr = fMeshVec.begin(); itr != fMeshVec.end(); itr++) {
130 (*itr)->SetVerboseLevel(vl);
std::vector< G4VScoringMesh * >::iterator MeshVecItr
void SetVerboseLevel(G4int vl)
The documentation for this class was generated from the following files: