#include <G4PSNofSecondary.hh>
Definition at line 54 of file G4PSNofSecondary.hh.
◆ G4PSNofSecondary()
G4PSNofSecondary::G4PSNofSecondary |
( |
G4String |
name, |
|
|
G4int |
depth = 0 |
|
) |
| |
◆ ~G4PSNofSecondary()
G4PSNofSecondary::~G4PSNofSecondary |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSNofSecondary::clear |
( |
| ) |
|
|
virtual |
◆ DrawAll()
void G4PSNofSecondary::DrawAll |
( |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 97 of file G4PSNofSecondary.cc.
98{
102}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSNofSecondary::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 114 of file G4PSNofSecondary.cc.
115{
118 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
119 for(; itr != EvtMap->
GetMap()->end(); itr++) {
120 G4cout <<
" copy no.: " << itr->first
121 <<
" num of secondaries: " << *(itr->second)/
GetUnitValue()
123 }
124}
G4GLOB_DLL std::ostream G4cout
G4double GetUnitValue() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 51 of file G4PSNofSecondary.cc.
52{
53
55
57
60
61
65 EvtMap->
add(index,weight);
66
68 {
70 if(!filler)
71 {
73 "G4TScoreHistFiller is not instantiated!! Histogram is not filled.");
74 }
75 else
76 {
78 }
79 }
80
82}
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 84 of file G4PSNofSecondary.cc.
84 {
87 if(!pd) {
89 msg += particleName;
90 msg += "> not found.";
93 }
94 particleDef = pd;
95}
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
◆ SetUnit()
void G4PSNofSecondary::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 126 of file G4PSNofSecondary.cc.
127{
128 if (unit == "" ){
131 }else{
134 }
135}
const G4String & GetUnit() const
◆ Weighted()
void G4PSNofSecondary::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: