CMS 3D CMS Logo

GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc
Go to the documentation of this file.
5 
7 public:
9 
10  result_type operator()(const reco::GsfElectronPtr&) const final;
11 
12  double value(const reco::CandidatePtr& cand) const final;
13 
14  CandidateType candidateType() const final {
15  return ELECTRON;
16  }
17 
18 private:
21 
22 };
23 
26  "GsfEleFull5x5SigmaIEtaIEtaWithSatCut");
27 
29  CutApplicatorBase(params),
30  maxSigmaIEtaIEtaCut_(params,"maxSigmaIEtaIEta"),
31  maxNrSatCrysIn5x5Cut_(params,"maxNrSatCrysIn5x5")
32 {
33 
34 }
35 
36 
37 CutApplicatorBase::result_type
40 
41  if(cand->nSaturatedXtals()>maxNrSatCrysIn5x5Cut_(cand)) return true;
42  else return cand->full5x5_sigmaIetaIeta() < maxSigmaIEtaIEtaCut_(cand);
43 
44 }
45 
47 value(const reco::CandidatePtr& cand) const {
48  reco::GsfElectronPtr ele(cand);
49  return ele->full5x5_sigmaIetaIeta();
50 }
float nSaturatedXtals() const
Definition: GsfElectron.h:512
double value(const reco::CandidatePtr &cand) const final
result_type operator()(const reco::GsfElectronPtr &) const final
float full5x5_sigmaIetaIeta() const
Definition: GsfElectron.h:455
#define DEFINE_EDM_PLUGIN(factory, type, name)