CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EBEECutValues.h
Go to the documentation of this file.
1 #ifndef EgammaAnalysis_ElectronTools_EBEECutValues_h
2 #define EgammaAnalysis_ElectronTools_EBEECutValues_h
3 
7 
8 namespace reco {
10 }
11 
13 private:
14  double barrel_;
15  double endcap_;
16  const double barrelCutOff_=1.479; //this is currrently used to identify if object is barrel or endcap but may change
17 
18 public:
20  barrel_(params.getParameter<double>(name+"EB")),
21  endcap_(params.getParameter<double>(name+"EE")){}
22  double operator()(const reco::GsfElectronPtr& cand)const{return isBarrel(cand) ? barrel_ : endcap_;}
23 
24 private:
25  const bool isBarrel(const reco::GsfElectronPtr& cand)const{return std::abs(cand->superCluster()->position().eta())<barrelCutOff_;}
26 
27 };
28 
29 #endif
const bool isBarrel(const reco::GsfElectronPtr &cand) const
Definition: EBEECutValues.h:25
double operator()(const reco::GsfElectronPtr &cand) const
Definition: EBEECutValues.h:22
const double barrelCutOff_
Definition: EBEECutValues.h:16
edm::Ptr< reco::GsfElectron > GsfElectronPtr
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
EBEECutValues(const edm::ParameterSet &params, const std::string &name)
Definition: EBEECutValues.h:19