1 #ifndef _TIMBER_GENMATCHING 2 #define _TIMBER_GENMATCHING 8 #include "Collection.h" 10 #include <Math/Vector4D.h> 11 #include <Math/VectorUtil.h> 14 using LVector = ROOT::Math::PtEtaPhiMVector;
24 bool BitChecker(
const int &bit,
int &number);
28 extern std::map <int, std::string> PDGIds;
32 extern std::map <std::string, int> GenParticleStatusFlags;
55 void AddParent(
int idx);
61 void AddChild(
int idx);
68 float DeltaR(LVector input_vector);
81 std::vector<Particle*> nodes;
82 std::vector<Particle*> heads;
84 bool MatchParticleToString(
Particle* particle, std::string
string);
85 std::vector<Particle*> RunChain(
Particle* node, std::vector<std::string> chain);
87 std::vector<int> StoredIndexes();
92 NoneParticle.
flag =
false;
99 void AddParticle(
Particle* particle);
112 std::vector<Particle*> GetChildren(
Particle* particle);
126 std::vector<std::vector<Particle*>> FindChain(std::string chainstring);
141 void SetStatusFlags(
int particleIndex);
158 RVec<float> in_eta, RVec<float> in_phi,
159 RVec<float> in_m, RVec<int> in_pdgId,
160 RVec<int> in_status, RVec<int> in_statusFlags,
161 RVec<int> in_genPartIdxMother);
177 std::map< std::string, bool> CompareToVector(LVector vect);
189 int GetStatusFlag(std::string flagName);
C++ class. Class that stores and manipulates the information for gen particles. Stores all gen partic...
Definition: GenMatching.h:134
std::vector< Particle * > GetParticles()
Get the list of particle objects.
Definition: GenMatching.h:105
int index
Definition: GenMatching.h:42
bool flag
Definition: GenMatching.h:41
C++ class. Stores identifying features of a particle in the GenPart collection.
Definition: GenMatching.h:39
C++ structure to store maps of the various types of objects in a collection. OUTDATED BY analyzer...
Definition: Collection.h:16
C++ class. Constructs tree by adding particles. Establish relationships between particles (parent...
Definition: GenMatching.h:77
LVector vect
Definition: GenMatching.h:48
int parentIndex
Definition: GenMatching.h:46
std::vector< int > childIndex
Definition: GenMatching.h:47
std::map< std::string, int > statusFlags
Definition: GenMatching.h:45
Particle particle
Definition: GenMatching.h:169
int * pdgId
Definition: GenMatching.h:43
int * status
Definition: GenMatching.h:44
Definition: GenMatching.h:16