Geant4 11.1.1
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 SetCreatorModelID (G4int id)
 
G4int GetCreatorModelID () const
 
const G4ParticleDefinitionGetParentResonanceDef () const
 
void SetParentResonanceDef (const G4ParticleDefinition *parentDef)
 
G4int GetParentResonanceID () const
 
void SetParentResonanceID (const G4int parentID)
 

Detailed Description

Definition at line 36 of file G4HadSecondary.hh.

Constructor & Destructor Documentation

◆ G4HadSecondary()

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

Definition at line 31 of file G4HadSecondary.cc.

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

Referenced by G4HadSecondary().

◆ ~G4HadSecondary()

G4HadSecondary::~G4HadSecondary ( )

Definition at line 43 of file G4HadSecondary.cc.

44{}

Member Function Documentation

◆ GetCreatorModelID()

G4int G4HadSecondary::GetCreatorModelID ( ) const
inline

Definition at line 50 of file G4HadSecondary.hh.

50{return theCreatorModel;}

Referenced by G4HadronicProcess::FillResult().

◆ GetParentResonanceDef()

const G4ParticleDefinition * G4HadSecondary::GetParentResonanceDef ( ) const
inline

Definition at line 51 of file G4HadSecondary.hh.

51{return theParentResonanceDef;}

Referenced by G4HadronicProcess::FillResult().

◆ GetParentResonanceID()

G4int G4HadSecondary::GetParentResonanceID ( ) const
inline

Definition at line 53 of file G4HadSecondary.hh.

53{return theParentResonanceID;}

Referenced by G4HadronicProcess::FillResult().

◆ GetParticle() [1/2]

◆ GetParticle() [2/2]

const G4DynamicParticle * G4HadSecondary::GetParticle ( ) const
inline

Definition at line 44 of file G4HadSecondary.hh.

44{return theP;}

◆ GetTime()

G4double G4HadSecondary::GetTime ( ) const
inline

◆ GetWeight()

G4double G4HadSecondary::GetWeight ( ) const
inline

◆ SetCreatorModelID()

◆ SetParentResonanceDef()

void G4HadSecondary::SetParentResonanceDef ( const G4ParticleDefinition parentDef)
inline

Definition at line 52 of file G4HadSecondary.hh.

52{theParentResonanceDef = parentDef;}

Referenced by G4BinaryCascade::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), and G4TheoFSGenerator::ApplyYourself().

◆ SetParentResonanceID()

void G4HadSecondary::SetParentResonanceID ( const G4int  parentID)
inline

Definition at line 54 of file G4HadSecondary.hh.

54{theParentResonanceID = parentID;}

Referenced by G4BinaryCascade::ApplyYourself(), G4INCLXXInterface::ApplyYourself(), and G4TheoFSGenerator::ApplyYourself().

◆ SetTime()

◆ SetWeight()

void G4HadSecondary::SetWeight ( G4double  aW)
inline

Definition at line 46 of file G4HadSecondary.hh.

46{theWeight= aW;}

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