35#ifndef G4CollisionInitialState_hh
36#define G4CollisionInitialState_hh
61 {
return (theCollisionTime < right.theCollisionTime);}
64 {
return (theCollisionTime == right.theCollisionTime);}
70 {thePrimary = aPrimary;}
75 {theTarget = aTarget;}
78 {theTs.push_back(aTarget);}
85 for(
size_t i=0; i<theTs.size(); i++)
87 result += theTs[i]->GetDefinition()->GetBaryonNumber();
94 for(
size_t i=0; i<theTs.size(); i++)
96 result += theTs[i]->GetDefinition()->GetPDGCharge();
104 {
return theCollisionTime;}
106 {theCollisionTime = value;}
111 return theFSGenerator;
void SetPrimary(G4KineticTrack *aPrimary)
G4KineticTrackVector & GetTargetCollection(void)
G4CollisionInitialState()
G4KineticTrackVector * GetFinalState()
G4bool operator<(const G4CollisionInitialState &right) const
void SetTarget(G4KineticTrack *aTarget)
const G4BCAction * GetGenerator()
G4bool operator==(const G4CollisionInitialState &right) const
G4KineticTrack * GetTarget(void)
G4int GetTargetBaryonNumber()
void SetCollisionTime(G4double value)
~G4CollisionInitialState()
G4double GetCollisionTime(void)
G4KineticTrack * GetPrimary(void)
G4CollisionInitialState & operator=(const G4CollisionInitialState &right)
void AddTarget(G4KineticTrack *aTarget)