#include <G4PSTrackCounter.hh>
Definition at line 47 of file G4PSTrackCounter.hh.
◆ G4PSTrackCounter()
◆ ~G4PSTrackCounter()
G4PSTrackCounter::~G4PSTrackCounter |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSTrackCounter::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void G4PSTrackCounter::DrawAll |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 85 of file G4PSTrackCounter.cc.
86{
90
91}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSTrackCounter::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 103 of file G4PSTrackCounter.cc.
104{
108 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
109 for(; itr != EvtMap->
GetMap()->end(); itr++) {
110 G4cout <<
" copy no.: " << itr->first
111 << " track count: " << *(itr->second)
112 << " [tracks] "
114 }
115}
G4DLLIMPORT std::ostream G4cout
std::map< G4int, T * > * GetMap() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 51 of file G4PSTrackCounter.cc.
52{
53
58
59
61
62
63
64
65
66
67
68
70
74
75 if ( flag ){
76
79 EvtMap->
add(index,val);
80 }
81
83}
G4StepStatus GetStepStatus() const
G4double GetWeight() const
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
G4int add(const G4int &key, T *&aHit) const
virtual G4int GetIndex(G4Step *)
◆ SetUnit()
Definition at line 117 of file G4PSTrackCounter.cc.
118{
119 if (unit == "" ){
122 }else{
125 }
126
127}
const G4String & GetUnit() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by G4PSTrackCounter().
◆ Weighted()
void G4PSTrackCounter::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: