StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
Photospp::PhotosHepMCParticle Class Reference
Inheritance diagram for Photospp::PhotosHepMCParticle:
Photospp::PhotosParticle Photospp::PhotosParticle

Public Member Functions

 PhotosHepMCParticle ()
 
 PhotosHepMCParticle (HepMC::GenParticle *particle)
 
 PhotosHepMCParticle (int pdg_id, int status, double mass)
 
 ~PhotosHepMCParticle ()
 
HepMC::GenParticlegetHepMC ()
 
void setMothers (std::vector< PhotosParticle * > mothers)
 
void setDaughters (std::vector< PhotosParticle * > daughters)
 
void addDaughter (PhotosParticle *daughter)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
int getBarcode ()
 
bool checkMomentumConservation ()
 
PhotosHepMCParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
void print ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
double getMass ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
 PhotosHepMCParticle ()
 
 PhotosHepMCParticle (HepMC::GenParticle *particle)
 
 PhotosHepMCParticle (int pdg_id, int status, double mass)
 
 ~PhotosHepMCParticle ()
 
HepMC::GenParticlegetHepMC ()
 
void setMothers (std::vector< PhotosParticle * > mothers)
 
void setDaughters (std::vector< PhotosParticle * > daughters)
 
void addDaughter (PhotosParticle *daughter)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
int getBarcode ()
 
bool checkMomentumConservation ()
 
PhotosHepMCParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
void print ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
double getMass ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
- Public Member Functions inherited from Photospp::PhotosParticle
bool hasDaughters ()
 
PhotosParticlefindLastSelf ()
 
std::vector< PhotosParticle * > findProductionMothers ()
 
std::vector< PhotosParticle * > getDecayTree ()
 
void boostToRestFrame (PhotosParticle *boost)
 
void boostDaughtersToRestFrame (PhotosParticle *boost)
 
void boostFromRestFrame (PhotosParticle *boost)
 
void boostDaughtersFromRestFrame (PhotosParticle *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)
 
virtual double getVirtuality ()
 
bool hasDaughters ()
 
PhotosParticlefindLastSelf ()
 
std::vector< PhotosParticle * > findProductionMothers ()
 
std::vector< PhotosParticle * > getDecayTree ()
 
void boostToRestFrame (PhotosParticle *boost)
 
void boostDaughtersToRestFrame (PhotosParticle *boost)
 
void boostFromRestFrame (PhotosParticle *boost)
 
void boostDaughtersFromRestFrame (PhotosParticle *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)
 
virtual double getVirtuality ()
 

Additional Inherited Members

- Static Public Attributes inherited from Photospp::PhotosParticle
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_H = 35
 
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 OTHER = 0
 

Detailed Description

Definition at line 31 of file PhotosHepMCParticle.h.

Constructor & Destructor Documentation

PhotosHepMCParticle::PhotosHepMCParticle ( )

General constructor

Definition at line 9 of file PhotosHepMCParticle.cxx.

Referenced by createNewParticle(), getDaughters(), and getMothers().

PhotosHepMCParticle::PhotosHepMCParticle ( HepMC::GenParticle particle)

Constructor which keeps a pointer to the HepMC::GenParticle

Definition at line 20 of file PhotosHepMCParticle.cxx.

PhotosHepMCParticle::PhotosHepMCParticle ( int  pdg_id,
int  status,
double  mass 
)

Constructor which creates a new HepMC::GenParticle and sets the properties pdg_id, statu and mass.

Definition at line 13 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::set_generated_mass(), HepMC::GenParticle::set_pdg_id(), and HepMC::GenParticle::set_status().

PhotosHepMCParticle::~PhotosHepMCParticle ( )

Destructor

Definition at line 24 of file PhotosHepMCParticle.cxx.

Photospp::PhotosHepMCParticle::PhotosHepMCParticle ( )

General constructor

Photospp::PhotosHepMCParticle::PhotosHepMCParticle ( HepMC::GenParticle particle)

