Mēnsūra
|
Minimalistic discription of a generator-level particle. More...
#include <GenParticle.hpp>
Public Member Functions | |
GenParticle () noexcept | |
Constructor with no parameters. | |
virtual void | Reset () override |
Resets the object to a state right after the default initialisation. | |
void | SetPdgId (int pdgId) |
Sets PDG ID. | |
void | SetFirstMotherIndex (int index) |
Sets index of the first mother. More... | |
void | SetLastMotherIndex (int index) |
Sets index of the last mother. More... | |
int | PdgId () const |
Returns PDG ID. | |
int | FirstMotherIndex () const |
Returns index of the first mother. More... | |
int | LastMotherIndex () const |
Returns index of the last mother. More... | |
![]() | |
Candidate () noexcept | |
Constructor with no parameters. More... | |
Candidate (Candidate &&)=default | |
Default move constructor. | |
Candidate (Candidate const &)=default | |
Default copy constructor. | |
Candidate & | operator= (Candidate const &)=default |
Default assignment operator. | |
virtual | ~Candidate ()=default |
Default virtual destructor. | |
void | SetPt (float pt) |
Sets transverse momentum (GeV/c) | |
void | SetEta (float eta) |
Sets pseudorapidity. | |
void | SetPhi (float phi) |
Sets azimuthal angle. More... | |
void | SetM (float mass) |
Sets mass (GeV/c^2) | |
float | Pt () const |
Returns transverse momentum (GeV/c) | |
float | Eta () const |
Returns pseudorapidity. | |
float | Phi () const |
Returns azimuthal angle. More... | |
float | M () const |
Returns mass (GeV/c^2) | |
Minimalistic discription of a generator-level particle.
The user is expected to use a small filtered collection of particles; the mother indices correspond to positions in this filtered collection.
int GenParticle::FirstMotherIndex | ( | ) | const |
Returns index of the first mother.
Valid indices start from zero; (-1) indicates that there is no mother in the list. Note that the index correponds to a position in the trimmed list of generator particles, not the orginal genParticles collection in an EDM event.
int GenParticle::LastMotherIndex | ( | ) | const |
Returns index of the last mother.
See documentation for the method FirstMotherIndex. The returned value is expected to differ from (-1) if only the particle has more than one mother.
void GenParticle::SetFirstMotherIndex | ( | int | index | ) |
Sets index of the first mother.
The index must follow requirements specified in the documentation of the method FirstMotherIndex.
void GenParticle::SetLastMotherIndex | ( | int | index | ) |
Sets index of the last mother.
The index must follow requirements specified in the documentation of the method LastMotherIndex.