32 void endJob()
override;
71 benchmarkLabel = iConfig.
getParameter<
string>(
"BenchmarkLabel");
72 sGenParticleSource_tok_ = consumes<edm::HepMCProduct>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
78 pfTauProducer_tok_ = consumes<reco::PFTauCollection>(iConfig.
getParameter<
InputTag>(
"PFTauProducer"));
79 pfTauDiscriminatorByIsolationProducer_tok_ =
80 consumes<reco::PFTauDiscriminator>(iConfig.
getParameter<
InputTag>(
"PFTauDiscriminatorByIsolationProducer"));
81 pfTauDiscriminatorAgainstElectronProducer_tok_ =
82 consumes<reco::PFTauDiscriminator>(iConfig.
getParameter<
InputTag>(
"PFTauDiscriminatorAgainstElectronProducer"));
83 sGenMatchObjectLabel = iConfig.
getParameter<
string>(
"GenMatchObjectLabel");
84 applyEcalCrackCut = iConfig.
getParameter<
bool>(
"ApplyEcalCrackCut");
113 iEvent.
getByToken(sGenParticleSource_tok_, mcevt);
117 iEvent.
getByToken(pfTauProducer_tok_, thePFTau);
121 iEvent.
getByToken(pfTauDiscriminatorByIsolationProducer_tok_, thePFTauDiscriminatorByIsolation);
125 iEvent.
getByToken(pfTauDiscriminatorAgainstElectronProducer_tok_, thePFTauDiscriminatorAgainstElectron);
127 PFTauElecRejectionBenchmark_.process(
128 mcevt, thePFTau, thePFTauDiscriminatorByIsolation, thePFTauDiscriminatorAgainstElectron);
T getParameter(std::string const &) const
string sGenMatchObjectLabel
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::PFTauCollection > pfTauProducer_tok_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PFTauElecRejectionBenchmarkAnalyzer(const edm::ParameterSet &)
PFTauElecRejection Benchmark.
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
~PFTauElecRejectionBenchmarkAnalyzer() override
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorByIsolationProducer_tok_
PFTauElecRejectionBenchmark PFTauElecRejectionBenchmark_
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorAgainstElectronProducer_tok_
edm::EDGetTokenT< edm::HepMCProduct > sGenParticleSource_tok_