#include <G4PSPopulation.hh>
Definition at line 47 of file G4PSPopulation.hh.
◆ G4PSPopulation()
G4PSPopulation::G4PSPopulation |
( |
G4String | name, |
|
|
G4int | depth = 0 ) |
Definition at line 40 of file G4PSPopulation.cc.
42{
44}
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSPopulation()
G4PSPopulation::~G4PSPopulation |
( |
| ) |
|
|
overridedefault |
◆ clear()
void G4PSPopulation::clear |
( |
| ) |
|
|
overridevirtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 61 of file G4PSPopulation.cc.
62{
64 if(HCID < 0)
65 {
67 }
69}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSPopulation::PrintAll |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 79 of file G4PSPopulation.cc.
80{
84 for(
const auto& [copy, population] : *(EvtMap->
GetMap()))
85 {
87 <<
" population: " << *(population) /
GetUnitValue() <<
" [tracks]"
89 }
90}
G4GLOB_DLL std::ostream G4cout
G4double GetUnitValue() const
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 46 of file G4PSPopulation.cc.
47{
51 {
53 if(weighted)
55 EvtMap->
add(index, val);
56 }
57
58 return true;
59}
G4double GetWeight() const
G4Track * GetTrack() const
G4StepPoint * GetPreStepPoint() const
G4bool FirstEnterance(G4int trid)
virtual G4int GetIndex(G4Step *)
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSPopulation::SetUnit |
( |
const G4String & | unit | ) |
|
|
virtual |
Definition at line 92 of file G4PSPopulation.cc.
93{
94 if(unit.empty())
95 {
98 }
99 else
100 {
101 G4String msg =
"Invalid unit [" + unit +
"] (Current unit is [" +
104 }
105}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const G4String & GetUnit() const
Referenced by G4PSPopulation().
◆ Weighted()
void G4PSPopulation::Weighted |
( |
G4bool | flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: