Geant4  10.02.p03
G4HadSecondary Class Reference

#include <G4HadSecondary.hh>

Collaboration diagram for G4HadSecondary:

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
 

Private Member Functions

 G4HadSecondary ()
 

Private Attributes

G4DynamicParticletheP
 
G4double theWeight
 
G4double theTime
 
G4int theCreatorModel
 

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
G4DynamicParticle * theP
G4double theWeight
Here is the call graph for this function:

◆ ~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

◆ GetCreatorModelType()

G4int G4HadSecondary::GetCreatorModelType ( ) const
inline

Definition at line 49 of file G4HadSecondary.hh.

49 {return theCreatorModel;}
Here is the caller graph for this function:

◆ GetParticle() [1/2]

G4DynamicParticle* G4HadSecondary::GetParticle ( )
inline

Definition at line 42 of file G4HadSecondary.hh.

42 {return theP;}
G4DynamicParticle * theP
Here is the caller graph for this function:

◆ GetParticle() [2/2]

const G4DynamicParticle* G4HadSecondary::GetParticle ( ) const
inline

Definition at line 43 of file G4HadSecondary.hh.

43 {return theP;}
G4DynamicParticle * theP

◆ GetTime()

G4double G4HadSecondary::GetTime ( ) const
inline

Definition at line 47 of file G4HadSecondary.hh.

47 {return theTime;}
Here is the caller graph for this function:

◆ GetWeight()

G4double G4HadSecondary::GetWeight ( ) const
inline

Definition at line 44 of file G4HadSecondary.hh.

44 {return theWeight;}
G4double theWeight
Here is the caller graph for this function:

◆ SetCreatorModelType()

void G4HadSecondary::SetCreatorModelType ( G4int  idx)
inline

Definition at line 48 of file G4HadSecondary.hh.

48 {theCreatorModel = idx;}

◆ SetTime()

void G4HadSecondary::SetTime ( G4double  aT)
inline

Definition at line 46 of file G4HadSecondary.hh.

46 {theTime = aT;}
Here is the caller graph for this function:

◆ SetWeight()

void G4HadSecondary::SetWeight ( G4double  aW)
inline

Definition at line 45 of file G4HadSecondary.hh.

45 {theWeight= aW;}
G4double theWeight

Member Data Documentation

◆ theCreatorModel

G4int G4HadSecondary::theCreatorModel
private

Definition at line 58 of file G4HadSecondary.hh.

◆ theP

G4DynamicParticle* G4HadSecondary::theP
private

Definition at line 53 of file G4HadSecondary.hh.

◆ theTime

G4double G4HadSecondary::theTime
private

Definition at line 57 of file G4HadSecondary.hh.

◆ theWeight

G4double G4HadSecondary::theWeight
private

Definition at line 56 of file G4HadSecondary.hh.


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