#include <G4PSTermination.hh>
Definition at line 44 of file G4PSTermination.hh.
◆ G4PSTermination()
G4PSTermination::G4PSTermination |
( |
G4String | name, |
|
|
G4int | depth = 0 ) |
Definition at line 42 of file G4PSTermination.cc.
44{
46}
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSTermination()
G4PSTermination::~G4PSTermination |
( |
| ) |
|
|
overridedefault |
◆ clear()
void G4PSTermination::clear |
( |
| ) |
|
|
overridevirtual |
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 61 of file G4PSTermination.cc.
62{
64 if(HCID < 0)
65 {
67 }
69}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSTermination::PrintAll |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 73 of file G4PSTermination.cc.
74{
78 for(
const auto& [copy, terminations] : *(EvtMap->
GetMap()))
79 {
81 <<
" terminations: " << *(terminations) <<
G4endl;
82 }
83}
G4GLOB_DLL std::ostream G4cout
void copy(G4double dst[], const G4double src[], std::size_t size=G4FieldTrack::ncompSVEC)
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 48 of file G4PSTermination.cc.
49{
51 return false;
52
55 if(weighted)
57 EvtMap->
add(index, val);
58 return true;
59}
G4double GetWeight() const
G4Track * GetTrack() const
G4StepPoint * GetPreStepPoint() const
G4TrackStatus GetTrackStatus() const
virtual G4int GetIndex(G4Step *)
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSTermination::SetUnit |
( |
const G4String & | unit | ) |
|
|
virtual |
Definition at line 85 of file G4PSTermination.cc.
86{
87 if(unit.empty())
88 {
91 }
92 else
93 {
94 G4String msg =
"Invalid unit [" + unit +
"] (Current unit is [" +
97 }
98}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
const G4String & GetUnit() const
Referenced by G4PSTermination().
◆ Weighted()
void G4PSTermination::Weighted |
( |
G4bool | flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: