#include <G4LorentzConvertor.hh>
Definition at line 45 of file G4LorentzConvertor.hh.
◆ G4LorentzConvertor() [1/3]
G4LorentzConvertor::G4LorentzConvertor |
( |
| ) |
|
◆ G4LorentzConvertor() [2/3]
Definition at line 51 of file G4LorentzConvertor.cc.
void setBullet(const G4InuclParticle *bullet)
void setTarget(const G4InuclParticle *target)
◆ G4LorentzConvertor() [3/3]
Definition at line 59 of file G4LorentzConvertor.cc.
void setBullet(const G4InuclParticle *bullet)
void setTarget(const G4InuclParticle *target)
◆ backToTheLab()
Definition at line 135 of file G4LorentzConvertor.cc.
137 G4cout <<
" >>> G4LorentzConvertor::backToTheLab" <<
G4endl;
140 G4cout <<
" at rest: px " << mom.
x() <<
" py " << mom.
y() <<
" pz " 141 << mom.
z() <<
" e " << mom.
e() << G4endl
148 G4cout <<
" at lab: px " << mom1.
x() <<
" py " << mom1.
y() <<
" pz "
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
static const G4double small
◆ fillKinematics()
void G4LorentzConvertor::fillKinematics |
( |
| ) |
|
Definition at line 113 of file G4LorentzConvertor.cc.
126 G4cout <<
" degenerated case (already along Z) " <<
G4endl;
129 G4cout <<
" v2 " <<
v2 <<
" valong " << valong
130 <<
" valong*valong " << valong*valong <<
G4endl;
G4LorentzVector bullet_mom
G4ThreeVector scm_direction
G4GLOB_DLL std::ostream G4cout
G4LorentzVector scm_momentum
double dot(const Hep3Vector &) const
G4LorentzVector target_mom
static const G4double small
◆ getBullet()
◆ getKinEnergyInTheTRS()
G4double G4LorentzConvertor::getKinEnergyInTheTRS |
( |
| ) |
const |
Definition at line 157 of file G4LorentzConvertor.cc.
159 G4cout <<
" >>> G4LorentzConvertor::getKinEnergyInTheTRS" <<
G4endl;
163 return bmom.
e()-bmom.
m();
G4LorentzVector bullet_mom
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
Hep3Vector boostVector() const
G4LorentzVector target_mom
◆ getSCMMomentum()
G4double G4LorentzConvertor::getSCMMomentum |
( |
| ) |
const |
|
inline |
◆ getTarget()
◆ getTotalSCMEnergy()
G4double G4LorentzConvertor::getTotalSCMEnergy |
( |
| ) |
const |
|
inline |
◆ getTRSMomentum()
G4double G4LorentzConvertor::getTRSMomentum |
( |
| ) |
const |
Definition at line 166 of file G4LorentzConvertor.cc.
168 G4cout <<
" >>> G4LorentzConvertor::getTRSMomentum" <<
G4endl;
G4LorentzVector bullet_mom
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
Hep3Vector boostVector() const
G4LorentzVector target_mom
◆ printBullet()
void G4LorentzConvertor::printBullet |
( |
| ) |
const |
◆ printTarget()
void G4LorentzConvertor::printTarget |
( |
| ) |
const |
◆ reflectionNeeded()
G4bool G4LorentzConvertor::reflectionNeeded |
( |
| ) |
const |
Definition at line 265 of file G4LorentzConvertor.cc.
267 G4cout <<
" >>> G4LorentzConvertor::reflectionNeeded (query)" <<
G4endl;
275 throw G4HadronicException(__FILE__, __LINE__,
"G4LorentzConvertor::reflectionNeeded - return value undefined");
278 G4cout <<
" reflection across XY is"
G4GLOB_DLL std::ostream G4cout
G4LorentzVector scm_momentum
static const G4double small
◆ rotate() [1/2]
Definition at line 175 of file G4LorentzConvertor.cc.
177 G4cout <<
" >>> G4LorentzConvertor::rotate(G4LorentzVector)" <<
G4endl;
181 <<
" before rotation: px " << mom.
x() <<
" py " << mom.
y()
182 <<
" pz " << mom.
z() <<
G4endl;
188 G4cout <<
" rotating to align with reference z axis " <<
G4endl;
195 G4cout <<
" reference z axis " << scm_direction
196 <<
" vscm " << vscm <<
" vxcm " << vxcm <<
G4endl;
203 G4cerr <<
">>> G4LorentzVector::rotate zero with !degenerated" <<
G4endl;
208 G4cout <<
" after rotation: px " << mom_rot.
x() <<
" py " << mom_rot.
y()
209 <<
" pz " << mom_rot.
z() <<
G4endl;
G4ThreeVector scm_direction
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
void setVect(const Hep3Vector &)
static const G4double small
G4GLOB_DLL std::ostream G4cerr
◆ rotate() [2/2]
Definition at line 215 of file G4LorentzConvertor.cc.
218 G4cout <<
" >>> G4LorentzConvertor::rotate(G4LorentzVector,G4LorentzVector)" 222 G4cout <<
" before rotation: px " << mom.
x() <<
" py " << mom.
y()
223 <<
" pz " << mom.
z() <<
G4endl;
231 G4cout <<
" vperp " << vperp <<
" small? " << (vperp <=
small) << G4endl;
238 G4cout <<
" rotating to align with first z axis " <<
G4endl;
245 G4cout <<
" first z axis " << mom1_dir << G4endl
246 <<
" vmom1 " << vmom1 <<
" vxm1 " << vxm1 <<
G4endl;
249 mom_rot.setVect(mom.
x()*vmom1.
unit() + mom.
y()*vxm1.
unit() +
253 G4cerr <<
">>> G4LorentzVector::rotate zero with !degenerated" <<
G4endl;
258 G4cout <<
" after rotation: px " << mom_rot.x() <<
" py " << mom_rot.y()
259 <<
" pz " << mom_rot.z() <<
G4endl;
G4GLOB_DLL std::ostream G4cout
Hep3Vector cross(const Hep3Vector &) const
double dot(const Hep3Vector &) const
static const G4double small
G4GLOB_DLL std::ostream G4cerr
◆ setBullet() [1/4]
Definition at line 67 of file G4LorentzConvertor.cc.
G4LorentzVector getMomentum() const
void setBullet(const G4InuclParticle *bullet)
◆ setBullet() [2/4]
◆ setBullet() [3/4]
◆ setBullet() [4/4]
Definition at line 75 of file G4LorentzConvertor.hh.
G4LorentzVector bullet_mom
void setVectM(const Hep3Vector &spatial, double mass)
◆ setTarget() [1/4]
Definition at line 71 of file G4LorentzConvertor.cc.
G4LorentzVector getMomentum() const
void setTarget(const G4InuclParticle *target)
◆ setTarget() [2/4]
◆ setTarget() [3/4]
◆ setTarget() [4/4]
Definition at line 80 of file G4LorentzConvertor.hh.
void setVectM(const Hep3Vector &spatial, double mass)
G4LorentzVector target_mom
◆ setVerbose()
void G4LorentzConvertor::setVerbose |
( |
G4int |
vb = 0 | ) |
|
|
inline |
◆ toTheCenterOfMass()
void G4LorentzConvertor::toTheCenterOfMass |
( |
| ) |
|
Definition at line 78 of file G4LorentzConvertor.cc.
80 G4cout <<
" >>> G4LorentzConvertor::toTheCenterOfMass" <<
G4endl;
G4LorentzVector bullet_mom
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
G4LorentzVector scm_momentum
G4LorentzVector target_mom
void setVect(const Hep3Vector &)
◆ toTheTargetRestFrame()
void G4LorentzConvertor::toTheTargetRestFrame |
( |
| ) |
|
Definition at line 95 of file G4LorentzConvertor.cc.
97 G4cout <<
" >>> G4LorentzConvertor::toTheTargetRestFrame" <<
G4endl;
G4LorentzVector bullet_mom
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
G4LorentzVector scm_momentum
Hep3Vector boostVector() const
G4LorentzVector target_mom
◆ trivial()
G4bool G4LorentzConvertor::trivial |
( |
| ) |
const |
|
inline |
◆ bullet_mom
◆ degenerated
G4bool G4LorentzConvertor::degenerated |
|
private |
◆ ecm_tot
◆ scm_direction
◆ scm_momentum
◆ small
const G4double G4LorentzConvertor::small = 1.0e-10 |
|
staticprivate |
◆ target_mom
◆ v2
◆ valong
◆ velocity
◆ verboseLevel
G4int G4LorentzConvertor::verboseLevel |
|
private |
The documentation for this class was generated from the following files: