G4BCDecay Class Reference

#include <G4BCDecay.hh>

Inheritance diagram for G4BCDecay:

G4BCAction

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 * > &)

Detailed Description

Definition at line 34 of file G4BCDecay.hh.


Constructor & Destructor Documentation

G4BCDecay::G4BCDecay (  )  [inline]

Definition at line 38 of file G4BCDecay.hh.

00038 {}

virtual G4BCDecay::~G4BCDecay (  )  [inline, virtual]

Definition at line 39 of file G4BCDecay.hh.

00039 {}


Member Function Documentation

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   }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:51:29 2013 for Geant4 by  doxygen 1.4.7