StRoot
1
|
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 () |
PhotosHepMCParticle * | createNewParticle (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 () |
PhotosHepMCParticle * | createNewParticle (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 () |
PhotosParticle * | findLastSelf () |
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 () |
PhotosParticle * | findLastSelf () |
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 |
Definition at line 31 of file PhotosHepMCParticle.h.
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
|
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().
|
virtual |
Add a new daughter to the end vertex of this particle
Implements Photospp::PhotosParticle.
|
virtual |
check that the 4 momentum in conserved at the vertices producing and ending this particle
Implements Photospp::PhotosParticle.
|
virtual |
check that the 4 momentum in conserved at the vertices producing and ending this particle
Implements Photospp::PhotosParticle.
Definition at line 223 of file PhotosHepMCParticle.cxx.
References HepMC::GenParticle::end_vertex(), Photospp::Photos::isStatusCodeIgnored(), Photospp::Photos::momentum_conservation_threshold, HepMC::GenVertex::particles_in_const_begin(), HepMC::GenVertex::particles_in_const_end(), HepMC::GenVertex::particles_out_const_begin(), HepMC::GenVertex::particles_out_const_end(), HepMC::GenVertex::print(), Photospp::Log::RedirectOutput(), and Photospp::Log::RevertOutput().
|
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().
|
virtual |
Create history entry for HepMC event record. Creates copy of this particle with status = 3
Implements Photospp::PhotosParticle.
|
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.
|
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().
|
virtual |
Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex
Implements Photospp::PhotosParticle.
Definition at line 318 of file PhotosHepMCParticle.cxx.
References HepMC::GenVertex::add_particle_in(), HepMC::GenVertex::add_particle_out(), HepMC::GenEvent::add_vertex(), HepMC::GenParticle::end_vertex(), getHepMC(), getStatus(), HepMC::GenParticle::parent_event(), HepMC::GenVertex::position(), HepMC::GenParticle::production_vertex(), HepMC::GenVertex::set_position(), and setStatus().
|
virtual |
Create a self-decay vertex for this particle with 'out' being the outgoing particle in new vertex
Implements Photospp::PhotosParticle.
|
virtual |
Returns all particles in the decay tree of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Get the barcode of this particle
Implements Photospp::PhotosParticle.
|
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().
|
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.
|
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().
|
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().
|
virtual |
Returns the energy component of the four vector
Implements Photospp::PhotosParticle.
HepMC::GenParticle * PhotosHepMCParticle::getHepMC | ( | ) |
return the HepMC::GenParticle
Definition at line 40 of file PhotosHepMCParticle.cxx.
Referenced by createNewParticle(), createSelfDecayVertex(), setDaughters(), and setMothers().
HepMC::GenParticle* Photospp::PhotosHepMCParticle::getHepMC | ( | ) |
return the HepMC::GenParticle
|
virtual |
Returns the mass taken from event record
Implements Photospp::PhotosParticle.
Definition at line 399 of file PhotosHepMCParticle.cxx.
References HepMC::GenParticle::generated_mass().
|
virtual |
Returns the mass taken from event record
Implements Photospp::PhotosParticle.
|
virtual |
Returns the mothers of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
|
virtual |
Returns the mothers of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
Definition at line 145 of file PhotosHepMCParticle.cxx.
References HepMC::GenVertex::particles_in_const_begin(), HepMC::GenVertex::particles_in_const_end(), PhotosHepMCParticle(), and HepMC::GenParticle::production_vertex().
|
virtual |
Get the PDG ID code of this particle
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Returns the px component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Returns the py component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
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().
|
virtual |
Returns the pz component of the four vector
Implements Photospp::PhotosParticle.
|
virtual |
Get the status of this particle
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Print some information about this particle to standard output
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Set the daughters of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
Definition at line 103 of file PhotosHepMCParticle.cxx.
References HepMC::GenVertex::add_particle_in(), HepMC::GenVertex::add_particle_out(), HepMC::GenEvent::add_vertex(), Photospp::Log::Fatal(), getHepMC(), HepMC::GenParticle::parent_event(), and HepMC::GenParticle::production_vertex().
|
virtual |
Set the daughters of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
|
virtual |
Set the energy component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Set the mass of this particle
Implements Photospp::PhotosParticle.
|
virtual |
Set the mass of this particle
Implements Photospp::PhotosParticle.
Definition at line 268 of file PhotosHepMCParticle.cxx.
References HepMC::GenParticle::set_generated_mass().
|
virtual |
Set the mothers of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
Definition at line 44 of file PhotosHepMCParticle.cxx.
References HepMC::GenVertex::add_particle_in(), HepMC::GenVertex::add_particle_out(), HepMC::GenEvent::add_vertex(), Photospp::PhotosParticle::DECAYED, HepMC::GenParticle::end_vertex(), Photospp::Log::Fatal(), getHepMC(), HepMC::GenParticle::parent_event(), HepMC::GenParticle::set_status(), Photospp::PhotosParticle::STABLE, and HepMC::GenParticle::status().
|
virtual |
Set the mothers of this particle via a vector of PhotosParticle
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Set the PDG ID code of this particle
Implements Photospp::PhotosParticle.
|
virtual |
Set the px component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Set the px component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
virtual |
Set the pz component of the four vector
Implements Photospp::PhotosParticle.
|
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().
|
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().
|
virtual |
Set the status of this particle
Implements Photospp::PhotosParticle.