35 void endJob()
override;
74 benchmarkLabel = iConfig.
getParameter<
string>(
"BenchmarkLabel");
75 sGenParticleSource_tok_ = consumes<edm::HepMCProduct>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
78 maxMCAbsEta = iConfig.
getParameter<
double>(
"maxMCAbsEta");
80 maxRecoAbsEta = iConfig.
getParameter<
double>(
"maxRecoAbsEta");
81 pfTauProducer_tok_ = consumes<reco::PFTauCollection>(iConfig.
getParameter<
InputTag>(
"PFTauProducer"));
82 pfTauDiscriminatorByIsolationProducer_tok_ =
83 consumes<reco::PFTauDiscriminator>(iConfig.
getParameter<
InputTag>(
"PFTauDiscriminatorByIsolationProducer"));
84 pfTauDiscriminatorAgainstElectronProducer_tok_ =
85 consumes<reco::PFTauDiscriminator>(iConfig.
getParameter<
InputTag>(
"PFTauDiscriminatorAgainstElectronProducer"));
86 sGenMatchObjectLabel = iConfig.
getParameter<
string>(
"GenMatchObjectLabel");
87 applyEcalCrackCut = iConfig.
getParameter<
bool>(
"ApplyEcalCrackCut");
116 iEvent.
getByToken(sGenParticleSource_tok_, mcevt);
120 iEvent.
getByToken(pfTauProducer_tok_, thePFTau);
124 iEvent.
getByToken(pfTauDiscriminatorByIsolationProducer_tok_, thePFTauDiscriminatorByIsolation);
128 iEvent.
getByToken(pfTauDiscriminatorAgainstElectronProducer_tok_, thePFTauDiscriminatorAgainstElectron);
130 PFTauElecRejectionBenchmark_.process(
131 mcevt, thePFTau, thePFTauDiscriminatorByIsolation, thePFTauDiscriminatorAgainstElectron);
string sGenMatchObjectLabel
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::PFTauCollection > pfTauProducer_tok_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
dqm::legacy::MonitorElement MonitorElement
PFTauElecRejectionBenchmarkAnalyzer(const edm::ParameterSet &)
PFTauElecRejection Benchmark.
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
dqm::legacy::DQMStore DQMStore
void analyze(const edm::Event &, const edm::EventSetup &) override
~PFTauElecRejectionBenchmarkAnalyzer() override
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorByIsolationProducer_tok_
PFTauElecRejectionBenchmark PFTauElecRejectionBenchmark_
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorAgainstElectronProducer_tok_
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::HepMCProduct > sGenParticleSource_tok_