Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4HadSecondary Class Reference

#include <G4HadSecondary.hh>

Public Member Functions

 G4HadSecondary (G4DynamicParticle *aT, G4double aWeight=1, G4int mod=-1)
 
 ~G4HadSecondary ()
 
G4DynamicParticleGetParticle ()
 
const G4DynamicParticleGetParticle () const
 
G4double GetWeight () const
 
void SetWeight (G4double aW)
 
void SetTime (G4double aT)
 
G4double GetTime () const
 
void SetCreatorModelType (G4int idx)
 
G4int GetCreatorModelType () const
 

Detailed Description

Definition at line 35 of file G4HadSecondary.hh.

Constructor & Destructor Documentation

◆ G4HadSecondary()

G4HadSecondary::G4HadSecondary ( G4DynamicParticle aT,
G4double  aWeight = 1,
G4int  mod = -1 
)

Definition at line 30 of file G4HadSecondary.cc.

31 :
32 theP(aT), theWeight(aWeight), theTime(-1), theCreatorModel(mod)
33{
34 if(aT->GetKineticEnergy()<0)
35 {
36 throw G4HadronicException(__FILE__, __LINE__,
37 "ATTEMPTING TO CREATE A SECONDARY WITH NEGATIVE KINETIC ENERGY.");
38 }
39}
G4double GetKineticEnergy() const

Referenced by G4HadSecondary().

◆ ~G4HadSecondary()

G4HadSecondary::~G4HadSecondary ( )

Definition at line 41 of file G4HadSecondary.cc.

42{}

Member Function Documentation

◆ GetCreatorModelType()

G4int G4HadSecondary::GetCreatorModelType ( ) const
inline

Definition at line 49 of file G4HadSecondary.hh.

49{return theCreatorModel;}

Referenced by G4HadronicProcess::FillResult().

◆ GetParticle() [1/2]

◆ GetParticle() [2/2]

const G4DynamicParticle * G4HadSecondary::GetParticle ( ) const
inline

Definition at line 43 of file G4HadSecondary.hh.

43{return theP;}

◆ GetTime()

G4double G4HadSecondary::GetTime ( ) const
inline

◆ GetWeight()

G4double G4HadSecondary::GetWeight ( ) const
inline

◆ SetCreatorModelType()

◆ SetTime()

◆ SetWeight()

void G4HadSecondary::SetWeight ( G4double  aW)
inline

Definition at line 45 of file G4HadSecondary.hh.

45{theWeight= aW;}

The documentation for this class was generated from the following files: