C++ class. Stores identifying features of a particle in the GenPart collection.
More...
C++ class. Stores identifying features of a particle in the GenPart collection.
◆ Particle()
Construct a new Particle object with TIMBER collection struct as input.
- Template Parameters
-
- Parameters
-
◆ AddChild()
Add child index to track.
- Parameters
-
◆ AddParent()
| void AddParent |
( |
int |
idx | ) |
|
Add parent index to track.
- Parameters
-
◆ CompareToVector()
| std::map< std::string, bool > CompareToVector |
( |
LVector |
vect | ) |
|
Compares particle 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/2), "deltaR" (deltaR < 0.8), "deltaM" (|delta m|/m_gen < 0.05) which all return bools.
◆ DeltaR()
| float DeltaR |
( |
LVector |
input_vector | ) |
|
Calculate \(\Delta R\) between current particle and input vector.
- Parameters
-
| input_vector | The vector to compare against the current particle. |
- Returns
- float \(\Delta R\) value
◆ GetChild()
| std::vector< int > GetChild |
( |
| ) |
|
Get vector of indices of the children.
- Returns
- std::vector<int>
◆ GetParent()
Return the index of the parent.
- Returns
- int
◆ GetStatusFlag()
| int GetStatusFlag |
( |
std::string |
flagName | ) |
|
Returns the bool for the flag name provided.
- Parameters
-
- Returns
- int Status flag.
◆ SetStatusFlags()
| void SetStatusFlags |
( |
int |
flags | ) |
|
Set the internal status flags map.
- Parameters
-
| flags | Integer from NanoAOD |
◆ childIndex
| std::vector<int> childIndex |
◆ flag
Should always be true unless we need to return a None-like particle
◆ genPartIdxMother
Index of the mother particle in NanoAOD
◆ index
◆ parentIndex
◆ pdgId
◆ status
◆ statusFlags
| std::map<std::string, int> statusFlags |
Map of status flags for set gen particle
◆ vect
The documentation for this class was generated from the following files:
- TIMBER/Framework/include/GenMatching.h
- TIMBER/Framework/src/GenMatching.cc