Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4HadSecondary Class Reference

#include <G4HadSecondary.hh>

Public Member Functions

 G4HadSecondary (G4DynamicParticle *aT, G4double aWeight=1, G4int mod=-1)
 
G4int GetCreatorModelID () const
 
G4DynamicParticleGetParticle ()
 
const G4DynamicParticleGetParticle () const
 
G4double GetTime () const
 
G4double GetWeight () const
 
void SetCreatorModelID (G4int id)
 
void SetTime (G4double aT)
 
void SetWeight (G4double aW)
 
 ~G4HadSecondary ()
 

Private Member Functions

 G4HadSecondary ()
 

Private Attributes

G4int theCreatorModel
 
G4DynamicParticletheP
 
G4double theTime
 
G4double theWeight
 

Detailed Description

Definition at line 35 of file G4HadSecondary.hh.

Constructor & Destructor Documentation

◆ G4HadSecondary() [1/2]

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
G4double theWeight
G4DynamicParticle * theP

References G4DynamicParticle::GetKineticEnergy().

◆ ~G4HadSecondary()

G4HadSecondary::~G4HadSecondary ( )

Definition at line 41 of file G4HadSecondary.cc.

42{}

◆ G4HadSecondary() [2/2]

G4HadSecondary::G4HadSecondary ( )
inlineprivate

Definition at line 53 of file G4HadSecondary.hh.

53{};

Member Function Documentation

◆ GetCreatorModelID()

G4int G4HadSecondary::GetCreatorModelID ( ) const
inline

Definition at line 49 of file G4HadSecondary.hh.

49{return theCreatorModel;}

References theCreatorModel.

Referenced by G4HadronicProcess::FillResult(), and G4MuonicAtomDecay::FillResult().

◆ GetParticle() [1/2]

G4DynamicParticle * G4HadSecondary::GetParticle ( )
inline

◆ GetParticle() [2/2]

const G4DynamicParticle * G4HadSecondary::GetParticle ( ) const
inline

Definition at line 43 of file G4HadSecondary.hh.

43{return theP;}

References theP.

◆ GetTime()

G4double G4HadSecondary::GetTime ( ) const
inline

◆ GetWeight()

G4double G4HadSecondary::GetWeight ( ) const
inline

◆ SetCreatorModelID()

void G4HadSecondary::SetCreatorModelID ( G4int  id)
inline

◆ SetTime()

void G4HadSecondary::SetTime ( G4double  aT)
inline

◆ SetWeight()

void G4HadSecondary::SetWeight ( G4double  aW)
inline

Definition at line 45 of file G4HadSecondary.hh.

45{theWeight= aW;}

References theWeight.

Field Documentation

◆ theCreatorModel

G4int G4HadSecondary::theCreatorModel
private

Definition at line 58 of file G4HadSecondary.hh.

Referenced by GetCreatorModelID(), and SetCreatorModelID().

◆ theP

G4DynamicParticle* G4HadSecondary::theP
private

Definition at line 55 of file G4HadSecondary.hh.

Referenced by GetParticle().

◆ theTime

G4double G4HadSecondary::theTime
private

Definition at line 57 of file G4HadSecondary.hh.

Referenced by GetTime(), and SetTime().

◆ theWeight

G4double G4HadSecondary::theWeight
private

Definition at line 56 of file G4HadSecondary.hh.

Referenced by GetWeight(), and SetWeight().


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