#include <G4PSNofSecondary.hh>
Definition at line 53 of file G4PSNofSecondary.hh.
◆ G4PSNofSecondary()
G4PSNofSecondary::G4PSNofSecondary |
( |
G4String | name, |
|
|
G4int | depth = 0 ) |
◆ ~G4PSNofSecondary()
G4PSNofSecondary::~G4PSNofSecondary |
( |
| ) |
|
|
overridedefault |
◆ clear()
void G4PSNofSecondary::clear |
( |
| ) |
|
|
overridevirtual |
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 100 of file G4PSNofSecondary.cc.
101{
103 if(HCID < 0)
104 {
106 }
108}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSNofSecondary::PrintAll |
( |
| ) |
|
|
overridevirtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 112 of file G4PSNofSecondary.cc.
113{
116 for(
const auto& [copy, secondaries] : *(EvtMap->
GetMap()))
117 {
119 <<
" num of secondaries: " << *(secondaries) /
GetUnitValue()
121 }
122}
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 G4PSNofSecondary.cc.
48{
49
51 return false;
52
54 return false;
55
57 return false;
58
59
62 if(weighted)
64 EvtMap->
add(index, weight);
65
67 {
69 if(filler == nullptr)
70 {
72 "G4PSVolumeFlux::ProcessHits",
"SCORER0123",
JustWarning,
73 "G4TScoreHistFiller is not instantiated!! Histogram is not filled.");
74 }
75 else
76 {
79 }
80 }
81
82 return true;
83}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double GetKineticEnergy() const
G4double GetWeight() const
G4Track * GetTrack() const
G4StepPoint * GetPreStepPoint() const
G4int GetCurrentStepNumber() const
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
std::map< G4int, G4int > hitIDMap
virtual G4int GetIndex(G4Step *)
static G4VScoreHistFiller * Instance()
size_t add(const G4int &key, U *&aHit) const
◆ SetParticle()
void G4PSNofSecondary::SetParticle |
( |
const G4String & | particleName | ) |
|
Definition at line 85 of file G4PSNofSecondary.cc.
86{
89 if(pd == nullptr)
90 {
92 msg += particleName;
93 msg += "> not found.";
95 msg);
96 }
97 particleDef = pd;
98}
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
◆ SetUnit()
void G4PSNofSecondary::SetUnit |
( |
const G4String & | unit | ) |
|
|
virtual |
Definition at line 124 of file G4PSNofSecondary.cc.
125{
126 if(unit.empty())
127 {
130 }
131 else
132 {
133 G4String msg =
"Invalid unit [" + unit +
"] (Current unit is [" +
136 }
137}
const G4String & GetUnit() const
◆ Weighted()
void G4PSNofSecondary::Weighted |
( |
G4bool | flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: