PandaRoot
Photospp::PhotosHepMCParticle Class Reference

#include <PhotosHepMCParticle.h>

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::GenParticle * getHepMC ()
 
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::GenParticle * getHepMC ()
 
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
virtual ~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 ()
 
virtual ~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 ()
 

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 30 of file PhotosHepMCParticle.h.

Constructor & Destructor Documentation

◆ PhotosHepMCParticle() [1/6]

Photospp::PhotosHepMCParticle::PhotosHepMCParticle ( )

General constructor

◆ PhotosHepMCParticle() [2/6]

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

Constructor which keeps a pointer to the HepMC::GenParticle

◆ PhotosHepMCParticle() [3/6]

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.

◆ ~PhotosHepMCParticle() [1/2]

Photospp::PhotosHepMCParticle::~PhotosHepMCParticle ( )

Destructor

◆ PhotosHepMCParticle() [4/6]

Photospp::PhotosHepMCParticle::PhotosHepMCParticle ( )

General constructor

◆ PhotosHepMCParticle() [5/6]

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

Constructor which keeps a pointer to the HepMC::GenParticle

◆ PhotosHepMCParticle() [6/6]

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.

◆ ~PhotosHepMCParticle() [2/2]

Photospp::PhotosHepMCParticle::~PhotosHepMCParticle ( )

Destructor

Member Function Documentation

◆ addDaughter() [1/2]

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

Add a new daughter to the end vertex of this particle

Implements Photospp::PhotosParticle.

◆ addDaughter() [2/2]

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

Add a new daughter to the end vertex of this particle

Implements Photospp::PhotosParticle.

◆ checkMomentumConservation() [1/2]

bool Photospp::PhotosHepMCParticle::checkMomentumConservation ( )
virtual

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

Implements Photospp::PhotosParticle.

◆ checkMomentumConservation() [2/2]

bool Photospp::PhotosHepMCParticle::checkMomentumConservation ( )
virtual

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

Implements Photospp::PhotosParticle.

◆ createHistoryEntry() [1/2]

void Photospp::PhotosHepMCParticle::createHistoryEntry ( )
virtual

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

Implements Photospp::PhotosParticle.

◆ createHistoryEntry() [2/2]

void Photospp::PhotosHepMCParticle::createHistoryEntry ( )
virtual

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

Implements Photospp::PhotosParticle.

◆ createNewParticle() [1/2]

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.

◆ createNewParticle() [2/2]

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.

◆ createSelfDecayVertex() [1/2]

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.

◆ createSelfDecayVertex() [2/2]

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.

◆ getAllDecayProducts() [1/2]

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.

◆ getAllDecayProducts() [2/2]

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.

◆ getBarcode() [1/2]

int Photospp::PhotosHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Photospp::PhotosParticle.

◆ getBarcode() [2/2]

int Photospp::PhotosHepMCParticle::getBarcode ( )
virtual

Get the barcode of this particle

Implements Photospp::PhotosParticle.

◆ getDaughters() [1/2]

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.

◆ getDaughters() [2/2]

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.

◆ getE() [1/2]

double Photospp::PhotosHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ getE() [2/2]

double Photospp::PhotosHepMCParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ getHepMC() [1/2]

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

return the HepMC::GenParticle

◆ getHepMC() [2/2]

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

return the HepMC::GenParticle

◆ getMass() [1/2]

double Photospp::PhotosHepMCParticle::getMass ( )
virtual

Returns the mass taken from event record

Implements Photospp::PhotosParticle.

◆ getMass() [2/2]

double Photospp::PhotosHepMCParticle::getMass ( )
virtual

Returns the mass taken from event record

Implements Photospp::PhotosParticle.

◆ getMothers() [1/2]

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getMothers() [2/2]

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getPdgID() [1/2]

int Photospp::PhotosHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ getPdgID() [2/2]

int Photospp::PhotosHepMCParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ getPx() [1/2]

double Photospp::PhotosHepMCParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

◆ getPx() [2/2]

double Photospp::PhotosHepMCParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

◆ getPy() [1/2]

double Photospp::PhotosHepMCParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

◆ getPy() [2/2]

double Photospp::PhotosHepMCParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

◆ getPz() [1/2]

double Photospp::PhotosHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ getPz() [2/2]

double Photospp::PhotosHepMCParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ getStatus() [1/2]

int Photospp::PhotosHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

◆ getStatus() [2/2]

int Photospp::PhotosHepMCParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

◆ print() [1/2]

void Photospp::PhotosHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Photospp::PhotosParticle.

◆ print() [2/2]

void Photospp::PhotosHepMCParticle::print ( )
virtual

Print some information about this particle to standard output

Implements Photospp::PhotosParticle.

◆ setDaughters() [1/2]

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

Set the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ setDaughters() [2/2]

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

Set the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ setE() [1/2]

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

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ setE() [2/2]

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

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ setMass() [1/2]

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

Set the mass of this particle

Implements Photospp::PhotosParticle.

◆ setMass() [2/2]

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

Set the mass of this particle

Implements Photospp::PhotosParticle.

◆ setMothers() [1/2]

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

Set the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ setMothers() [2/2]

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

Set the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ setPdgID() [1/2]

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

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ setPdgID() [2/2]

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

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ setPx() [1/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPx() [2/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPy() [1/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPy() [2/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPz() [1/2]

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

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ setPz() [2/2]

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

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ setStatus() [1/2]

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

Set the status of this particle

Implements Photospp::PhotosParticle.

◆ setStatus() [2/2]

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 file: