29 #ifndef G4ExcitedString_h
30 #define G4ExcitedString_h 1
127 return this == &
right;
133 return this != &
right;
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++ )
185 G4PartonVector::iterator insert_index;
187 if ( addafter != NULL )
192 G4String text =
"G4ExcitedString::InsertParton called with invalid second argument";
206 for (
unsigned int index=0; index <
thePartons.size() ; index++ )
208 momentum=toCms *
thePartons[index]->Get4Momentum();
220 momentum= toAlignedCms*
thePartons[0]->Get4Momentum();
221 toAlignedCms.rotateZ(-1*momentum.phi());
222 toAlignedCms.rotateY(-1*momentum.theta());
224 for (
unsigned int index=0; index <
thePartons.size() ; index++ )
226 momentum=toAlignedCms *
thePartons[index]->Get4Momentum();
G4Parton * GetGluon(void) const
CLHEP::Hep3Vector G4ThreeVector
CLHEP::HepLorentzRotation G4LorentzRotation
G4double theTimeOfCreation
G4LorentzRotation TransformToCenterOfMass()
G4Parton * GetLeftParton(void) const
G4bool IsItKinkyString(void) const
G4PartonVector thePartons
G4ThreeVector thePosition
void LorentzRotate(const G4LorentzRotation &rotation)
void Boost(G4ThreeVector &Velocity)
void InsertParton(G4Parton *aParton, const G4Parton *addafter=NULL)
G4Parton * GetAntiColorParton(void) const
const G4ThreeVector & GetPosition() const
G4ExcitedString & operator=(const G4ExcitedString &right)
G4ExcitedString(G4Parton *Color, G4Parton *Gluon, G4Parton *AntiColor, G4int Direction=PROJECTILE)
void SetPosition(const G4ThreeVector &aPosition)
void SetTimeOfCreation(G4double aTime)
const G4PartonVector * GetPartonList() const
G4LorentzVector Get4Momentum() const
G4LorentzRotation TransformToAlignedCms()
G4KineticTrack * GetKineticTrack() const
int operator==(const G4ExcitedString &right) const
G4Parton * GetColorParton(void) const
G4Parton * GetRightParton(void) const
std::vector< G4Parton * > G4PartonVector
G4double GetTimeOfCreation() const
G4int GetDirection(void) const
G4KineticTrack * theTrack
int operator!=(const G4ExcitedString &right) const
CLHEP::HepLorentzVector G4LorentzVector