CMS 3D CMS Logo

GsfEleDEtaInLinearCut.cc
Go to the documentation of this file.
4 
6 public:
8  CutApplicatorBase(param),
9  slopeTerm_(param,"slopeTerm"),
10  constTerm_(param,"constTerm"),
11  minValue_(param,"minValue")
12  {
13  }
14 
15  result_type operator()(const reco::GsfElectronPtr&) const final;
16 
17  double value(const reco::CandidatePtr& cand) const final;
18 
19  CandidateType candidateType() const final {
20  return ELECTRON;
21  }
22 
23 private:
27 };
28 
31  "GsfEleDEtaInLinearCut");
32 
33 CutApplicatorBase::result_type
36 {
37  float et = cand->energy()!=0. ? cand->et()/cand->energy()*cand->caloEnergy() : 0.;
38  double cutValue = std::max(constTerm_(cand)+slopeTerm_(cand)*et,minValue_(cand));
39  return std::abs(cand->deltaEtaSuperClusterTrackAtVtx())<cutValue;
40 
41 }
42 
44  reco::GsfElectronPtr ele(cand);
46 }
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:249
CandidateType candidateType() const final
double et() const final
transverse energy
double energy() const final
energy
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
result_type operator()(const reco::GsfElectronPtr &) const final
const EBEECutValues constTerm_
double value(const reco::CandidatePtr &cand) const final
const EBEECutValues minValue_
et
define resolution functions of each parameter
GsfEleDEtaInLinearCut(const edm::ParameterSet &param)
#define DEFINE_EDM_PLUGIN(factory, type, name)
float caloEnergy() const
Definition: GsfElectron.h:840
const EBEECutValues slopeTerm_