G4HadSecondary Class Reference

#include <G4HadSecondary.hh>


Public Member Functions

 G4HadSecondary (G4DynamicParticle *aT, G4double aWeight=1)
G4DynamicParticle * GetParticle ()
const G4DynamicParticle * GetParticle () 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 ( G4DynamicParticle *  aT,
G4double  aWeight = 1 
)

Definition at line 30 of file G4HadSecondary.cc.

References G4HadSecondary(), and G4DynamicParticle::GetKineticEnergy().

Referenced by G4HadSecondary().

00030                                                                        :
00031     theP(aT), theWeight(aWeight), theTime(-1)
00032 {
00033   if(aT->GetKineticEnergy()<0)
00034   {
00035     throw G4HadronicException(__FILE__, __LINE__, 
00036     "ATTEMPTING TO CREATE A SECONDARY WITH NEGATIVE KINETIC ENERGY.");
00037   }
00038 }
}


Member Function Documentation

const G4DynamicParticle* G4HadSecondary::GetParticle (  )  const [inline]

Definition at line 40 of file G4HadSecondary.hh.

00040 {return theP;}

G4DynamicParticle* G4HadSecondary::GetParticle (  )  [inline]

Definition at line 39 of file G4HadSecondary.hh.

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4WilsonAbrasionModel::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4MuMinusCapturePrecompound::ApplyYourself(), G4LFission::ApplyYourself(), G4HadLeadBias::Bias(), G4HadronicProcess::CheckResult(), G4InelasticInteraction::ExtractResidualNucleus(), G4HadronicProcess::FillResult(), G4WHadronElasticProcess::PostStepDoIt(), and G4HadronElasticProcess::PostStepDoIt().

00039 {return theP;}

G4double G4HadSecondary::GetTime (  )  const [inline]

Definition at line 44 of file G4HadSecondary.hh.

Referenced by G4HadronicProcess::FillResult().

00044 {return theTime;}

G4double G4HadSecondary::GetWeight (  )  const [inline]

Definition at line 41 of file G4HadSecondary.hh.

Referenced by G4HadronicProcess::FillResult().

00041 {return theWeight;}

void G4HadSecondary::SetTime ( G4double  aT  )  [inline]

Definition at line 43 of file G4HadSecondary.hh.

00043 {theTime = aT;}

void G4HadSecondary::SetWeight ( G4double  aW  )  [inline]

Definition at line 42 of file G4HadSecondary.hh.

00042 {theWeight= aW;}


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:09 2013 for Geant4 by  doxygen 1.4.7