35 void endJob()
override ;
74 benchmarkLabel = iConfig.
getParameter<
string>(
"BenchmarkLabel");
75 sGenParticleSource_tok_ = consumes<edm::HepMCProduct>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
81 pfTauProducer_tok_ = consumes<reco::PFTauCollection>(iConfig.
getParameter<
InputTag>(
"PFTauProducer"));
82 pfTauDiscriminatorByIsolationProducer_tok_ = consumes<reco::PFTauDiscriminator>
84 pfTauDiscriminatorAgainstElectronProducer_tok_ = consumes<reco::PFTauDiscriminator>
86 sGenMatchObjectLabel = iConfig.
getParameter<
string>(
"GenMatchObjectLabel");
87 applyEcalCrackCut = iConfig.
getParameter<
bool>(
"ApplyEcalCrackCut");
93 PFTauElecRejectionBenchmark_.setup(
101 sGenMatchObjectLabel,
125 iEvent.
getByToken(sGenParticleSource_tok_, mcevt);
129 iEvent.
getByToken(pfTauProducer_tok_,thePFTau);
133 iEvent.
getByToken(pfTauDiscriminatorByIsolationProducer_tok_,thePFTauDiscriminatorByIsolation);
137 iEvent.
getByToken(pfTauDiscriminatorAgainstElectronProducer_tok_,thePFTauDiscriminatorAgainstElectron);
139 PFTauElecRejectionBenchmark_.process(mcevt, thePFTau, thePFTauDiscriminatorByIsolation,
140 thePFTauDiscriminatorAgainstElectron);
153 PFTauElecRejectionBenchmark_.write();
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
#define DEFINE_FWK_MODULE(type)
PFTauElecRejectionBenchmarkAnalyzer(const edm::ParameterSet &)
PFTauElecRejection Benchmark.
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_
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::HepMCProduct > sGenParticleSource_tok_