Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( 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

Here is the call graph for this function:

Here is the caller graph for this function:

G4HadSecondary::~G4HadSecondary ( )

Definition at line 41 of file G4HadSecondary.cc.

42 {}

Member Function Documentation

G4int G4HadSecondary::GetCreatorModelType ( ) const
inline

Definition at line 49 of file G4HadSecondary.hh.

49 {return theCreatorModel;}

Here is the caller graph for this function:

G4DynamicParticle* G4HadSecondary::GetParticle ( )
inline

Definition at line 42 of file G4HadSecondary.hh.

42 {return theP;}

Here is the caller graph for this function:

const G4DynamicParticle* G4HadSecondary::GetParticle ( ) const
inline

Definition at line 43 of file G4HadSecondary.hh.

43 {return theP;}
G4double G4HadSecondary::GetTime ( ) const
inline

Definition at line 47 of file G4HadSecondary.hh.

47 {return theTime;}

Here is the caller graph for this function:

G4double G4HadSecondary::GetWeight ( ) const
inline

Definition at line 44 of file G4HadSecondary.hh.

44 {return theWeight;}

Here is the caller graph for this function:

void G4HadSecondary::SetCreatorModelType ( G4int  idx)
inline

Definition at line 48 of file G4HadSecondary.hh.

48 {theCreatorModel = idx;}
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:

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: