47 : verboseLevel(0), v2(0.), ecm_tot(0.), valong(0.), degenerated(false) {}
52 : verboseLevel(0), v2(0.), ecm_tot(0.), valong(0.), degenerated(false) {
60 : verboseLevel(0), v2(0.), ecm_tot(0.), valong(0.), degenerated(false) {
79 G4cout <<
" >>> G4LorentzConvertor::toTheCenterOfMass" <<
G4endl;
96 G4cout <<
" >>> G4LorentzConvertor::toTheTargetRestFrame" <<
G4endl;
125 G4cout <<
" degenerated case (already along Z) " <<
G4endl;
136 G4cout <<
" >>> G4LorentzConvertor::backToTheLab" <<
G4endl;
139 G4cout <<
" at rest: px " << mom.
x() <<
" py " << mom.
y() <<
" pz "
140 << mom.
z() <<
" e " << mom.
e() <<
G4endl
147 G4cout <<
" at lab: px " << mom1.
x() <<
" py " << mom1.
y() <<
" pz "
158 G4cout <<
" >>> G4LorentzConvertor::getKinEnergyInTheTRS" <<
G4endl;
162 return bmom.
e()-bmom.
m();
167 G4cout <<
" >>> G4LorentzConvertor::getTRSMomentum" <<
G4endl;
176 G4cout <<
" >>> G4LorentzConvertor::rotate(G4LorentzVector)" <<
G4endl;
180 <<
" before rotation: px " << mom.
x() <<
" py " << mom.
y()
181 <<
" pz " << mom.
z() <<
G4endl;
187 G4cout <<
" rotating to align with reference z axis " <<
G4endl;
195 <<
" vscm " << vscm <<
" vxcm " << vxcm <<
G4endl;
202 G4cerr <<
">>> G4LorentzVector::rotate zero with !degenerated" <<
G4endl;
207 G4cout <<
" after rotation: px " << mom_rot.
x() <<
" py " << mom_rot.
y()
208 <<
" pz " << mom_rot.
z() <<
G4endl;
217 G4cout <<
" >>> G4LorentzConvertor::rotate(G4LorentzVector,G4LorentzVector)"
221 G4cout <<
" before rotation: px " << mom.
x() <<
" py " << mom.
y()
222 <<
" pz " << mom.
z() <<
G4endl;
237 G4cout <<
" rotating to align with first z axis " <<
G4endl;
245 <<
" vmom1 " << vmom1 <<
" vxm1 " << vxm1 <<
G4endl;
252 G4cerr <<
">>> G4LorentzVector::rotate zero with !degenerated" <<
G4endl;
257 G4cout <<
" after rotation: px " << mom_rot.
x() <<
" py " << mom_rot.
y()
258 <<
" pz " << mom_rot.
z() <<
G4endl;
266 G4cout <<
" >>> G4LorentzConvertor::reflectionNeeded (query)" <<
G4endl;
274 throw G4HadronicException(__FILE__, __LINE__,
"G4LorentzConvertor::reflectionNeeded - return value undefined");
277 G4cout <<
" reflection across XY is"
static constexpr double m
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
double dot(const Hep3Vector &) const
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
void setVect(const Hep3Vector &)
G4LorentzVector getMomentum() const
void toTheTargetRestFrame()
G4double getTRSMomentum() const
G4LorentzVector target_mom
G4ThreeVector scm_direction
G4bool reflectionNeeded() const
G4LorentzVector bullet_mom
void setBullet(const G4InuclParticle *bullet)
G4LorentzVector backToTheLab(const G4LorentzVector &mom) const
G4LorentzVector scm_momentum
static const G4double small
G4LorentzVector rotate(const G4LorentzVector &mom) const
G4double getKinEnergyInTheTRS() const
void setTarget(const G4InuclParticle *target)