CMS 3D CMS Logo

GsfEleE2x5OverE5x5Cut.cc
Go to the documentation of this file.
4 
6 public:
8  CutApplicatorBase(params),
9  minE1x5OverE5x5_(params,"minE1x5OverE5x5"),
10  minE2x5OverE5x5_(params,"minE2x5OverE5x5"){}
11 
12  result_type operator()(const reco::GsfElectronPtr&) const override final;
13 
14  double value(const reco::CandidatePtr& cand) const override final;
15 
16  CandidateType candidateType() const override final {
17  return ELECTRON;
18  }
19 
20 private:
23 
24 
25 };
26 
29  "GsfEleE2x5OverE5x5Cut");
30 
31 CutApplicatorBase::result_type
34 
35  return cand->e2x5Max() > minE2x5OverE5x5_(cand)*cand->e5x5() ||
36  cand->e1x5() > minE1x5OverE5x5_(cand)*cand->e5x5();
37 
38 }
39 
41  reco::GsfElectronPtr ele(cand);
42  //btw we broke somebodies nice model of assuming every cut is 1D....
43  //what this is returning is fairly meaningless...
44  return ele->e1x5() ? ele->e2x5Max()/ele->e1x5() : 0.;
45 }
result_type operator()(const reco::GsfElectronPtr &) const override final
float e2x5Max() const
Definition: GsfElectron.h:437
CandidateType candidateType() const override final
GsfEleE2x5OverE5x5Cut(const edm::ParameterSet &params)
double value(const reco::CandidatePtr &cand) const override final
float e1x5() const
Definition: GsfElectron.h:436
float e5x5() const
Definition: GsfElectron.h:438
#define DEFINE_EDM_PLUGIN(factory, type, name)