60 void endJob()
override;
106 PFJetBenchmark_.
setup(
107 outjetfilename, pfjBenchmarkDebug, plotAgainstReco, onlyTwoJets, deltaRMax, benchmarkLabel_, recPt, maxEta, dbe_);
123 bool isGen = iEvent.
getByToken(sGenJetAlgo_tok_, genjets);
125 std::cout <<
"Warning : no Gen jets in input !" << std::endl;
133 std::cout <<
"Warning : no PF jets in input !" << std::endl;
137 PFJetBenchmark_.
process(*pfjets, *genjets);
148 PFJetBenchmark_.
write();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
dqm::legacy::DQMStore * dbe_
edm::EDGetTokenT< reco::PFJetCollection > sJetAlgo_tok_
PFJetBenchmark PFJetBenchmark_
PFJet Benchmark.
edm::EDGetTokenT< reco::GenJetCollection > sGenJetAlgo_tok_
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
void setup(std::string Filename, bool debug, bool plotAgainstReco=false, bool onlyTwoJets=true, double deltaRMax=0.1, std::string benchmarkLabel_="ParticleFlow", double recPt=-1, double maxEta=-1, DQMStore *dbe_store=0)
void process(const reco::PFJetCollection &, const reco::GenJetCollection &)
PFJetBenchmarkAnalyzer(const edm::ParameterSet &)
dqm::legacy::MonitorElement MonitorElement
dqm::legacy::DQMStore DQMStore
~PFJetBenchmarkAnalyzer() override
void analyze(const edm::Event &, const edm::EventSetup &) override