#include <G4PSNofSecondary.hh>
Definition at line 53 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 79 of file G4PSNofSecondary.cc.
80{
84}
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4MultiFunctionalDetector * detector
G4int GetCollectionID(G4int)
◆ PrintAll()
void G4PSNofSecondary::PrintAll |
( |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 96 of file G4PSNofSecondary.cc.
97{
100 std::map<G4int,G4double*>::iterator itr = EvtMap->
GetMap()->begin();
101 for(; itr != EvtMap->
GetMap()->end(); itr++) {
102 G4cout <<
" copy no.: " << itr->first
103 <<
" num of secondaries: " << *(itr->second)/
GetUnitValue()
105 }
106}
G4DLLIMPORT std::ostream G4cout
std::map< G4int, T * > * GetMap() const
G4double GetUnitValue() const
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 48 of file G4PSNofSecondary.cc.
49{
50
52
54
57
58
62 EvtMap->
add(index,weight);
64}
G4double GetWeight() const
G4Track * GetTrack() const
G4StepPoint * GetPreStepPoint() const
G4int add(const G4int &key, T *&aHit) const
G4int GetCurrentStepNumber() const
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
virtual G4int GetIndex(G4Step *)
◆ SetParticle()
void G4PSNofSecondary::SetParticle |
( |
const G4String & |
particleName | ) |
|
Definition at line 66 of file G4PSNofSecondary.cc.
66 {
69 if(!pd) {
71 msg += particleName;
72 msg += "> not found.";
75 }
76 particleDef = pd;
77}
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
◆ SetUnit()
Definition at line 108 of file G4PSNofSecondary.cc.
109{
110 if (unit == "" ){
113 }else{
116 }
117}
const G4String & GetUnit() const
◆ Weighted()
void G4PSNofSecondary::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
The documentation for this class was generated from the following files: