37#ifndef G4CollisionInitialState_hh
38#define G4CollisionInitialState_hh
63 {
return (theCollisionTime < right.theCollisionTime);}
66 {
return (theCollisionTime == right.theCollisionTime);}
72 {thePrimary = aPrimary;}
77 {theTarget = aTarget;}
80 {theTs.push_back(aTarget);}
87 for(
size_t i=0; i<theTs.size(); i++)
89 result += theTs[i]->GetDefinition()->GetBaryonNumber();
96 for(
size_t i=0; i<theTs.size(); i++)
98 result += theTs[i]->GetDefinition()->GetPDGCharge();
106 {
return theCollisionTime;}
108 {theCollisionTime = value;}
113 return theFSGenerator;
void SetPrimary(G4KineticTrack *aPrimary)
G4KineticTrackVector & GetTargetCollection(void)
G4BCAction * GetGenerator()
G4CollisionInitialState()
G4KineticTrackVector * GetFinalState()
void SetTarget(G4KineticTrack *aTarget)
G4KineticTrack * GetTarget(void)
int operator<(const G4CollisionInitialState &right) const
G4int GetTargetBaryonNumber()
void SetCollisionTime(G4double value)
~G4CollisionInitialState()
G4double GetCollisionTime(void)
G4KineticTrack * GetPrimary(void)
G4CollisionInitialState & operator=(const G4CollisionInitialState &right)
int operator==(const G4CollisionInitialState &right) const
void AddTarget(G4KineticTrack *aTarget)