EpIC 1.1.0
Monte Carlo generator for exclusive processes
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EPIC::Particle Class Reference

Single particle. More...

#include <Particle.h>

Inheritance diagram for EPIC::Particle:

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)
 

Detailed Description

Single particle.

This class defines a single particle.

Constructor & Destructor Documentation

◆ Particle() [1/6]

EPIC::Particle::Particle ( )

Default constructor.

◆ Particle() [2/6]

EPIC::Particle::Particle ( ParticleType::Type  type)

Constructor with type.

◆ Particle() [3/6]

EPIC::Particle::Particle ( ParticleType::Type  type,
const TLorentzVector &  lv 
)

Constructor with four-vector.

◆ Particle() [4/6]

EPIC::Particle::Particle ( ParticleType::Type  type,
const TVector3 &  mom 
)

Constructor with type and momentum. Mass according to the particle type.

◆ Particle() [5/6]

EPIC::Particle::Particle ( ParticleType::Type  type,
const TVector3 &  dir,
double  E 
)

Constructor with type, direction and energy. Mass according to the particle type.

◆ Particle() [6/6]

EPIC::Particle::Particle ( const Particle other)

Copy constructor.

◆ ~Particle()

virtual EPIC::Particle::~Particle ( )
virtual

Destructor.

Member Function Documentation

◆ boost() [1/2]

void EPIC::Particle::boost ( const Particle particle)

Boost to CMS of given particle.

Parameters
particleReference particle.

◆ boost() [2/2]

void EPIC::Particle::boost ( const TVector3 &  v)

Boost.

Parameters
vBoost vector.

◆ getAngle() [1/3]

double EPIC::Particle::getAngle ( AxisType::Type  axis) const

Get angle between particle trajectory and given axis.

Parameters
axisAxis.

◆ getAngle() [2/3]

double EPIC::Particle::getAngle ( const Particle particle) const

Get angle between particle trajectory and other particle trajectory.

Parameters
particleOther particle.

◆ getAngle() [3/3]

double EPIC::Particle::getAngle ( const TVector3 &  dir) const

Get angle between particle trajectory and given direction.

Parameters
particleDirection.

◆ getEnergy()

double EPIC::Particle::getEnergy ( ) const

Get energy evaluated from the associated four-momentum.

◆ getFourMomentum()

const TLorentzVector & EPIC::Particle::getFourMomentum ( ) const

Get four momentum.

◆ getMass()

double EPIC::Particle::getMass ( ) const

Get mass evaluated from the associated four-momentum.

◆ getMomentum()

TVector3 EPIC::Particle::getMomentum ( ) const

Get momentum evaluated from the associated four-momentum.

◆ getPseudoRapidity()

double EPIC::Particle::getPseudoRapidity ( ) const

Get pseudo-rapidity.

◆ getType()

ParticleType::Type EPIC::Particle::getType ( ) const

Get type.

◆ rotate() [1/3]

void EPIC::Particle::rotate ( AxisType::Type  axis,
double  angle 
)

Rotate around X, Y or Z axis.

Parameters
axisRotate around this axis.
angleRotation angle (in radians).

◆ rotate() [2/3]

void EPIC::Particle::rotate ( const Particle particle,
double  angle 
)

Rotate around trajectory of given particle.

Parameters
particleReference particle.
angleRotation angle (in radians).

◆ rotate() [3/3]

void EPIC::Particle::rotate ( const TVector3 &  dir,
double  angle 
)

Rotate around given direction.

Parameters
particleDirection.
angleRotation angle (in radians).

◆ setFourMomentum()

void EPIC::Particle::setFourMomentum ( const TLorentzVector &  lv)

Set four momentum.

◆ setType()

void EPIC::Particle::setType ( ParticleType::Type  type)

Set type.

◆ toString()

std::string EPIC::Particle::toString ( ) const

Get string associated to the object of this class.


The documentation for this class was generated from the following file: