TauolaParticle Class Reference

Inheritance diagram for TauolaParticle:
Inheritance graph
[legend]
Collaboration diagram for TauolaParticle:
Collaboration graph
[legend]

Public Member Functions

TauolaParticleclone ()
double getAngle (TauolaParticle *)
void add (TauolaParticle *)
void subtract (TauolaParticle *)
void decay ()
void addDecayToEventRecord ()
int getSign ()
double getPolarimetricX ()
double getPolarimetricY ()
double getPolarimetricZ ()
bool hasDaughters ()
TauolaParticlefindLastSelf ()
std::vector< TauolaParticle * > findProductionMothers ()
void boostToRestFrame (TauolaParticle *boost)
void boostDaughtersToRestFrame (TauolaParticle *boost)
void boostFromRestFrame (TauolaParticle *boost)
void boostDaughtersFromRestFrame (TauolaParticle *boost)
void boostAlongZ (double pz, double e)
void rotate (int axis, double phi, int second_axis=Z_AXIS)
void rotateDaughters (int axis, double phi, int second_axis=Z_AXIS)
double getRotationAngle (int axis, int second_axis=Z_AXIS)
double getP ()
double getP (int axis)
void setP (int axis, double p_component)
double getMass ()
virtual void undecay ()
virtual void checkMomentumConservation ()
virtual void decayEndgame ()
virtual double getPx ()=0
virtual double getPy ()=0
virtual double getPz ()=0
virtual double getE ()=0
virtual void setPx (double px)=0
virtual void setPy (double py)=0
virtual void setPz (double pz)=0
virtual void setE (double e)=0
virtual void setMothers (std::vector< TauolaParticle * > mothers)=0
virtual void setDaughters (std::vector< TauolaParticle * > daughters)=0
virtual std::vector
< TauolaParticle * > 
getMothers ()=0
virtual std::vector
< TauolaParticle * > 
getDaughters ()=0
virtual void setPdgID (int pdg_id)=0
virtual void setMass (double mass)=0
virtual void setStatus (int status)=0
virtual int getPdgID ()=0
virtual int getStatus ()=0
virtual int getBarcode ()=0
virtual TauolaParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)=0
virtual void print ()=0

Static Public Attributes

static const int SAME_SIGN = 1
static const int OPPOSITE_SIGN = 2
static const int NA_SIGN = 3
static const int STABLE = 1
static const int DECAYED = 2
static const int HISTORY = 3
static const int X_AXIS = 1
static const int Y_AXIS = 2
static const int Z_AXIS = 3
static const int Z0 = 23
static const int HIGGS = 25
static const int HIGGS_A = 36
static const int HIGGS_PLUS = 37
static const int HIGGS_MINUS = -37
static const int W_PLUS = 24
static const int W_MINUS = -24
static const int GAMMA = 22
static const int TAU_PLUS = -15
static const int TAU_MINUS = 15
static const int TAU_NEUTRINO = 16
static const int TAU_ANTINEUTRINO = -16
static const int MUON_PLUS = -13
static const int MUON_MINUS = 13
static const int MUON_NEUTRINO = 14
static const int MUON_ANTINEUTRINO = -14
static const int POSITRON = -11
static const int ELECTRON = 11
static const int ELECTRON_NEUTRINO = 12
static const int ELECTRON_ANTINEUTRINO = -12
static const int UP = 2
static const int ANTIUP = -2
static const int DOWN = 1
static const int ANTIDOWN = -1
static const int GLUON = 21
static const int CHARM = 4
static const int TOP = 6
static const int STRANGE = 3
static const int BOTTOM = 5
static const int OTHER = 0

Private Attributes

double m_pol_x
double m_pol_y
double m_pol_z
double m_pol_n

Detailed Description

Definition at line 33 of file TauolaParticle.h.


Member Function Documentation

void add ( TauolaParticle other_particle  ) 
void addDecayToEventRecord (  ) 
void boostAlongZ ( double  boost_pz,
double  boost_e 
)

Do a Lorenz transformation along the Z axis.

Boost this vector along the Z direction. Assume no momentum components in the X or Y directions.

Definition at line 292 of file TauolaParticle.cxx.

References TauolaParticle::getE(), TauolaParticle::getPz(), TauolaParticle::setE(), and TauolaParticle::setPz().

void boostDaughtersToRestFrame ( TauolaParticle boost  ) 

Transform the four momentum of all the daughters recursively into the frame of the "particle" TauolaParticle.

Definition at line 215 of file TauolaParticle.cxx.

References TauolaParticle::getDaughters(), and TauolaParticle::hasDaughters().

void boostFromRestFrame ( TauolaParticle boost  ) 

Transform this particles four momentum from the rest frame of the paramter TauolaParticle, back into the lab frame.

Definition at line 250 of file TauolaParticle.cxx.

References TauolaParticle::boostAlongZ(), TauolaParticle::getE(), TauolaParticle::getP(), TauolaParticle::getRotationAngle(), TauolaParticle::rotate(), TauolaParticle::X_AXIS, and TauolaParticle::Y_AXIS.

void boostToRestFrame ( TauolaParticle boost  ) 

Transform this particles four momentum from the lab frome into the rest frame of the paramter TauolaParticle.

Definition at line 234 of file TauolaParticle.cxx.

References TauolaParticle::boostAlongZ(), TauolaParticle::getE(), TauolaParticle::getP(), TauolaParticle::getRotationAngle(), TauolaParticle::rotate(), TauolaParticle::X_AXIS, and TauolaParticle::Y_AXIS.

virtual void checkMomentumConservation (  )  [inline, virtual]

check that the 4 momentum in conserved at the vertices producing and ending this particle

Reimplemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

Definition at line 258 of file TauolaParticle.h.

TauolaParticle * clone (  ) 

Create a new particle with the same properties as this one. Mothers and daughters will not be linked.

Definition at line 21 of file TauolaParticle.cxx.

References TauolaParticle::createNewParticle(), TauolaParticle::getE(), TauolaParticle::getMass(), TauolaParticle::getPdgID(), TauolaParticle::getPx(), TauolaParticle::getPy(), TauolaParticle::getPz(), and TauolaParticle::getStatus().

virtual TauolaParticle* createNewParticle ( int  pdg_id,
int  status,
double  mass,
double  px,
double  py,
double  pz,
double  e 
) [pure virtual]

Create a new particle of the same type, with the given properties. The new particle bares no relations to this particle, but it provides a way of creating a intance of the derived class. eg. createNewParticle() is used inside filhep_() so that an eg. TauolaHepMCParticle is created without the method having explicit knowledge of the TauolaHepMCParticle class

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

void decay (  ) 

Decay the particle. This calls the decay methods in the interface to (FORTRAN) tauola.

Definition at line 103 of file TauolaParticle.cxx.

References TauolaParticle::getSign(), TauolaParticle::m_pol_n, TauolaParticle::m_pol_x, TauolaParticle::m_pol_y, TauolaParticle::m_pol_z, and Tauolapp::TauolaDecay().

virtual void decayEndgame (  )  [inline, virtual]

Optional. Modify particle or decay tree if needed.

Reimplemented in TauolaHepMCParticle.

Definition at line 261 of file TauolaParticle.h.

TauolaParticle * findLastSelf (  ) 

Traverse the event structure and find the final version of this particle which does not have a particle of it's own type as it's daughter. eg. Generally the final stable copy

Definition at line 78 of file TauolaParticle.cxx.

References TauolaParticle::getDaughters(), and TauolaParticle::getPdgID().

std::vector< TauolaParticle * > findProductionMothers (  ) 

Traverse the event structure and find the first set of mothers which are not of the same type as this particle.

Definition at line 91 of file TauolaParticle.cxx.

References TauolaParticle::getMothers(), and TauolaParticle::getPdgID().

double getAngle ( TauolaParticle other_particle  ) 

Get the angle between this particle and another particle

Definition at line 29 of file TauolaParticle.cxx.

References TauolaParticle::getPx(), TauolaParticle::getPy(), and TauolaParticle::getPz().

virtual int getBarcode (  )  [pure virtual]

Get the barcode of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual std::vector<TauolaParticle*> getDaughters (  )  [pure virtual]

Returns the daughters of this particle via a vector of TauolaParticle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual double getE (  )  [pure virtual]

Returns the energy component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

double getMass (  ) 

Get the invariant mass from the four momentum

Reimplemented in TauolaHEPEVTParticle.

Definition at line 329 of file TauolaParticle.cxx.

References TauolaParticle::getE(), and TauolaParticle::getP().

virtual std::vector<TauolaParticle*> getMothers (  )  [pure virtual]

Returns the mothers of this particle via a vector of TauolaParticle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

double getP ( int  axis  ) 

Get momentum component in the direction of "axis" (x,y,z)

Definition at line 343 of file TauolaParticle.cxx.

References TauolaParticle::getPx(), TauolaParticle::getPy(), TauolaParticle::getPz(), TauolaParticle::X_AXIS, TauolaParticle::Y_AXIS, and TauolaParticle::Z_AXIS.

double getP (  ) 

Get scalar momentum

Definition at line 339 of file TauolaParticle.cxx.

References TauolaParticle::getPx(), TauolaParticle::getPy(), and TauolaParticle::getPz().

virtual int getPdgID (  )  [pure virtual]

Get the PDG ID code of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

double getPolarimetricX (  ) 

Get the polarimetric vector of this particle in the direction X. (Only relevant for tau particles).

Definition at line 8 of file TauolaParticle.cxx.

References TauolaParticle::m_pol_x.

double getPolarimetricY (  ) 

Get the polarimetric vector of this particle in the direction Y. (Only relevant for tau particles).

Definition at line 12 of file TauolaParticle.cxx.

References TauolaParticle::m_pol_y.

double getPolarimetricZ (  ) 

Get the polarimetric vector of this particle in the direction Z. (Only relevant for tau particles).

Definition at line 16 of file TauolaParticle.cxx.

References TauolaParticle::m_pol_z.

virtual double getPx (  )  [pure virtual]

Returns the px component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual double getPy (  )  [pure virtual]

Returns the py component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual double getPz (  )  [pure virtual]

Returns the pz component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

double getRotationAngle ( int  axis,
int  second_axis = Z_AXIS 
)

Returns the angle around the axis "axis" needed to rotate the four momenum is such a way that the non-Z component disappears and Z>0. This is used to rotating the coordinate system into a frame with only a Z component before calling boostAlongZ().

Get the angle needed to rotate the 4 momentum vector so that the x (y) component disapears. (and the Z component is > 0)

