Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BCDecay Class Reference

#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 G4KineticTrackVectorGetFinalState (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &)
 
- Public Member Functions inherited from G4BCAction
 G4BCAction ()
 
virtual ~G4BCAction ()
 
virtual const std::vector< G4CollisionInitialState * > & GetCollisions (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &someCandidates, G4double aCurrentTime)=0
 
virtual G4KineticTrackVectorGetFinalState (G4KineticTrack *aProjectile, std::vector< G4KineticTrack * > &theTargets)=0
 

Detailed Description

Definition at line 34 of file G4BCDecay.hh.

Constructor & Destructor Documentation

◆ G4BCDecay()

G4BCDecay::G4BCDecay ( )
inline

Definition at line 38 of file G4BCDecay.hh.

38{}

◆ ~G4BCDecay()

virtual G4BCDecay::~G4BCDecay ( )
inlinevirtual

Definition at line 39 of file G4BCDecay.hh.

39{}

Member Function Documentation

◆ GetCollisions()

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:64
G4ParticleDefinition * GetDefinition() const
G4double SampleResidualLifetime()

◆ GetFinalState()

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()

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