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

#include <G4BCLateParticle.hh>

Inheritance diagram for G4BCLateParticle:
Collaboration 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 ( )
inline

Definition at line 40 of file G4BCLateParticle.hh.

40 {}
virtual G4BCLateParticle::~G4BCLateParticle ( )
inlinevirtual

Definition at line 41 of file G4BCLateParticle.hh.

41 {}

Member Function Documentation

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;
51  G4CollisionInitialState * aLate =
52  new G4CollisionInitialState(ctime,
53  aProjectile, noTarget, this);
54  theColl.push_back(aLate);
55  return theColl;
56  }
G4double GetFormationTime() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

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  }
G4double G4ParticleHPJENDLHEData::G4double result

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