PandaRoot
Photospp::PhotosHEPEVTParticle Class Reference

#include <PhotosHEPEVTParticle.h>

Inheritance diagram for Photospp::PhotosHEPEVTParticle:
Photospp::PhotosParticle Photospp::PhotosParticle

Public Member Functions

 ~PhotosHEPEVTParticle ()
 
 PhotosHEPEVTParticle (int pdgid, int status, double px, double py, double pz, double e, double m, int ms, int me, int ds, int de)
 
void addDaughter (PhotosParticle *daughter)
 
void setMothers (std::vector< PhotosParticle *> mothers)
 
void setDaughters (std::vector< PhotosParticle *> daughters)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
bool checkMomentumConservation ()
 
PhotosHEPEVTParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
bool isDaughterOf (PhotosHEPEVTParticle *p)
 
bool isMotherOf (PhotosHEPEVTParticle *p)
 
void print ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
double getMass ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
int getBarcode ()
 
void setBarcode (int barcode)
 
void setEvent (PhotosHEPEVTEvent *event)
 
int getFirstMotherIndex ()
 
int getSecondMotherIndex ()
 
int getDaughterRangeStart ()
 
int getDaughterRangeEnd ()
 
 ~PhotosHEPEVTParticle ()
 
 PhotosHEPEVTParticle (int pdgid, int status, double px, double py, double pz, double e, double m, int ms, int me, int ds, int de)
 
void addDaughter (PhotosParticle *daughter)
 
void setMothers (std::vector< PhotosParticle *> mothers)
 
void setDaughters (std::vector< PhotosParticle *> daughters)
 
std::vector< PhotosParticle * > getMothers ()
 
std::vector< PhotosParticle * > getDaughters ()
 
std::vector< PhotosParticle * > getAllDecayProducts ()
 
bool checkMomentumConservation ()
 
PhotosHEPEVTParticlecreateNewParticle (int pdg_id, int status, double mass, double px, double py, double pz, double e)
 
void createHistoryEntry ()
 
void createSelfDecayVertex (PhotosParticle *out)
 
bool isDaughterOf (PhotosHEPEVTParticle *p)
 
bool isMotherOf (PhotosHEPEVTParticle *p)
 
void print ()
 
void setPdgID (int pdg_id)
 
void setStatus (int statu)
 
void setMass (double mass)
 
int getPdgID ()
 
int getStatus ()
 
double getMass ()
 
double getPx ()
 
double getPy ()
 
double getPz ()
 
double getE ()
 
void setPx (double px)
 
void setPy (double py)
 
void setPz (double pz)
 
void setE (double e)
 
int getBarcode ()
 
void setBarcode (int barcode)
 
void setEvent (PhotosHEPEVTEvent *event)
 
int getFirstMotherIndex ()
 
int getSecondMotherIndex ()
 
int getDaughterRangeStart ()
 
int getDaughterRangeEnd ()
 
- 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 31 of file PhotosHEPEVTParticle.h.

Constructor & Destructor Documentation

◆ ~PhotosHEPEVTParticle() [1/2]

Photospp::PhotosHEPEVTParticle::~PhotosHEPEVTParticle ( )

Default destructor

◆ PhotosHEPEVTParticle() [1/2]

Photospp::PhotosHEPEVTParticle::PhotosHEPEVTParticle ( int  pdgid,
int  status,
double  px,
double  py,
double  pz,
double  e,
double  m,
int  ms,
int  me,
int  ds,
int  de 
)

Default constructor

◆ ~PhotosHEPEVTParticle() [2/2]

Photospp::PhotosHEPEVTParticle::~PhotosHEPEVTParticle ( )

Default destructor

◆ PhotosHEPEVTParticle() [2/2]

Photospp::PhotosHEPEVTParticle::PhotosHEPEVTParticle ( int  pdgid,
int  status,
double  px,
double  py,
double  pz,
double  e,
double  m,
int  ms,
int  me,
int  ds,
int  de 
)

Default constructor

Member Function Documentation

◆ addDaughter() [1/2]

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

Add a new daughter to this particle

Implements Photospp::PhotosParticle.

◆ addDaughter() [2/2]

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

Add a new daughter to this particle

Implements Photospp::PhotosParticle.

◆ checkMomentumConservation() [1/2]

bool Photospp::PhotosHEPEVTParticle::checkMomentumConservation ( )
virtual

Check that the 4 momentum in conserved in the decay of this particle

Implements Photospp::PhotosParticle.

◆ checkMomentumConservation() [2/2]

bool Photospp::PhotosHEPEVTParticle::checkMomentumConservation ( )
virtual

Check that the 4 momentum in conserved in the decay of this particle

Implements Photospp::PhotosParticle.

◆ createHistoryEntry() [1/2]

void Photospp::PhotosHEPEVTParticle::createHistoryEntry ( )
virtual

Creating history entries not implemented in HEPEVT

Implements Photospp::PhotosParticle.

◆ createHistoryEntry() [2/2]

void Photospp::PhotosHEPEVTParticle::createHistoryEntry ( )
virtual

Creating history entries not implemented in HEPEVT

Implements Photospp::PhotosParticle.

◆ createNewParticle() [1/2]

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

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

Implements Photospp::PhotosParticle.

◆ createNewParticle() [2/2]

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

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

Implements Photospp::PhotosParticle.

◆ createSelfDecayVertex() [1/2]

void Photospp::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::getBarcode ( )
virtual

Get the barcode (position in list) of this particle

Implements Photospp::PhotosParticle.

◆ getBarcode() [2/2]

int Photospp::PhotosHEPEVTParticle::getBarcode ( )
virtual

Get the barcode (position in list) of this particle

Implements Photospp::PhotosParticle.

◆ getDaughterRangeEnd() [1/2]

int Photospp::PhotosHEPEVTParticle::getDaughterRangeEnd ( )

Get index of last daughter

◆ getDaughterRangeEnd() [2/2]

int Photospp::PhotosHEPEVTParticle::getDaughterRangeEnd ( )

Get index of last daughter

◆ getDaughterRangeStart() [1/2]

int Photospp::PhotosHEPEVTParticle::getDaughterRangeStart ( )

Get index of first daughter

◆ getDaughterRangeStart() [2/2]

int Photospp::PhotosHEPEVTParticle::getDaughterRangeStart ( )

Get index of first daughter

◆ getDaughters() [1/2]

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

Returns the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getDaughters() [2/2]

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

Returns the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getE() [1/2]

double Photospp::PhotosHEPEVTParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ getE() [2/2]

double Photospp::PhotosHEPEVTParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ getFirstMotherIndex() [1/2]

int Photospp::PhotosHEPEVTParticle::getFirstMotherIndex ( )

Get index of first mother

◆ getFirstMotherIndex() [2/2]

int Photospp::PhotosHEPEVTParticle::getFirstMotherIndex ( )

Get index of first mother

◆ getMass() [1/2]

double Photospp::PhotosHEPEVTParticle::getMass ( )
virtual

Get the mass stored (i.e. not calculated from four vector) at generation step

Implements Photospp::PhotosParticle.

◆ getMass() [2/2]

double Photospp::PhotosHEPEVTParticle::getMass ( )
virtual

Get the mass stored (i.e. not calculated from four vector) at generation step

Implements Photospp::PhotosParticle.

◆ getMothers() [1/2]

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getMothers() [2/2]

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

◆ getPdgID() [1/2]

int Photospp::PhotosHEPEVTParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ getPdgID() [2/2]

int Photospp::PhotosHEPEVTParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ getPx() [1/2]

double Photospp::PhotosHEPEVTParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

◆ getPx() [2/2]

double Photospp::PhotosHEPEVTParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

◆ getPy() [1/2]

double Photospp::PhotosHEPEVTParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

◆ getPy() [2/2]

double Photospp::PhotosHEPEVTParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

◆ getPz() [1/2]

double Photospp::PhotosHEPEVTParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ getPz() [2/2]

double Photospp::PhotosHEPEVTParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ getSecondMotherIndex() [1/2]

int Photospp::PhotosHEPEVTParticle::getSecondMotherIndex ( )

Get index of second mother

◆ getSecondMotherIndex() [2/2]

int Photospp::PhotosHEPEVTParticle::getSecondMotherIndex ( )

Get index of second mother

◆ getStatus() [1/2]

int Photospp::PhotosHEPEVTParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

◆ getStatus() [2/2]

int Photospp::PhotosHEPEVTParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

◆ isDaughterOf() [1/2]

bool Photospp::PhotosHEPEVTParticle::isDaughterOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is daughter of this particle

◆ isDaughterOf() [2/2]

bool Photospp::PhotosHEPEVTParticle::isDaughterOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is daughter of this particle

◆ isMotherOf() [1/2]

bool Photospp::PhotosHEPEVTParticle::isMotherOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is mother of this particle

◆ isMotherOf() [2/2]

bool Photospp::PhotosHEPEVTParticle::isMotherOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is mother of this particle

◆ print() [1/2]

void Photospp::PhotosHEPEVTParticle::print ( )
virtual

Print information on this particle into standard output

Implements Photospp::PhotosParticle.

◆ print() [2/2]

void Photospp::PhotosHEPEVTParticle::print ( )
virtual

Print information on this particle into standard output

Implements Photospp::PhotosParticle.

◆ setBarcode() [1/2]

void Photospp::PhotosHEPEVTParticle::setBarcode ( int  barcode)

Set barcode (position in list) of this particle

◆ setBarcode() [2/2]

void Photospp::PhotosHEPEVTParticle::setBarcode ( int  barcode)

Set barcode (position in list) of this particle

◆ setDaughters() [1/2]

void Photospp::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ setE() [2/2]

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

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

◆ setEvent() [1/2]

void Photospp::PhotosHEPEVTParticle::setEvent ( PhotosHEPEVTEvent event)

Set event of this particle

◆ setEvent() [2/2]

void Photospp::PhotosHEPEVTParticle::setEvent ( PhotosHEPEVTEvent event)

Set event of this particle

◆ setMass() [1/2]

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

Set the mass of this particle

Implements Photospp::PhotosParticle.

◆ setMass() [2/2]

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

Set the mass of this particle

Implements Photospp::PhotosParticle.

◆ setMothers() [1/2]

void Photospp::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::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::PhotosHEPEVTParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ setPdgID() [2/2]

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

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

◆ setPx() [1/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPx() [2/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPy() [1/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPy() [2/2]

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

◆ setPz() [1/2]

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

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ setPz() [2/2]

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

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

◆ setStatus() [1/2]

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

Set the status of this particle

Implements Photospp::PhotosParticle.

◆ setStatus() [2/2]

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

Set the status of this particle

Implements Photospp::PhotosParticle.


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