Constructor which keeps a pointer to the HepMC::GenParticle

Photospp::PhotosHepMCParticle::PhotosHepMCParticle ( int  pdg_id,
int  status,
double  mass 
)

Constructor which creates a new HepMC::GenParticle and sets the properties pdg_id, statu and mass.

Photospp::PhotosHepMCParticle::~PhotosHepMCParticle ( )

Destructor

Member Function Documentation

void PhotosHepMCParticle::addDaughter ( PhotosParticle daughter)
virtual

Add a new daughter to the end vertex of this particle

Implements Photospp::PhotosParticle.

Definition at line 88 of file PhotosHepMCParticle.cxx.

References HepMC::GenVertex::add_particle_out(), HepMC::GenParticle::end_vertex(), and Photospp::Log::Fatal().

void Photospp::PhotosHepMCParticle::addDaughter ( PhotosParticle daughter)
virtual

Add a new daughter to the end vertex of this particle

Implements Photospp::PhotosParticle.

bool Photospp::PhotosHepMCParticle::checkMomentumConservation ( )
virtual

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

Implements Photospp::PhotosParticle.

bool PhotosHepMCParticle::checkMomentumConservation ( )
virtual
void PhotosHepMCParticle::createHistoryEntry ( )
virtual

Create history entry for HepMC event record. Creates copy of this particle with status = 3

Implements Photospp::PhotosParticle.

Definition at line 305 of file PhotosHepMCParticle.cxx.

References HepMC::GenVertex::add_particle_out(), Photospp::Photos::historyEntriesStatus, HepMC::GenParticle::production_vertex(), and HepMC::GenParticle::set_status().

void Photospp::PhotosHepMCParticle::createHistoryEntry ( )
virtual

Create history entry for HepMC event record. Creates copy of this particle with status = 3

Implements Photospp::PhotosParticle.

PhotosHepMCParticle* Photospp::PhotosHepMCParticle::createNewParticle ( int  pdg_id,
int  status,
double  mass,
double  px,
double  py,
double  pz,
double  e 
)
virtual

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

Implements Photospp::PhotosParticle.

PhotosHepMCParticle * PhotosHepMCParticle::createNewParticle ( int  pdg_id,
int  status,
double  mass,
double  px,
double  py,
double  pz,
double  e 
)
virtual

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

Implements Photospp::PhotosParticle.

Definition at line 289 of file PhotosHepMCParticle.cxx.

References getHepMC(), PhotosHepMCParticle(), HepMC::GenParticle::set_generated_mass(), HepMC::GenParticle::set_momentum(), HepMC::GenParticle::set_pdg_id(), and HepMC::GenParticle::set_status().

void PhotosHepMCParticle::createSelfDecayVertex ( PhotosParticle out)
virtual
void Photospp::PhotosHepMCParticle::createSelfDecayVertex ( PhotosParticle out)
virtual

Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex

Implements Photospp::PhotosParticle.

std::vector<PhotosParticle*> Photospp::PhotosHepMCParticle::getAllDecayProducts ( )
virtual

Returns all particles in the decay tree of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

std::vector< PhotosParticle * > PhotosHepMCParticle::getAllDecayProducts ( )
virtual

Returns all particles in the decay tree of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

Definition at line 183 of file PhotosHepMCParticle.cxx.

References getBarcode(), getDaughters(), and Photospp::PhotosParticle::hasDaughters().

int Photospp::PhotosHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Photospp::PhotosParticle.

int PhotosHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Photospp::PhotosParticle.

Definition at line 284 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::barcode().

Referenced by getAllDecayProducts().

std::vector<PhotosParticle*> Photospp::PhotosHepMCParticle::getDaughters ( )
virtual

Returns the daughters of this particle via a vector of PhotosParticle IMPORTANT: this method will remeber list from the first call. Particles (e.g. photons) added later will be ignored

Implements Photospp::PhotosParticle.

std::vector< PhotosParticle * > PhotosHepMCParticle::getDaughters ( )
virtual

Returns the daughters of this particle via a vector of PhotosParticle IMPORTANT: this method will remeber list from the first call. Particles (e.g. photons) added later will be ignored

Implements Photospp::PhotosParticle.

Definition at line 162 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::end_vertex(), Photospp::Photos::isStatusCodeIgnored(), HepMC::GenVertex::particles_out_const_begin(), HepMC::GenVertex::particles_out_const_end(), and PhotosHepMCParticle().

Referenced by getAllDecayProducts().

double PhotosHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 367 of file PhotosHepMCParticle.cxx.

References HepMC::FourVector::e(), and HepMC::GenParticle::momentum().

double Photospp::PhotosHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

HepMC::GenParticle * PhotosHepMCParticle::getHepMC ( )
HepMC::GenParticle* Photospp::PhotosHepMCParticle::getHepMC ( )

return the HepMC::GenParticle

double PhotosHepMCParticle::getMass ( )
virtual

Returns the mass taken from event record

Implements Photospp::PhotosParticle.

Definition at line 399 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::generated_mass().

double Photospp::PhotosHepMCParticle::getMass ( )
virtual

Returns the mass taken from event record

Implements Photospp::PhotosParticle.

std::vector<PhotosParticle*> Photospp::PhotosHepMCParticle::getMothers ( )
virtual

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

std::vector< PhotosParticle * > PhotosHepMCParticle::getMothers ( )
virtual
int Photospp::PhotosHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

int PhotosHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

Definition at line 276 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::pdg_id().

double Photospp::PhotosHepMCParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

double PhotosHepMCParticle::getPx ( )
inlinevirtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 355 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::px().

double Photospp::PhotosHepMCParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

double PhotosHepMCParticle::getPy ( )
inlinevirtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 359 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::py().

double PhotosHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 363 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::FourVector::pz().

double Photospp::PhotosHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

int Photospp::PhotosHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

int PhotosHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

Definition at line 280 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::status().

Referenced by createSelfDecayVertex().

void Photospp::PhotosHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Photospp::PhotosParticle.

Definition at line 348 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::print().

void PhotosHepMCParticle::setDaughters ( std::vector< PhotosParticle * >  daughters)
virtual
void Photospp::PhotosHepMCParticle::setDaughters ( std::vector< PhotosParticle * >  daughters)
virtual

Set the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

void Photospp::PhotosHepMCParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 393 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Photospp::PhotosHepMCParticle::setMass ( double  mass)
virtual

Set the mass of this particle

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setMass ( double  mass)
virtual

Set the mass of this particle

Implements Photospp::PhotosParticle.

Definition at line 268 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::set_generated_mass().

void PhotosHepMCParticle::setMothers ( std::vector< PhotosParticle * >  mothers)
virtual
void Photospp::PhotosHepMCParticle::setMothers ( std::vector< PhotosParticle * >  mothers)
virtual

Set the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

Definition at line 264 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::set_pdg_id().

void Photospp::PhotosHepMCParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

void Photospp::PhotosHepMCParticle::setPx ( double  px)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setPx ( double  px)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 371 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Photospp::PhotosHepMCParticle::setPy ( double  py)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setPy ( double  py)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 380 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void Photospp::PhotosHepMCParticle::setPz ( double  pz)
virtual

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHepMCParticle::setPz ( double  pz)
virtual

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 387 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::momentum(), and HepMC::GenParticle::set_momentum().

void PhotosHepMCParticle::setStatus ( int  statu)
virtual

Set the status of this particle

Implements Photospp::PhotosParticle.

Definition at line 272 of file PhotosHepMCParticle.cxx.

References HepMC::GenParticle::set_status().

Referenced by createSelfDecayVertex().

void Photospp::PhotosHepMCParticle::setStatus ( int  statu)
virtual

Set the status of this particle

Implements Photospp::PhotosParticle.


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