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;
G4KineticTrack * GetPrimary(void)
G4KineticTrackVector * GetFinalState()
int operator==(const G4CollisionInitialState &right) const
G4KineticTrack * GetTarget(void)
int operator<(const G4CollisionInitialState &right) const
G4int GetTargetBaryonNumber()
G4KineticTrackVector & GetTargetCollection(void)
void SetTarget(G4KineticTrack *aTarget)
~G4CollisionInitialState()
G4BCAction * GetGenerator()
void SetPrimary(G4KineticTrack *aPrimary)
G4CollisionInitialState & operator=(const G4CollisionInitialState &right)
const XML_Char int const XML_Char * value
G4double GetCollisionTime(void)
G4CollisionInitialState()
void AddTarget(G4KineticTrack *aTarget)
void SetCollisionTime(G4double value)