#include <G4PSTrackCounter.hh>
Definition at line 47 of file G4PSTrackCounter.hh.
◆ G4PSTrackCounter()
Definition at line 42 of file G4PSTrackCounter.cc.
virtual void SetUnit(const G4String &unit)
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSTrackCounter()
G4PSTrackCounter::~G4PSTrackCounter |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSTrackCounter::clear |
( |
void |
| ) |
|
|
virtual |
◆ DrawAll()
void G4PSTrackCounter::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 86 of file G4PSTrackCounter.cc.
G4THitsMap< G4double > * EvtMap
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
◆ PrintAll()
void G4PSTrackCounter::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 104 of file G4PSTrackCounter.cc.
109 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
111 G4cout <<
" copy no.: " << itr->first
112 <<
" track count: " << *(itr->second)
G4THitsMap< G4double > * EvtMap
std::map< G4int, T * > * GetMap() const
G4GLOB_DLL std::ostream G4cout
G4MultiFunctionalDetector * detector
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 52 of file G4PSTrackCounter.cc.
55 G4StepPoint* preStep = aStep->GetPreStepPoint();
56 G4StepPoint* posStep = aStep->GetPostStepPoint();
57 G4bool IsEnter = preStep->GetStepStatus()==fGeomBoundary;
58 G4bool IsExit = posStep->GetStepStatus()==fGeomBoundary;
79 if(
weighted) val *= aStep->GetPreStepPoint()->GetWeight();
G4THitsMap< G4double > * EvtMap
G4int add(const G4int &key, T *&aHit) const
virtual G4int GetIndex(G4Step *)
◆ SetUnit()
void G4PSTrackCounter::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 118 of file G4PSTrackCounter.cc.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetUnit() const
◆ Weighted()
void G4PSTrackCounter::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ EvtMap
◆ fDirection
G4int G4PSTrackCounter::fDirection |
|
private |
◆ HCID
G4int G4PSTrackCounter::HCID |
|
private |
◆ weighted
G4bool G4PSTrackCounter::weighted |
|
private |
The documentation for this class was generated from the following files: