EpIC 1.1.0
Monte Carlo generator for exclusive processes
|
Single particle. More...
#include <Particle.h>
Public Member Functions | |
Particle () | |
Particle (ParticleType::Type type) | |
Particle (ParticleType::Type type, const TLorentzVector &lv) | |
Particle (ParticleType::Type type, const TVector3 &mom) | |
Particle (ParticleType::Type type, const TVector3 &dir, double E) | |
Particle (const Particle &other) | |
virtual | ~Particle () |
double | getEnergy () const |
double | getMass () const |
TVector3 | getMomentum () const |
double | getPseudoRapidity () const |
void | rotate (AxisType::Type axis, double angle) |
void | rotate (const TVector3 &dir, double angle) |
void | rotate (const Particle &particle, double angle) |
double | getAngle (AxisType::Type axis) const |
double | getAngle (const TVector3 &dir) const |
double | getAngle (const Particle &particle) const |
void | boost (const TVector3 &v) |
void | boost (const Particle &particle) |
std::string | toString () const |
const TLorentzVector & | getFourMomentum () const |
void | setFourMomentum (const TLorentzVector &lv) |
ParticleType::Type | getType () const |
void | setType (ParticleType::Type type) |
Single particle.
This class defines a single particle.
EPIC::Particle::Particle | ( | ) |
Default constructor.
EPIC::Particle::Particle | ( | ParticleType::Type | type | ) |
Constructor with type.
EPIC::Particle::Particle | ( | ParticleType::Type | type, |
const TLorentzVector & | lv | ||
) |
Constructor with four-vector.
EPIC::Particle::Particle | ( | ParticleType::Type | type, |
const TVector3 & | mom | ||
) |
Constructor with type and momentum. Mass according to the particle type.
EPIC::Particle::Particle | ( | ParticleType::Type | type, |
const TVector3 & | dir, | ||
double | E | ||
) |
Constructor with type, direction and energy. Mass according to the particle type.
EPIC::Particle::Particle | ( | const Particle & | other | ) |
Copy constructor.
|
virtual |
Destructor.
void EPIC::Particle::boost | ( | const Particle & | particle | ) |
Boost to CMS of given particle.
particle | Reference particle. |
void EPIC::Particle::boost | ( | const TVector3 & | v | ) |
Boost.
v | Boost vector. |
double EPIC::Particle::getAngle | ( | AxisType::Type | axis | ) | const |
Get angle between particle trajectory and given axis.
axis | Axis. |
double EPIC::Particle::getAngle | ( | const Particle & | particle | ) | const |
Get angle between particle trajectory and other particle trajectory.
particle | Other particle. |
double EPIC::Particle::getAngle | ( | const TVector3 & | dir | ) | const |
Get angle between particle trajectory and given direction.
particle | Direction. |
double EPIC::Particle::getEnergy | ( | ) | const |
Get energy evaluated from the associated four-momentum.
const TLorentzVector & EPIC::Particle::getFourMomentum | ( | ) | const |
Get four momentum.
double EPIC::Particle::getMass | ( | ) | const |
Get mass evaluated from the associated four-momentum.
TVector3 EPIC::Particle::getMomentum | ( | ) | const |
Get momentum evaluated from the associated four-momentum.
double EPIC::Particle::getPseudoRapidity | ( | ) | const |
Get pseudo-rapidity.
ParticleType::Type EPIC::Particle::getType | ( | ) | const |
Get type.
void EPIC::Particle::rotate | ( | AxisType::Type | axis, |
double | angle | ||
) |
Rotate around X, Y or Z axis.
axis | Rotate around this axis. |
angle | Rotation angle (in radians). |
void EPIC::Particle::rotate | ( | const Particle & | particle, |
double | angle | ||
) |
Rotate around trajectory of given particle.
particle | Reference particle. |
angle | Rotation angle (in radians). |
void EPIC::Particle::rotate | ( | const TVector3 & | dir, |
double | angle | ||
) |
Rotate around given direction.
particle | Direction. |
angle | Rotation angle (in radians). |
void EPIC::Particle::setFourMomentum | ( | const TLorentzVector & | lv | ) |
Set four momentum.
void EPIC::Particle::setType | ( | ParticleType::Type | type | ) |
Set type.
std::string EPIC::Particle::toString | ( | ) | const |
Get string associated to the object of this class.