#include <G4BCDecay.hh>
Inheritance diagram for G4BCDecay:
Public Member Functions | |
G4BCDecay () | |
virtual | ~G4BCDecay () |
virtual const std::vector< G4CollisionInitialState * > & | GetCollisions (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &, G4double theCurrentTime) |
virtual G4KineticTrackVector * | GetFinalState (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &) |
Definition at line 34 of file G4BCDecay.hh.
G4BCDecay::G4BCDecay | ( | ) | [inline] |
virtual G4BCDecay::~G4BCDecay | ( | ) | [inline, virtual] |
virtual const std::vector<G4CollisionInitialState *>& G4BCDecay::GetCollisions | ( | G4KineticTrack * | aProjectile, | |
std::vector< G4KineticTrack * > & | , | |||
G4double | theCurrentTime | |||
) | [inline, virtual] |
Implements G4BCAction.
Definition at line 41 of file G4BCDecay.hh.
References G4KineticTrack::GetDefinition(), G4ParticleDefinition::IsShortLived(), and G4KineticTrack::SampleResidualLifetime().
00044 { 00045 theColl.clear(); 00046 if(aProjectile->GetDefinition()->IsShortLived()) 00047 { 00048 G4double aTime = theCurrentTime+aProjectile->SampleResidualLifetime(); 00049 G4KineticTrackVector noTarget; 00050 G4CollisionInitialState * aDecay = 00051 new G4CollisionInitialState(aTime, aProjectile, noTarget, this); 00052 theColl.push_back(aDecay); 00053 } 00054 return theColl; 00055 }
virtual G4KineticTrackVector* G4BCDecay::GetFinalState | ( | G4KineticTrack * | aProjectile, | |
std::vector< G4KineticTrack * > & | ||||
) | [inline, virtual] |
Implements G4BCAction.
Definition at line 57 of file G4BCDecay.hh.
References G4KineticTrack::Decay().
00059 { 00060 return aProjectile->Decay(); 00061 }