#include <G4PSTrackLength.hh>
Definition at line 49 of file G4PSTrackLength.hh.
G4PSTrackLength::G4PSTrackLength |
( |
G4String |
name, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 44 of file G4PSTrackLength.cc.
46 multiplyKinE(
false),divideByVelocity(
false)
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
Definition at line 52 of file G4PSTrackLength.cc.
55 multiplyKinE(
false),divideByVelocity(
false)
virtual void DefineUnitAndCategory()
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
G4PSTrackLength::~G4PSTrackLength |
( |
| ) |
|
|
virtual |
void G4PSTrackLength::clear |
( |
| ) |
|
|
virtual |
void G4PSTrackLength::DefineUnitAndCategory |
( |
| ) |
|
|
protectedvirtual |
Definition at line 161 of file G4PSTrackLength.cc.
static constexpr double mm
static constexpr double second
static constexpr double m
static constexpr double cm
static constexpr double eV
static constexpr double MeV
static constexpr double ms
static constexpr double keV
void G4PSTrackLength::DivideByVelocity |
( |
G4bool |
flg = true | ) |
|
Definition at line 71 of file G4PSTrackLength.cc.
73 divideByVelocity = flg;
virtual void SetUnit(const G4String &unit)
void G4PSTrackLength::DrawAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 90 of file G4PSTrackLength.cc.
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
void G4PSTrackLength::MultiplyKineticEnergy |
( |
G4bool |
flg = true | ) |
|
void G4PSTrackLength::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 107 of file G4PSTrackLength.cc.
112 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
113 for(; itr != EvtMap->
GetMap()->end(); itr++) {
114 G4cout <<
" copy no.: " << itr->first ;
116 if ( divideByVelocity )
G4cout <<
" EnergyFlux: ";
117 else G4cout <<
" EnergyFlow: ";
119 if ( divideByVelocity )
G4cout <<
" Time: ";
120 else G4cout <<
" Length: ";
G4GLOB_DLL std::ostream G4cout
G4double GetUnitValue() const
std::map< G4int, T * > * GetMap() const
G4MultiFunctionalDetector * detector
const G4String & GetUnit() const
Implements G4VPrimitiveScorer.
Definition at line 78 of file G4PSTrackLength.cc.
81 if ( trklength == 0. )
return FALSE;
86 EvtMap->
add(index,trklength);
G4double GetWeight() const
G4double GetStepLength() const
G4double GetVelocity() const
G4StepPoint * GetPreStepPoint() const
virtual G4int GetIndex(G4Step *)
G4int add(const G4int &key, T *&aHit) const
G4double GetKineticEnergy() const
Definition at line 128 of file G4PSTrackLength.cc.
131 if ( divideByVelocity ){
145 if ( divideByVelocity ){
void CheckAndSetUnit(const G4String &unit, const G4String &category)
void G4PSTrackLength::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: