#include <G4PSNofSecondary.hh>
Definition at line 53 of file G4PSNofSecondary.hh.
◆ G4PSNofSecondary()
G4PSNofSecondary::G4PSNofSecondary |
( |
G4String |
name, |
|
|
G4int |
depth = 0 |
|
) |
| |
Definition at line 40 of file G4PSNofSecondary.cc.
G4THitsMap< G4double > * EvtMap
G4VPrimitiveScorer(G4String name, G4int depth=0)
G4ParticleDefinition * particleDef
◆ ~G4PSNofSecondary()
G4PSNofSecondary::~G4PSNofSecondary |
( |
| ) |
|
|
virtual |
◆ clear()
void G4PSNofSecondary::clear |
( |
void |
| ) |
|
|
virtual |
◆ DrawAll()
void G4PSNofSecondary::DrawAll |
( |
void |
| ) |
|
|
virtual |
◆ EndOfEvent()
◆ Initialize()
Reimplemented from G4VPrimitiveScorer.
Definition at line 79 of file G4PSNofSecondary.cc.
G4int GetCollectionID(G4int)
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
G4THitsMap< G4double > * EvtMap
G4MultiFunctionalDetector * detector
◆ PrintAll()
void G4PSNofSecondary::PrintAll |
( |
void |
| ) |
|
|
virtual |
Reimplemented from G4VPrimitiveScorer.
Definition at line 96 of file G4PSNofSecondary.cc.
100 std::map<G4int,G4double*>::iterator itr =
EvtMap->
GetMap()->begin();
102 G4cout <<
" copy no.: " << itr->first
103 <<
" num of secondaries: " << *(itr->second)/
GetUnitValue()
G4double GetUnitValue() const
std::map< G4int, T * > * GetMap() const
G4GLOB_DLL std::ostream G4cout
G4THitsMap< G4double > * EvtMap
◆ ProcessHits()
Implements G4VPrimitiveScorer.
Definition at line 48 of file G4PSNofSecondary.cc.
51 if ( aStep->GetTrack()->GetCurrentStepNumber() != 1)
return FALSE;
53 if ( aStep->GetTrack()->GetParentID() == 0 )
return FALSE;
61 if (
weighted ) weight *= aStep->GetPreStepPoint()->GetWeight();
G4int add(const G4int &key, T *&aHit) const
virtual G4int GetIndex(G4Step *)
G4THitsMap< G4double > * EvtMap
G4ParticleDefinition * particleDef
◆ SetParticle()
void G4PSNofSecondary::SetParticle |
( |
const G4String & |
particleName | ) |
|
Definition at line 66 of file G4PSNofSecondary.cc.
72 msg +=
"> not found.";
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4ParticleTable * GetParticleTable()
G4ParticleDefinition * particleDef
◆ SetUnit()
void G4PSNofSecondary::SetUnit |
( |
const G4String & |
unit | ) |
|
|
virtual |
Definition at line 108 of file G4PSNofSecondary.cc.
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
const G4String & GetUnit() const
◆ Weighted()
void G4PSNofSecondary::Weighted |
( |
G4bool |
flg = true | ) |
|
|
inline |
◆ EvtMap
◆ HCID
G4int G4PSNofSecondary::HCID |
|
private |
◆ particleDef
◆ weighted
G4bool G4PSNofSecondary::weighted |
|
private |
The documentation for this class was generated from the following files: