#include <G4PSNofCollision.hh>
Definition at line 44 of file G4PSNofCollision.hh.
◆ G4PSNofCollision()
G4PSNofCollision::G4PSNofCollision |
( |
G4String | name, |
|
|
G4int | depth = 0 ) |
Definition at line 41 of file G4PSNofCollision.cc.
43{
45}
virtual void SetUnit(const G4String &unit)
G4VPrimitiveScorer(G4String name, G4int depth=0)
◆ ~G4PSNofCollision()
G4PSNofCollision::~G4PSNofCollision |
( |
| ) |
|
|
overridedefault |
◆ clear()
void G4PSNofCollision::clear |
( |
| ) |
|
|
overridevirtual |
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 60 of file G4PSNofCollision.cc.
61{
63 if(HCID < 0)
64 {
66 }
68}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSNofCollision::PrintAll |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 72 of file G4PSNofCollision.cc.
73{
77 for(
const auto& [copy, collisions] : *(EvtMap->
GetMap()))
78 {
81 <<
" [collision] " <<
G4endl;
82 }
83}
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 47 of file G4PSNofCollision.cc.
48{
50 return true;
51
54 if(weighted)
56 EvtMap->
add(index, val);
57 return true;
58}
G4StepStatus GetStepStatus() const
G4double GetWeight() const
G4StepPoint * GetPreStepPoint() const
G4StepPoint * GetPostStepPoint() const
virtual G4int GetIndex(G4Step *)
size_t add(const G4int &key, U *&aHit) const
◆ SetUnit()
void G4PSNofCollision::SetUnit |
( |
const G4String & | unit | ) |
|
|
virtual |
Definition at line 85 of file G4PSNofCollision.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 G4PSNofCollision().
◆ Weighted()
void G4PSNofCollision::Weighted |
( |
G4bool | flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: