#include <G4PSTrackCounter.hh>
Definition at line 48 of file G4PSTrackCounter.hh.
◆ G4PSTrackCounter()
Definition at line 42 of file G4PSTrackCounter.cc.
44 EvtMap(0),weighted(false)
45{
47}
virtual void SetUnit(const G4String &unit)
◆ ~G4PSTrackCounter()
G4PSTrackCounter::~G4PSTrackCounter |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSTrackCounter::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void G4PSTrackCounter::DrawAll |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 101 of file G4PSTrackCounter.cc.
102{
106
107}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSTrackCounter::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 119 of file G4PSTrackCounter.cc.
120{
124 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
125 for(; itr != EvtMap->
GetMap()->end(); itr++) {
126 G4cout <<
" copy no.: " << itr->first
127 << " track count: " << *(itr->second)
128 << " [tracks] "
130 }
131}
G4GLOB_DLL std::ostream G4cout
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 52 of file G4PSTrackCounter.cc.
53{
54
59
60
62
63
64
65
66
67
68
69
71
75
76 if ( flag ){
77
80 EvtMap->
add(index,val);
81
83 {
85 if(!filler)
86 {
88 "G4TScoreHistFiller is not instantiated!! Histogram is not filled.");
89 }
90 else
91 {
93 }
94 }
95
96 }
97
99}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4StepStatus GetStepStatus() const
G4double GetKineticEnergy() const
G4double GetWeight() const
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
std::map< G4int, G4int > hitIDMap
virtual G4int GetIndex(G4Step *)
static G4VScoreHistFiller * Instance()
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSTrackCounter::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
◆ Weighted()
void G4PSTrackCounter::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: