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

#include <G4BCLateParticle.hh>

+ Inheritance diagram for G4BCLateParticle:

Public Member Functions

 G4BCLateParticle ()
 
virtual ~G4BCLateParticle ()
 
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 36 of file G4BCLateParticle.hh.

Constructor & Destructor Documentation

◆ G4BCLateParticle()

G4BCLateParticle::G4BCLateParticle ( )
inline

Definition at line 40 of file G4BCLateParticle.hh.

40{}

◆ ~G4BCLateParticle()

virtual G4BCLateParticle::~G4BCLateParticle ( )
inlinevirtual

Definition at line 41 of file G4BCLateParticle.hh.

41{}

Member Function Documentation

◆ GetCollisions()

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

Implements G4BCAction.

Definition at line 43 of file G4BCLateParticle.hh.

46 {
47 theColl.clear();
48 G4double ctime=std::max(0.,aProjectile->GetFormationTime()) + theCurrentTime;
49
50 G4KineticTrackVector noTarget;
53 aProjectile, noTarget, this);
54 theColl.push_back(aLate);
55 return theColl;
56 }
double G4double
Definition G4Types.hh:83
G4double GetFormationTime() const

◆ GetFinalState()

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

Implements G4BCAction.

Definition at line 58 of file G4BCLateParticle.hh.

60 {
62 G4KineticTrack * lateParticle=new G4KineticTrack(*aProjectile);
63 result->push_back(lateParticle);
64 return result;
65 }

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