47 const float getEffectiveArea(
float eta)
const;
48 void printEffectiveAreas()
const;
65 printf(
" eta_min eta_max effective area\n");
68 printf(
" %8.4f %8.4f %8.5f\n", absEtaMin_[
iEta], absEtaMax_[
iEta], effectiveAreaValues_[
iEta]);
76 effArea = effectiveAreaValues_[
iEta];
85 : theRhoToken_(iC.consumes<double>(
cfg.getParameter<
edm::
InputTag>(
"rho"))),
86 absEtaMin_(
cfg.getParameter<
std::
vector<double> >(
"absEtaMin")),
87 absEtaMax_(
cfg.getParameter<
std::
vector<double> >(
"absEtaMax")),
88 effectiveAreaValues_(
cfg.getParameter<
std::
vector<double> >(
"effectiveAreaValues")),
90 sigmaIEtaIEtaCut_(phIDWP_.getParameter<
std::
vector<double> >(
"full5x5_sigmaIEtaIEtaCut")),
91 hOverECut_(phIDWP_.getParameter<
std::
vector<double> >(
"hOverECut")),
92 relCombIso_(phIDWP_.getParameter<
std::
vector<double> >(
"relCombIsolationWithEACut")) {
101 float pt_e =
ph.pt();
102 unsigned int ind = 0;
103 float abseta = fabs((
ph.superCluster().get())->
position().eta());
111 if (abseta <= 1.479 || abseta >= 2.5)
121 if ((
ph.getPflowIsolationVariables().chargedHadronIso +
123 ph.getPflowIsolationVariables().neutralHadronIso +
ph.getPflowIsolationVariables().photonIso -
#define EVENTSETUP_STD_INIT(SELECTOR)
T const * product() const
edm::Handle< double > rhoHandle_
const vector< double > hOverECut_
const edm::ParameterSet phIDWP_
const vector< double > relCombIso_
void printEffectiveAreas() const
IsoPhotonEBSelector(const edm::ParameterSet &, edm::ConsumesCollector &iC)
const std::vector< double > absEtaMin_
Abs< T >::type abs(const T &t)
#define DEFINE_FWK_MODULE(type)
bool operator()(const reco::Photon &) const
void newEvent(const edm::Event &, const edm::EventSetup &)
SingleObjectSelector< edm::View< reco::Photon >, IsoPhotonEBSelector > IsoPhotonEBSelectorAndSkim
const std::vector< double > effectiveAreaValues_
const float getEffectiveArea(float eta) const
static int position[264][3]
const std::vector< double > absEtaMax_
const edm::EDGetTokenT< double > theRhoToken_
const vector< double > sigmaIEtaIEtaCut_