61 virtual void endJob()
override ;
108 PFJetBenchmark_.
setup(
139 bool isGen = iEvent.
getByToken(sGenJetAlgo_tok_, genjets);
141 std::cout <<
"Warning : no Gen jets in input !" << std::endl;
147 bool isReco = iEvent.
getByToken(sJetAlgo_tok_, pfjets);
149 std::cout <<
"Warning : no PF jets in input !" << std::endl;
153 PFJetBenchmark_.
process(*pfjets, *genjets);
168 PFJetBenchmark_.
write();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void beginJob() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
def analyze(function, filename, filter=None)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::PFJetCollection > sJetAlgo_tok_
PFJetBenchmark PFJetBenchmark_
PFJet Benchmark.
edm::EDGetTokenT< reco::GenJetCollection > sGenJetAlgo_tok_
void setup(std::string Filename, bool debug, bool plotAgainstReco=0, bool onlyTwoJets=1, double deltaRMax=0.1, std::string benchmarkLabel_="ParticleFlow", double recPt=-1, double maxEta=-1, DQMStore *dbe_store=NULL)
virtual void endJob() override
void process(const reco::PFJetCollection &, const reco::GenJetCollection &)
PFJetBenchmarkAnalyzer(const edm::ParameterSet &)
~PFJetBenchmarkAnalyzer()
virtual void analyze(const edm::Event &, const edm::EventSetup &) override