29#ifndef G4ExcitedString_h
30#define G4ExcitedString_h 1
127 return this == &right;
133 return this != &right;
139 return theTimeOfCreation;
145 theTimeOfCreation=aTime;
157 thePosition= aPosition;
164 for (
unsigned int index=0; index < thePartons.size() ; index++ )
167 momentum += thePartons[index]->Get4Momentum();
175 for (
unsigned int index=0; index < thePartons.size() ; index++ )
177 thePartons[index]->Set4Momentum(rotation*thePartons[index]->
Get4Momentum());
185 G4PartonVector::iterator insert_index;
187 if ( addafter != NULL )
189 insert_index=std::find(thePartons.begin(), thePartons.end(), addafter);
190 if (insert_index == thePartons.end())
192 G4String text =
"G4ExcitedString::InsertParton called with invalid second argument";
197 thePartons.insert(insert_index+1, aParton);
206 for (
unsigned int index=0; index < thePartons.size() ; index++ )
208 momentum=toCms * thePartons[index]->Get4Momentum();
209 thePartons[index]->Set4Momentum(momentum);
220 momentum= toAlignedCms* thePartons[0]->Get4Momentum();
224 for (
unsigned int index=0; index < thePartons.size() ; index++ )
226 momentum=toAlignedCms * thePartons[index]->Get4Momentum();
227 thePartons[index]->Set4Momentum(momentum);
248 return theTrack == 0;
std::vector< G4Parton * > G4PartonVector
HepLorentzRotation & rotateY(double delta)
HepLorentzRotation & rotateZ(double delta)
Hep3Vector boostVector() const
G4LorentzRotation TransformToCenterOfMass()
int operator==(const G4ExcitedString &right) const
G4Parton * GetAntiColorParton(void) const
const G4PartonVector * GetPartonList() const
G4KineticTrack * GetKineticTrack() const
void InsertParton(G4Parton *aParton, const G4Parton *addafter=NULL)
G4double GetTimeOfCreation() const
void SetPosition(const G4ThreeVector &aPosition)
const G4ThreeVector & GetPosition() const
G4int GetDirection(void) const
G4LorentzRotation TransformToAlignedCms()
void Boost(G4ThreeVector &Velocity)
G4Parton * GetGluon(void) const
G4Parton * GetRightParton(void) const
void SetTimeOfCreation(G4double aTime)
G4Parton * GetLeftParton(void) const
G4LorentzVector Get4Momentum() const
G4bool IsItKinkyString(void) const
G4Parton * GetColorParton(void) const
int operator!=(const G4ExcitedString &right) const
void LorentzRotate(const G4LorentzRotation &rotation)