C++ class. Class that stores and manipulates the information for gen particles. Stores all gen particles in the event and member functions can be used to access the gen particles by index.
More...
|
| | GenParticleObjs (RVec< float > in_pt, RVec< float > in_eta, RVec< float > in_phi, RVec< float > in_m, RVec< int > in_pdgId, RVec< int > in_status, RVec< int > in_statusFlags, RVec< int > in_genPartIdxMother) |
| | Constructor which takes in all info from the GenPart collection in NanoAOD Just assigns the inputs to internal variables. More...
|
| |
| | GenParticleObjs (Collection genParts) |
| | Construct a new Gen Particle object. More...
|
| |
| std::map< std::string, bool > | CompareToVector (LVector vect) |
| | Compares GenPart object to a provided vector. More...
|
| |
| Particle | SetIndex (int idx) |
| | Sets the index of the lookup particle. More...
|
| |
| int | GetStatusFlag (std::string flagName) |
| | Returns the bool for the flag name provided. More...
|
| |
C++ class. Class that stores and manipulates the information for gen particles. Stores all gen particles in the event and member functions can be used to access the gen particles by index.
◆ GenParticleObjs() [1/2]
| GenParticleObjs |
( |
RVec< float > |
in_pt, |
|
|
RVec< float > |
in_eta, |
|
|
RVec< float > |
in_phi, |
|
|
RVec< float > |
in_m, |
|
|
RVec< int > |
in_pdgId, |
|
|
RVec< int > |
in_status, |
|
|
RVec< int > |
in_statusFlags, |
|
|
RVec< int > |
in_genPartIdxMother |
|
) |
| |
Constructor which takes in all info from the GenPart collection in NanoAOD Just assigns the inputs to internal variables.
- Parameters
-
| in_pt | Input \(p_T\) |
| in_eta | Input \(eta\) |
| in_phi | Input \(phi\) |
| in_m | Input mass |
| in_pdgId | Input PDG ID |
| in_status | Input status |
| in_statusFlags | Input status flags |
| in_genPartIdxMother | Input mother index |
◆ GenParticleObjs() [2/2]
Construct a new Gen Particle object.
- Parameters
-
| genParts | Collection object filled with GenPart branches from NanoAOD. |
◆ CompareToVector()
| std::map< std::string, bool > CompareToVector |
( |
LVector |
vect | ) |
|
Compares GenPart object to a provided vector.
- Parameters
-
| vect | The vector to compare against the current particle. |
- Returns
- std::map< std::string, bool> Map with keys "sameHemisphere" (phi<pi), "deltaR" (deltaR < 0.8), "deltaM" (|delta m|/m_gen < 0.05) which all return bools.
◆ GetStatusFlag()
| int GetStatusFlag |
( |
std::string |
flagName | ) |
|
Returns the bool for the flag name provided.
- Parameters
-
- Returns
- int Status flag.
◆ SetIndex()
Sets the index of the lookup particle.
- Parameters
-
| idx | The index in the collection |
- Returns
- Particle
◆ particle
the current particle object queued for access
The documentation for this class was generated from the following files:
- TIMBER/Framework/include/GenMatching.h
- TIMBER/Framework/src/GenMatching.cc