CMS 3D CMS Logo

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 
12 template<typename T>
14 private:
17  const double barrelCutOff_=1.479; //this is currrently used to identify if object is barrel or endcap but may change
18 
19 public:
21  barrel_(params.getParameter<T>(name+"EB")),
22  endcap_(params.getParameter<T>(name+"EE")){}
23  T operator()(const reco::GsfElectronPtr& cand)const{return isBarrel(cand) ? barrel_ : endcap_;}
24 
25 private:
26  const bool isBarrel(const reco::GsfElectronPtr& cand)const{return std::abs(cand->superCluster()->position().eta())<barrelCutOff_;}
27 
28 };
29 
32 
33 
34 
35 #endif
EBEECutValuesT< double > EBEECutValues
Definition: EBEECutValues.h:30
EBEECutValuesT(const edm::ParameterSet &params, const std::string &name)
Definition: EBEECutValues.h:20
const bool isBarrel(const reco::GsfElectronPtr &cand) const
Definition: EBEECutValues.h:26
edm::Ptr< reco::GsfElectron > GsfElectronPtr
EBEECutValuesT< int > EBEECutValuesInt
Definition: EBEECutValues.h:31
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:184
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
fixed size matrix
T operator()(const reco::GsfElectronPtr &cand) const
Definition: EBEECutValues.h:23
long double T