#include <G4ExcitedString.hh>
Definition at line 51 of file G4ExcitedString.hh.
Definition at line 53 of file G4ExcitedString.cc.
55 thePartons.push_back(Color);
56 thePartons.push_back(Gluon);
57 thePartons.push_back(AntiColor);
58 theTimeOfCreation = 0.;
60 theDirection = Direction;
const G4ThreeVector & GetPosition() const
Definition at line 43 of file G4ExcitedString.cc.
45 thePartons.push_back(Color);
46 thePartons.push_back(AntiColor);
47 theTimeOfCreation = 0.;
49 theDirection = Direction;
const G4ThreeVector & GetPosition() const
Definition at line 64 of file G4ExcitedString.cc.
66 theTimeOfCreation = track->GetFormationTime();
67 thePosition = track->GetPosition();
G4ExcitedString::~G4ExcitedString |
( |
| ) |
|
Definition at line 97 of file G4ExcitedString.cc.
99 for(
unsigned int cParton = 0; cParton < thePartons.size() ; cParton++ )
103 thePartons[cParton]->Set4Momentum(Mom);
HepLorentzVector & boost(double, double, double)
Definition at line 161 of file G4ExcitedString.hh.
166 for (
unsigned int index=0; index < thePartons.size() ; index++ )
169 momentum += thePartons[index]->Get4Momentum();
const G4LorentzVector & Get4Momentum() const
G4Parton * G4ExcitedString::GetAntiColorParton |
( |
void |
| ) |
const |
Definition at line 135 of file G4ExcitedString.cc.
137 G4Parton * start = *(thePartons.begin());
138 G4Parton * end = *(thePartons.end()-1);
140 if (Encoding < -1000 || ((Encoding < 1000) && (Encoding > 0)))
Definition at line 109 of file G4ExcitedString.cc.
111 G4Parton * start = *(thePartons.begin());
112 G4Parton * end = *(thePartons.end()-1);
114 if (Encoding < -1000 || ((Encoding < 1000) && (Encoding > 0)))
G4int G4ExcitedString::GetDirection |
( |
void |
| ) |
const |
G4double G4ExcitedString::GetTimeOfCreation |
( |
| ) |
const |
|
inline |
Definition at line 196 of file G4ExcitedString.hh.
199 G4PartonVector::iterator insert_index;
201 if ( addafter != NULL )
203 insert_index=std::find(thePartons.begin(), thePartons.end(), addafter);
204 if ( insert_index == thePartons.end() )
206 G4String text =
"G4ExcitedString::InsertParton called with invalid second argument";
211 thePartons.insert(insert_index+1, aParton);
G4bool G4ExcitedString::IsExcited |
( |
| ) |
const |
|
inline |
G4bool G4ExcitedString::IsItKinkyString |
( |
void |
| ) |
const |
Definition at line 180 of file G4ExcitedString.hh.
184 for (
unsigned int index=0; index < thePartons.size() ; index++ )
186 thePartons[index]->Set4Momentum(rotation*thePartons[index]->
Get4Momentum());
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &a4Momentum)
const G4LorentzVector & Get4Momentum() const
Definition at line 237 of file G4ExcitedString.hh.
242 momentum= toAlignedCms* thePartons[0]->Get4Momentum();
243 toAlignedCms.rotateZ(-1*momentum.phi());
244 toAlignedCms.rotateY(-1*momentum.theta());
246 for (
unsigned int index=0; index < thePartons.size() ; index++ )
248 momentum=toAlignedCms * thePartons[index]->Get4Momentum();
249 thePartons[index]->Set4Momentum(momentum);
Hep3Vector boostVector() const
G4LorentzVector Get4Momentum() const
Definition at line 215 of file G4ExcitedString.hh.
222 for (
unsigned int index=0; index < thePartons.size() ; index++ )
224 momentum=toCms * thePartons[index]->Get4Momentum();
225 thePartons[index]->Set4Momentum(momentum);
Hep3Vector boostVector() const
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &a4Momentum)
The documentation for this class was generated from the following files: