Geant4 9.6.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)
 
G4DynamicParticleGetParticle ()
 
const G4DynamicParticleGetParticle () const
 
G4double GetWeight () const
 
void SetWeight (G4double aW)
 
void SetTime (G4double aT)
 
G4double GetTime () const
 

Detailed Description

Definition at line 35 of file G4HadSecondary.hh.

Constructor & Destructor Documentation

◆ G4HadSecondary()

G4HadSecondary::G4HadSecondary ( G4DynamicParticle aT,
G4double  aWeight = 1 
)

Definition at line 30 of file G4HadSecondary.cc.

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

Referenced by G4HadSecondary().

Member Function Documentation

◆ GetParticle() [1/2]

◆ GetParticle() [2/2]

const G4DynamicParticle * G4HadSecondary::GetParticle ( ) const
inline

Definition at line 40 of file G4HadSecondary.hh.

40{return theP;}

◆ GetTime()

G4double G4HadSecondary::GetTime ( ) const
inline

Definition at line 44 of file G4HadSecondary.hh.

44{return theTime;}

Referenced by G4HadronStoppingProcess::AtRestDoIt(), and G4HadronicProcess::FillResult().

◆ GetWeight()

G4double G4HadSecondary::GetWeight ( ) const
inline

Definition at line 41 of file G4HadSecondary.hh.

41{return theWeight;}

Referenced by G4HadronStoppingProcess::AtRestDoIt(), G4HadLeadBias::Bias(), and G4HadronicProcess::FillResult().

◆ SetTime()

void G4HadSecondary::SetTime ( G4double  aT)
inline

Definition at line 43 of file G4HadSecondary.hh.

43{theTime = aT;}

Referenced by G4NeutronHPFissionFS::ApplyYourself().

◆ SetWeight()

void G4HadSecondary::SetWeight ( G4double  aW)
inline

Definition at line 42 of file G4HadSecondary.hh.

42{theWeight= aW;}

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