44 fRequestedMapName(requestedMapName), fpCurrentHits(0)
46 fType =
"G4PSHitsModel";
47 fGlobalTag =
"G4PSHitsModel for G4THitsMap<G4double> hits.";
57 for (
size_t iMesh = 0; iMesh < nMeshes; ++iMesh) {
61 for(MeshScoreMap::const_iterator i = scoreMap.begin();
62 i != scoreMap.end(); ++i) {
64 if (fRequestedMapName ==
"all" || name == fRequestedMapName) {
65 fpCurrentHits = i->second;
67 if (fpCurrentHits) sceneHandler.
AddCompound(*fpCurrentHits);
std::map< G4String, G4THitsMap< G4double > * > MeshScoreMap
virtual void DescribeYourselfTo(G4VGraphicsScene &)
G4PSHitsModel(const G4String &requestedMapName="all")
G4VScoringMesh * GetMesh(G4int i) const
size_t GetNumberOfMesh() const
static G4ScoringManager * GetScoringManagerIfExist()
virtual void AddCompound(const G4VTrajectory &)=0
G4String fGlobalDescription
MeshScoreMap GetScoreMap()