if(getP(axis)==0){ if(getPz()>0) return 0; //no rotaion required else return M_PI; }

Definition at line 269 of file TauolaParticle.cxx.

References TauolaParticle::getP().

int getSign (  ) 

Get whether this particle has the same or opposite sign to the pdg code given to the Tauola object. (Only relevant for tau particles).

Definition at line 62 of file TauolaParticle.cxx.

References Tauola::getDecayingParticle(), TauolaParticle::getPdgID(), TauolaParticle::NA_SIGN, TauolaParticle::OPPOSITE_SIGN, and TauolaParticle::SAME_SIGN.

virtual int getStatus (  )  [pure virtual]

Get the status of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

bool hasDaughters (  ) 

Return whether the particle has any chidren

Definition at line 71 of file TauolaParticle.cxx.

References TauolaParticle::getDaughters().

virtual void print (  )  [pure virtual]

Print some information about this particle to standard output

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

void rotate ( int  axis,
double  theta,
int  second_axis = Z_AXIS 
)

rotate this particles 4-momentum by an angle phi from the axisis "axis" towards the axis "second_axis".

Rotation around an axis X or Y

Definition at line 305 of file TauolaParticle.cxx.

References TauolaParticle::getP(), and TauolaParticle::setP().

virtual void setDaughters ( std::vector< TauolaParticle * >  daughters  )  [pure virtual]

Set the daughters of this particle via a vector of TauolaParticle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setE ( double  e  )  [pure virtual]

Set the energy component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setMass ( double  mass  )  [pure virtual]

Set the mass of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setMothers ( std::vector< TauolaParticle * >  mothers  )  [pure virtual]

Set the mothers of this particle via a vector of TauolaParticle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

void setP ( int  axis,
double  p_component 
)

Set momentum component in the direction of "axis" (x,y,z)

Definition at line 356 of file TauolaParticle.cxx.

References TauolaParticle::setPx(), TauolaParticle::setPy(), TauolaParticle::setPz(), TauolaParticle::X_AXIS, TauolaParticle::Y_AXIS, and TauolaParticle::Z_AXIS.

virtual void setPdgID ( int  pdg_id  )  [pure virtual]

Set the PDG ID code of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setPx ( double  px  )  [pure virtual]

Set the px component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setPy ( double  py  )  [pure virtual]

Set the px component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setPz ( double  pz  )  [pure virtual]

Set the pz component of the four vector

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

virtual void setStatus ( int  status  )  [pure virtual]

Set the status of this particle

Implemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

void subtract ( TauolaParticle other_particle  ) 
virtual void undecay (  )  [inline, virtual]

remove the ougoing branch from this particles and reset its status to stable

Reimplemented in TauolaHEPEVTParticle, and TauolaHepMCParticle.

Definition at line 254 of file TauolaParticle.h.


Field Documentation

const int ANTIDOWN = -1 [static]

anti-down quark

Definition at line 142 of file TauolaParticle.h.

const int ANTIUP = -2 [static]

anti-up quark

Definition at line 136 of file TauolaParticle.h.

const int DECAYED = 2 [static]

Decayed particle status

Definition at line 55 of file TauolaParticle.h.

const int DOWN = 1 [static]

down quark

Definition at line 139 of file TauolaParticle.h.

const int ELECTRON = 11 [static]

e- particle

Definition at line 124 of file TauolaParticle.h.

const int ELECTRON_ANTINEUTRINO = -12 [static]

e antineutrino particle

Definition at line 130 of file TauolaParticle.h.

const int ELECTRON_NEUTRINO = 12 [static]

e neutrino particle

Definition at line 127 of file TauolaParticle.h.

const int GAMMA = 22 [static]

photon

Definition at line 92 of file TauolaParticle.h.

const int HIGGS = 25 [static]

H particle

Definition at line 73 of file TauolaParticle.h.

const int HIGGS_A = 36 [static]

A0 particle

Definition at line 76 of file TauolaParticle.h.

const int HIGGS_MINUS = -37 [static]

H- particle

Definition at line 82 of file TauolaParticle.h.

const int HIGGS_PLUS = 37 [static]

H+ particle

Definition at line 79 of file TauolaParticle.h.

const int HISTORY = 3 [static]

History particle status

Definition at line 58 of file TauolaParticle.h.

double m_pol_n [private]

Fourth component of the polarimetric vector. Should be the normalisation (1). (Only relevant for tau particles).

Definition at line 348 of file TauolaParticle.h.

double m_pol_x [private]

The polarimetric vector of this particle in the direction X. (Only relevant for tau particles).

Definition at line 336 of file TauolaParticle.h.

double m_pol_y [private]

The polarimetric vector of this particle in the direction Y. (Only relevant for tau particles).

Definition at line 340 of file TauolaParticle.h.

double m_pol_z [private]

The polarimetric vector of this particle in the direction Z. (Only relevant for tau particles).

Definition at line 344 of file TauolaParticle.h.

const int MUON_ANTINEUTRINO = -14 [static]

muon antineutrino particle

Definition at line 117 of file TauolaParticle.h.

const int MUON_MINUS = 13 [static]

muon- particle

Definition at line 111 of file TauolaParticle.h.

const int MUON_NEUTRINO = 14 [static]

muon neutrino particle

Definition at line 114 of file TauolaParticle.h.

const int MUON_PLUS = -13 [static]

muon+ particle

Definition at line 108 of file TauolaParticle.h.

const int NA_SIGN = 3 [static]

Sign type is not applicable for this particle (probably it's not a tau).

Definition at line 49 of file TauolaParticle.h.

const int OPPOSITE_SIGN = 2 [static]

The opposite sign to decaying particle pdg ID code given to Tauola object (only meaningful for taus).

Definition at line 45 of file TauolaParticle.h.

const int OTHER = 0 [static]

All other particle types

Definition at line 151 of file TauolaParticle.h.

const int POSITRON = -11 [static]

e+ particle

Definition at line 121 of file TauolaParticle.h.

const int SAME_SIGN = 1 [static]

The same sign as decaying particle pdg ID code given to Tauola object (only meaningful for taus).

Definition at line 41 of file TauolaParticle.h.

const int STABLE = 1 [static]

Stable particle status

Definition at line 52 of file TauolaParticle.h.

const int TAU_ANTINEUTRINO = -16 [static]

tau antineutrino particle

Definition at line 104 of file TauolaParticle.h.

const int TAU_MINUS = 15 [static]

tau- particle

Definition at line 98 of file TauolaParticle.h.

const int TAU_NEUTRINO = 16 [static]

tau neutrino particle

Definition at line 101 of file TauolaParticle.h.

const int TAU_PLUS = -15 [static]

tau+ particle

Definition at line 95 of file TauolaParticle.h.

const int UP = 2 [static]

up quark

Definition at line 133 of file TauolaParticle.h.

const int W_MINUS = -24 [static]

W- particle

Definition at line 89 of file TauolaParticle.h.

const int W_PLUS = 24 [static]

W+ particle

Definition at line 86 of file TauolaParticle.h.

const int X_AXIS = 1 [static]

X Axis

Definition at line 61 of file TauolaParticle.h.

const int Y_AXIS = 2 [static]

Y Axis

Definition at line 64 of file TauolaParticle.h.

const int Z0 = 23 [static]

Z0 particle

Definition at line 70 of file TauolaParticle.h.

const int Z_AXIS = 3 [static]

Z Axis

Definition at line 67 of file TauolaParticle.h.


The documentation for this class was generated from the following files:
Generated on Sun Oct 20 20:24:17 2013 for C++InterfacetoTauola by  doxygen 1.6.3