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 
6 
7 template <typename T>
9 private:
12  //this is currrently used to identify if object is barrel or endcap but may change
13  const double barrelCutOff_ = 1.479;
14 
15 public:
17  : barrel_(params.getParameter<T>(name + "EB")), endcap_(params.getParameter<T>(name + "EE")) {}
18  template <typename CandType>
20  return isBarrel(cand) ? barrel_ : endcap_;
21  }
22 
23 private:
24  template <typename CandType>
25  const bool isBarrel(const edm::Ptr<CandType>& cand) const {
26  return std::abs(cand->superCluster()->position().eta()) < barrelCutOff_;
27  }
28 };
29 
32 
33 #endif
EBEECutValuesT::EBEECutValuesT
EBEECutValuesT(const edm::ParameterSet &params, const std::string &name)
Definition: EBEECutValues.h:16
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
EBEECutValues
EBEECutValuesT< double > EBEECutValues
Definition: EBEECutValues.h:30
EBEECutValuesT::barrelCutOff_
const double barrelCutOff_
Definition: EBEECutValues.h:13
EBEECutValuesInt
EBEECutValuesT< int > EBEECutValuesInt
Definition: EBEECutValues.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EBEECutValuesT::operator()
T operator()(const edm::Ptr< CandType > &cand) const
Definition: EBEECutValues.h:19
edm::ParameterSet
Definition: ParameterSet.h:36
cand
Definition: decayParser.h:34
Ptr.h
EBEECutValuesT::endcap_
T endcap_
Definition: EBEECutValues.h:11
edm::Ptr
Definition: AssociationVector.h:31
T
long double T
Definition: Basic3DVectorLD.h:48
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EBEECutValuesT
Definition: EBEECutValues.h:8
EBEECutValuesT::isBarrel
const bool isBarrel(const edm::Ptr< CandType > &cand) const
Definition: EBEECutValues.h:25
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
ParameterSet.h
EBEECutValuesT::barrel_
T barrel_
Definition: EBEECutValues.h:10