StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
Photospp::PhotosHEPEVTParticle Class Reference
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
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 32 of file PhotosHEPEVTParticle.h.

Constructor & Destructor Documentation

PhotosHEPEVTParticle::~PhotosHEPEVTParticle ( )

Default destructor

Definition at line 7 of file PhotosHEPEVTParticle.cxx.

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

Definition at line 15 of file PhotosHEPEVTParticle.cxx.

Referenced by createNewParticle().

Photospp::PhotosHEPEVTParticle::~PhotosHEPEVTParticle ( )

Default destructor

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

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

Add a new daughter to this particle

Implements Photospp::PhotosParticle.

bool Photospp::PhotosHEPEVTParticle::checkMomentumConservation ( )
virtual

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

Implements Photospp::PhotosParticle.

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

Creating history entries not implemented in HEPEVT

Implements Photospp::PhotosParticle.

Definition at line 298 of file PhotosHEPEVTParticle.cxx.

void Photospp::PhotosHEPEVTParticle::createHistoryEntry ( )
virtual

Creating history entries not implemented in HEPEVT

Implements Photospp::PhotosParticle.

PhotosHEPEVTParticle * 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.

Definition at line 287 of file PhotosHEPEVTParticle.cxx.

References PhotosHEPEVTParticle().

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.

void 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.

Definition at line 303 of file PhotosHEPEVTParticle.cxx.

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.

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.

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

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

Implements Photospp::PhotosParticle.

Definition at line 188 of file PhotosHEPEVTParticle.cxx.

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

int PhotosHEPEVTParticle::getBarcode ( )
virtual

Get the barcode (position in list) of this particle

Implements Photospp::PhotosParticle.

Definition at line 392 of file PhotosHEPEVTParticle.cxx.

Referenced by getAllDecayProducts(), isDaughterOf(), isMotherOf(), and setMothers().

int Photospp::PhotosHEPEVTParticle::getBarcode ( )
virtual

Get the barcode (position in list) of this particle

Implements Photospp::PhotosParticle.

int PhotosHEPEVTParticle::getDaughterRangeEnd ( )

Get index of last daughter

Definition at line 416 of file PhotosHEPEVTParticle.cxx.

Referenced by addDaughter(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

int Photospp::PhotosHEPEVTParticle::getDaughterRangeEnd ( )

Get index of last daughter

int Photospp::PhotosHEPEVTParticle::getDaughterRangeStart ( )

Get index of first daughter

int PhotosHEPEVTParticle::getDaughterRangeStart ( )

Get index of first daughter

Definition at line 412 of file PhotosHEPEVTParticle.cxx.

Referenced by addDaughter(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

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

Returns the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

Definition at line 141 of file PhotosHEPEVTParticle.cxx.

References Photospp::PhotosHEPEVTEvent::getParticle(), Photospp::PhotosHEPEVTEvent::getParticleCount(), and isDaughterOf().

Referenced by getAllDecayProducts().

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

Returns the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

double PhotosHEPEVTParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 371 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double Photospp::PhotosHEPEVTParticle::getE ( )
virtual

Returns the energy component of the four vector

Implements Photospp::PhotosParticle.

int Photospp::PhotosHEPEVTParticle::getFirstMotherIndex ( )

Get index of first mother

int PhotosHEPEVTParticle::getFirstMotherIndex ( )

Get index of first mother

Definition at line 404 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double PhotosHEPEVTParticle::getMass ( )
virtual

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

Implements Photospp::PhotosParticle.

Definition at line 355 of file PhotosHEPEVTParticle.cxx.

Referenced by Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double Photospp::PhotosHEPEVTParticle::getMass ( )
virtual

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

Implements Photospp::PhotosParticle.

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

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

Returns the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

Definition at line 120 of file PhotosHEPEVTParticle.cxx.

References Photospp::PhotosHEPEVTEvent::getParticle().

int PhotosHEPEVTParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

Definition at line 347 of file PhotosHEPEVTParticle.cxx.

Referenced by Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

int Photospp::PhotosHEPEVTParticle::getPdgID ( )
virtual

Get the PDG ID code of this particle

Implements Photospp::PhotosParticle.

double PhotosHEPEVTParticle::getPx ( )
inlinevirtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 359 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double Photospp::PhotosHEPEVTParticle::getPx ( )
virtual

Returns the px component of the four vector

Implements Photospp::PhotosParticle.

double Photospp::PhotosHEPEVTParticle::getPy ( )
virtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

double PhotosHEPEVTParticle::getPy ( )
inlinevirtual

Returns the py component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 363 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double PhotosHEPEVTParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 367 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

double Photospp::PhotosHEPEVTParticle::getPz ( )
virtual

Returns the pz component of the four vector

Implements Photospp::PhotosParticle.

int PhotosHEPEVTParticle::getSecondMotherIndex ( )

Get index of second mother

Definition at line 408 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation(), and Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

int Photospp::PhotosHEPEVTParticle::getSecondMotherIndex ( )

Get index of second mother

int PhotosHEPEVTParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

Definition at line 351 of file PhotosHEPEVTParticle.cxx.

Referenced by Photospp::PhotosHEPEVTEvent::write_event_to_HEPEVT().

int Photospp::PhotosHEPEVTParticle::getStatus ( )
virtual

Get the status of this particle

Implements Photospp::PhotosParticle.

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

Check if particle 'p' is daughter of this particle

bool PhotosHEPEVTParticle::isDaughterOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is daughter of this particle

Definition at line 308 of file PhotosHEPEVTParticle.cxx.

References getBarcode().

Referenced by getDaughters().

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

Check if particle 'p' is mother of this particle

bool PhotosHEPEVTParticle::isMotherOf ( PhotosHEPEVTParticle p)

Check if particle 'p' is mother of this particle

Definition at line 316 of file PhotosHEPEVTParticle.cxx.

References getBarcode().

void Photospp::PhotosHEPEVTParticle::print ( )
virtual

Print information on this particle into standard output

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::print ( )
virtual

Print information on this particle into standard output

Implements Photospp::PhotosParticle.

Definition at line 324 of file PhotosHEPEVTParticle.cxx.

Referenced by checkMomentumConservation().

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

Set barcode (position in list) of this particle

void PhotosHEPEVTParticle::setBarcode ( int  barcode)

Set barcode (position in list) of this particle

Definition at line 396 of file PhotosHEPEVTParticle.cxx.

Referenced by addDaughter(), and Photospp::PhotosHEPEVTEvent::addParticle().

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

Set the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

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

Set the daughters of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

Definition at line 100 of file PhotosHEPEVTParticle.cxx.

References Photospp::Log::Fatal().

void PhotosHEPEVTParticle::setE ( double  e)
virtual

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 388 of file PhotosHEPEVTParticle.cxx.

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

Set the energy component of the four vector

Implements Photospp::PhotosParticle.

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

Set event of this particle

void PhotosHEPEVTParticle::setEvent ( PhotosHEPEVTEvent event)

Set event of this particle

Definition at line 400 of file PhotosHEPEVTParticle.cxx.

Referenced by Photospp::PhotosHEPEVTEvent::addParticle().

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

Set the mass of this particle

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::setMass ( double  mass)
virtual

Set the mass of this particle

Implements Photospp::PhotosParticle.

Definition at line 343 of file PhotosHEPEVTParticle.cxx.

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

Set the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

Definition at line 84 of file PhotosHEPEVTParticle.cxx.

References Photospp::PhotosHEPEVTEvent::addParticle(), Photospp::Log::Fatal(), and getBarcode().

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

Set the mothers of this particle via a vector of PhotosParticle

Implements Photospp::PhotosParticle.

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

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::setPdgID ( int  pdg_id)
virtual

Set the PDG ID code of this particle

Implements Photospp::PhotosParticle.

Definition at line 335 of file PhotosHEPEVTParticle.cxx.

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::setPx ( double  px)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 375 of file PhotosHEPEVTParticle.cxx.

void PhotosHEPEVTParticle::setPy ( double  py)
virtual

Set the px component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 379 of file PhotosHEPEVTParticle.cxx.

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

Set the px component of the four vector

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::setPz ( double  pz)
virtual

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

Definition at line 384 of file PhotosHEPEVTParticle.cxx.

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

Set the pz component of the four vector

Implements Photospp::PhotosParticle.

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

Set the status of this particle

Implements Photospp::PhotosParticle.

void PhotosHEPEVTParticle::setStatus ( int  statu)
virtual

Set the status of this particle

Implements Photospp::PhotosParticle.

Definition at line 339 of file PhotosHEPEVTParticle.cxx.


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