FCCAnalyses
Loading...
Searching...
No Matches
ReconstructedParticleSource.h
Go to the documentation of this file.
1#ifndef ANALYZERS_SOURCE_RECONSTRUCTED_PARTICLE_H
2#define ANALYZERS_SOURCE_RECONSTRUCTED_PARTICLE_H
3
4// ROOT
5#include "ROOT/RVec.hxx"
6
7// EDM4hep
8#include "edm4hep/RecoMCParticleLinkCollection.h"
9#include "edm4hep/ReconstructedParticleCollection.h"
10
11namespace FCCAnalyses ::PodioSource ::ReconstructedParticle {
12// -------------------- Selectors -----------------------------------------
13
18struct selPDG {
19 const int m_pdg;
25 explicit selPDG(const int pdgID);
33 edm4hep::ReconstructedParticleCollection
34 operator()(const edm4hep::RecoMCParticleLinkCollection &inLinkColl);
35};
36
41struct selAbsPDG {
42 const int m_absPdg;
48 explicit selAbsPDG(const int pdgID);
57 edm4hep::ReconstructedParticleCollection
58 operator()(const edm4hep::RecoMCParticleLinkCollection &inLinkColl);
59};
60
65struct selPt {
66 const float m_minPt;
72 explicit selPt(float minPt);
79 edm4hep::ReconstructedParticleCollection
80 operator()(const edm4hep::ReconstructedParticleCollection &inColl);
81};
82
86struct selUpTo {
87 const size_t m_size;
93 explicit selUpTo(const size_t size);
100 edm4hep::ReconstructedParticleCollection
101 operator()(const edm4hep::ReconstructedParticleCollection &inColl);
102};
103
109 const int m_status;
115 explicit selGenStatus(const int status);
122 edm4hep::ReconstructedParticleCollection
123 operator()(const edm4hep::RecoMCParticleLinkCollection &inLinkColl);
124};
125
126// -------------------- Getters -------------------------------------------
127
134ROOT::VecOps::RVec<float>
135getP(const edm4hep::ReconstructedParticleCollection &inColl);
136
143ROOT::VecOps::RVec<float>
144getPt(const edm4hep::ReconstructedParticleCollection &inColl);
145
152ROOT::VecOps::RVec<float>
153getY(const edm4hep::ReconstructedParticleCollection &inColl);
154
161ROOT::VecOps::RVec<float>
162getE(const edm4hep::ReconstructedParticleCollection &inColl);
163
170ROOT::VecOps::RVec<float>
171getMass(const edm4hep::ReconstructedParticleCollection &inColl);
172
179ROOT::VecOps::RVec<float>
180getCharge(const edm4hep::ReconstructedParticleCollection &inColl);
181
182// -------------------- Transformers --------------------------------------
183
190edm4hep::ReconstructedParticleCollection
191sortByPt(const edm4hep::ReconstructedParticleCollection &inColl);
192
199 const float m_resonanceMass;
205 explicit resonanceBuilder(float resonanceMass);
212 edm4hep::ReconstructedParticleCollection
213 operator()(const edm4hep::ReconstructedParticleCollection &inColl);
214};
215
221 const float m_sqrts;
227 explicit recoilBuilder(float sqrts);
234 edm4hep::ReconstructedParticleCollection
235 operator()(const edm4hep::ReconstructedParticleCollection &inColl);
236};
237
238} // namespace FCCAnalyses::PodioSource::ReconstructedParticle
239
240// namespace recoParticle = FCCAnalyses::PodioSource::ReconstructedParticle;
241
242#endif /* ANALYZERS_SOURCE_RECONSTRUCTED_PARTICLE_H */
edm4hep::ReconstructedParticleCollection sortByPt(const edm4hep::ReconstructedParticleCollection &inColl)
Sort input particles by pT.
Definition ReconstructedParticleSource.cc:195
ROOT::VecOps::RVec< float > getPt(const edm4hep::ReconstructedParticleCollection &inColl)
Get transverse momenta (pT) of the input particles.
Definition ReconstructedParticleSource.cc:134
ROOT::VecOps::RVec< float > getP(const edm4hep::ReconstructedParticleCollection &inColl)
Get momenta of the input reconstructed particles.
Definition ReconstructedParticleSource.cc:122
ROOT::VecOps::RVec< float > getY(const edm4hep::ReconstructedParticleCollection &inColl)
Get rapidity (y) of the input reconstructed particles.
Definition ReconstructedParticleSource.cc:147
ROOT::VecOps::RVec< float > getE(const edm4hep::ReconstructedParticleCollection &inColl)
Get energy (E) of the input reconstructed particles.
Definition ReconstructedParticleSource.cc:160
ROOT::VecOps::RVec< float > getCharge(const edm4hep::ReconstructedParticleCollection &inColl)
Get charge of the input reconstructed particles.
Definition ReconstructedParticleSource.cc:183
FCC analyzers collection.
Definition Algorithms.h:15
Build the recoil from an arbitrary list of input resonances at the specified center of mass energy.
Definition ReconstructedParticleSource.h:220
const float m_sqrts
Definition ReconstructedParticleSource.h:221
Build two particle resonances from an arbitrary list of input reconstructed particles.
Definition ReconstructedParticleSource.h:198
const float m_resonanceMass
Definition ReconstructedParticleSource.h:199
Analyzer to select reconstructed particles associated with MC particle with the specified absolute va...
Definition ReconstructedParticleSource.h:41
const int m_absPdg
Definition ReconstructedParticleSource.h:42
Analyzer to select reconstructed particles associated with the MC particle of the desired generator s...
Definition ReconstructedParticleSource.h:108
const int m_status
Definition ReconstructedParticleSource.h:109
Analyzer to select reconstructed particles associated with MC particle of the specified PDG ID.
Definition ReconstructedParticleSource.h:18
const int m_pdg
Definition ReconstructedParticleSource.h:19
Select reconstructed particles with transverse momentum greater than a minimum value [GeV].
Definition ReconstructedParticleSource.h:65
const float m_minPt
Definition ReconstructedParticleSource.h:66
Analyzer to select specified number of reconstructed particles.
Definition ReconstructedParticleSource.h:86
const size_t m_size
Definition ReconstructedParticleSource.h:87