Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4BCDecay Class Reference

#include <G4BCDecay.hh>

Inheritance diagram for G4BCDecay:
Collaboration diagram for G4BCDecay:

Public Member Functions

 G4BCDecay ()
 
virtual ~G4BCDecay ()
 
virtual const std::vector
< G4CollisionInitialState * > & 
GetCollisions (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &, G4double theCurrentTime)
 
virtual G4KineticTrackVectorGetFinalState (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &)
 
- Public Member Functions inherited from G4BCAction
 G4BCAction ()
 
virtual ~G4BCAction ()
 

Detailed Description

Definition at line 34 of file G4BCDecay.hh.

Constructor & Destructor Documentation

G4BCDecay::G4BCDecay ( )
inline

Definition at line 38 of file G4BCDecay.hh.

38 {}
virtual G4BCDecay::~G4BCDecay ( )
inlinevirtual

Definition at line 39 of file G4BCDecay.hh.

39 {}

Member Function Documentation

virtual const std::vector<G4CollisionInitialState *>& G4BCDecay::GetCollisions ( G4KineticTrack aProjectile,
std::vector< G4KineticTrack * > &  ,
G4double  theCurrentTime 
)
inlinevirtual

Implements G4BCAction.

Definition at line 41 of file G4BCDecay.hh.

44  {
45  theColl.clear();
46  if(aProjectile->GetDefinition()->IsShortLived())
47  {
48  G4double aTime = theCurrentTime+aProjectile->SampleResidualLifetime();
49  G4KineticTrackVector noTarget;
50  G4CollisionInitialState * aDecay =
51  new G4CollisionInitialState(aTime, aProjectile, noTarget, this);
52  theColl.push_back(aDecay);
53  }
54  return theColl;
55  }
double G4double
Definition: G4Types.hh:76
G4double SampleResidualLifetime()
const G4ParticleDefinition * GetDefinition() const

Here is the call graph for this function:

virtual G4KineticTrackVector* G4BCDecay::GetFinalState ( G4KineticTrack aProjectile,
std::vector< G4KineticTrack * > &   
)
inlinevirtual

Implements G4BCAction.

Definition at line 57 of file G4BCDecay.hh.

59  {
60  return aProjectile->Decay();
61  }
G4KineticTrackVector * Decay()

Here is the call graph for this function:


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