CMS 3D CMS Logo

EMEnrichingFilterAlgo.h
Go to the documentation of this file.
1 #ifndef EMEnrichingFilterAlgo_h
2 #define EMEnrichingFilterAlgo_h
3 
12 // system include files
13 #include <memory>
14 
15 // user include files
23 
25 
26 
28  public:
31 
32  bool filter(const edm::Event& iEvent, const edm::EventSetup& iSetup);
33 
34  private:
35  bool filterPhotonElectronSeed(float clusterthreshold,
36  float isoConeSize,
37  float hOverEMax,
38  float tkIsoMax,
39  float caloIsoMax,
40  bool requiretrackmatch,
41  const std::vector<reco::GenParticle> &genPars,
42  const std::vector<reco::GenParticle> &genParsCurved);
43 
44  std::vector<reco::GenParticle> applyBFieldCurv(const std::vector<reco::GenParticle> &genPars, const edm::EventSetup& iSetup);
45  bool filterIsoGenPar(float etmin, float conesize,const reco::GenParticleCollection &gph,
46  const reco::GenParticleCollection &gphCurved);
47  float deltaRxyAtEE(const reco::GenParticle &gp1, const reco::GenParticle &gp2);
48 
49 
50  private:
51 
52  //constants
59  float ECALENDCAPZ_;
60 
61  //parameters of the filter
62 
66  float isoConeSize_;
67  float hOverEMax_;
68  float tkIsoMax_;
69  float caloIsoMax_;
72 
74 };
75 #endif
edm::EDGetTokenT< reco::GenParticleCollection > genParSourceToken_
std::vector< GenParticle > GenParticleCollection
collection of GenParticles
float deltaRxyAtEE(const reco::GenParticle &gp1, const reco::GenParticle &gp2)
int iEvent
Definition: GenABIO.cc:224
EMEnrichingFilterAlgo(const edm::ParameterSet &, edm::ConsumesCollector &&)
bool filterIsoGenPar(float etmin, float conesize, const reco::GenParticleCollection &gph, const reco::GenParticleCollection &gphCurved)
bool filter(const edm::Event &iEvent, const edm::EventSetup &iSetup)
std::vector< reco::GenParticle > applyBFieldCurv(const std::vector< reco::GenParticle > &genPars, const edm::EventSetup &iSetup)
bool filterPhotonElectronSeed(float clusterthreshold, float isoConeSize, float hOverEMax, float tkIsoMax, float caloIsoMax, bool requiretrackmatch, const std::vector< reco::GenParticle > &genPars, const std::vector< reco::GenParticle > &genParsCurved)