50 typedef std::vector<edm::Handle<edm::ValueMap<reco::IsoDeposit> > >
IsoDepositMaps;
115 printDebug_ =
iConfig.getParameter<
bool>(
"printDebug");
120 h1_pt_ =
fs->make<TH1F>(
"h1_pt",
"pt", 100, 0.0, 100.0);
121 h1_pt_veto_ =
fs->make<TH1F>(
"h1_pt_veto",
"pt (veto)", 100, 0.0, 100.0);
122 h1_pt_loose_ =
fs->make<TH1F>(
"h1_pt_loose",
"pt (loose)", 100, 0.0, 100.0);
123 h1_pt_medium_ =
fs->make<TH1F>(
"h1_pt_medium",
"pt (medium)", 100, 0.0, 100.0);
124 h1_pt_tight_ =
fs->make<TH1F>(
"h1_pt_tight",
"pt (tight)", 100, 0.0, 100.0);
125 h1_pt_trig_ =
fs->make<TH1F>(
"h1_pt_trig",
"pt (trig)", 100, 0.0, 100.0);
126 h1_pt_fbremeopin_ =
fs->make<TH1F>(
"h1_pt_fbremeopin",
"pt (fbremeopin)", 100, 0.0, 100.0);
166 double rhoIso = *(rhoIso_h.
product());
169 unsigned int n = els_h->size();
170 for (
unsigned int i = 0;
i <
n; ++
i) {
178 double iso_ch = (*(isoVals)[0])[ele];
179 double iso_em = (*(isoVals)[1])[ele];
180 double iso_nh = (*(isoVals)[2])[ele];
229 printf(
"veto(%i), ", veto);
230 printf(
"loose(%i), ", loose);
231 printf(
"medium(%i), ", medium);
232 printf(
"tight(%i), ", tight);
233 printf(
"trigtight(%i), ", trigtight);
234 printf(
"trigwp70(%i), ", trigwp70);
235 printf(
"fbremeopin(%i)\n", fbremeopin);
EventNumber_t event() const
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
bool PassWP(const WorkingPoint workingPoint, const reco::GsfElectronRef &ele, const edm::Handle< reco::ConversionCollection > &conversions, const reco::BeamSpot &beamspot, const edm::Handle< reco::VertexCollection > &vtxs, const double &iso_ch, const double &iso_em, const double &iso_nh, const double &rho, ElectronEffectiveArea::ElectronEffectiveAreaTarget EAtarget)
edm::LuminosityBlockNumber_t luminosityBlock() const
auto vector_transform(std::vector< InputType > const &input, Function predicate) -> std::vector< typename std::remove_cv< typename std::remove_reference< decltype(predicate(input.front()))>::type >::type >
ElectronEffectiveAreaTarget
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::string EAtargetToken_
EGammaCutBasedEleIdAnalyzer(const edm::ParameterSet &)
edm::EDGetTokenT< reco::ConversionCollection > conversionsToken_
void addDefault(ParameterSetDescription const &psetDescription)
bool PassTriggerCuts(const TriggerWorkingPoint triggerWorkingPoint, const reco::GsfElectronRef &ele)
edm::EDGetTokenT< reco::GsfElectronCollection > electronsToken_
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
bool PassEoverPCuts(const reco::GsfElectronRef &ele)
ElectronEffectiveArea::ElectronEffectiveAreaTarget EAtarget
std::vector< edm::Handle< edm::ValueMap< double > > > IsoDepositVals
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
T const * product() const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::VertexCollection > primaryVertexToken_
std::vector< edm::EDGetTokenT< edm::ValueMap< double > > > isoValTokens_
~EGammaCutBasedEleIdAnalyzer() override
edm::EDGetTokenT< double > rhoIsoToken_
std::vector< edm::Handle< edm::ValueMap< reco::IsoDeposit > > > IsoDepositMaps