35 virtual 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
def analyze(function, filename, filter=None)
#define DEFINE_FWK_MODULE(type)
~PFTauElecRejectionBenchmarkAnalyzer()
PFTauElecRejectionBenchmarkAnalyzer(const edm::ParameterSet &)
PFTauElecRejection Benchmark.
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorByIsolationProducer_tok_
PFTauElecRejectionBenchmark PFTauElecRejectionBenchmark_
edm::EDGetTokenT< reco::PFTauDiscriminator > pfTauDiscriminatorAgainstElectronProducer_tok_
virtual void beginJob() override
edm::EDGetTokenT< edm::HepMCProduct > sGenParticleSource_tok_
virtual void endJob() override