#include <G4PSTrackLength.hh>
Definition at line 49 of file G4PSTrackLength.hh.
◆ G4PSTrackLength() [1/2]
G4PSTrackLength::G4PSTrackLength |
( |
G4String |
name, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 44 of file G4PSTrackLength.cc.
G4THitsMap< G4double > * EvtMap
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ G4PSTrackLength() [2/2]
Definition at line 52 of file G4PSTrackLength.cc.
G4THitsMap< G4double > * EvtMap
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSTrackLength()
G4PSTrackLength::~G4PSTrackLength |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSTrackLength::clear |
( |
void |
| ) |
|
|
virtual |
◆ DefineUnitAndCategory()
void G4PSTrackLength::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
◆ DivideByVelocity()
void G4PSTrackLength::DivideByVelocity |
( |
G4bool |
flg = true | ) |
|
◆ DrawAll()
void G4PSTrackLength::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 90 of file G4PSTrackLength.cc.
G4THitsMap< G4double > * EvtMap
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
◆ MultiplyKineticEnergy()
void G4PSTrackLength::MultiplyKineticEnergy |
( |
G4bool |
flg = true | ) |
|
◆ PrintAll()
void G4PSTrackLength::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 107 of file G4PSTrackLength.cc.
112 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
114 G4cout <<
" copy no.: " << itr->first ;
117 else G4cout <<
" EnergyFlow: ";
120 else G4cout <<
" Length: ";
G4double GetUnitValue() const
std::map< G4int, T * > * GetMap() const
G4THitsMap< G4double > * EvtMap
G4GLOB_DLL std::ostream G4cout
G4MultiFunctionalDetector * detector
const G4String & GetUnit() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 78 of file G4PSTrackLength.cc.
80 G4double trklength = aStep->GetStepLength();
81 if ( trklength == 0. )
return FALSE;
82 if(
weighted) trklength *= aStep->GetPreStepPoint()->GetWeight();
83 if(
multiplyKinE) trklength *= aStep->GetPreStepPoint()->GetKineticEnergy();
G4int add(const G4int &key, T *&aHit) const
G4THitsMap< G4double > * EvtMap
virtual G4int GetIndex(G4Step *)
◆ SetUnit()
void G4PSTrackLength::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 128 of file G4PSTrackLength.cc.
void CheckAndSetUnit(const G4String &unit, const G4String &category)
◆ Weighted()
void G4PSTrackLength::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ divideByVelocity
G4bool G4PSTrackLength::divideByVelocity |
|
private |
◆ EvtMap
◆ HCID
G4int G4PSTrackLength::HCID |
|
private |
◆ multiplyKinE
G4bool G4PSTrackLength::multiplyKinE |
|
private |
◆ weighted
G4bool G4PSTrackLength::weighted |
|
private |
The documentation for this class was generated from the following files: