60 void endJob()
override;
91 sInputTruthLabel_tok_ = consumes<reco::GenParticleCollection>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
92 sInputRecoLabel_tok_ = consumes<reco::PFMETCollection>(iConfig.
getParameter<
InputTag>(
"InputRecoLabel"));
93 sInputCaloLabel_tok_ = consumes<reco::CaloMETCollection>(iConfig.
getParameter<
InputTag>(
"InputCaloLabel"));
94 sInputTCLabel_tok_ = consumes<reco::METCollection>(iConfig.
getParameter<
InputTag>(
"InputTCLabel"));
101 PFMETBenchmark_.
setup(
OutputFileName, pfmBenchmarkDebug, xplotAgainstReco, xbenchmarkLabel_, xdbe_);
117 bool isGen = iEvent.
getByToken(sInputTruthLabel_tok_, genparticles);
119 std::cout <<
"Warning : no Gen Particles in input !" << std::endl;
125 bool isReco = iEvent.
getByToken(sInputRecoLabel_tok_, pfmets);
127 std::cout <<
"Warning : no PF MET in input !" << std::endl;
133 bool isTC = iEvent.
getByToken(sInputTCLabel_tok_, tcmets);
135 std::cout <<
"Warning : no TC MET in input !" << std::endl;
140 bool isCalo = iEvent.
getByToken(sInputCaloLabel_tok_, calomets);
142 std::cout <<
"Warning : no Calo MET in input !" << std::endl;
147 PFMETBenchmark_.
process(*pfmets, *genparticles, *calomets, *tcmets);
159 PFMETBenchmark_.
write();
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void analyze(const edm::Event &, const edm::EventSetup &) override
~PFMETBenchmarkAnalyzer() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setup(std::string Filename, bool debug, bool plotAgainstReco=false, std::string benchmarkLabel_="ParticleFlow", DQMStore *dbe_store=0)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
PFMETBenchmark PFMETBenchmark_
PFJet Benchmark.
void process(const reco::PFMETCollection &, const reco::GenParticleCollection &, const reco::CaloMETCollection &, const reco::METCollection &)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< reco::METCollection > sInputTCLabel_tok_
edm::EDGetTokenT< reco::PFMETCollection > sInputRecoLabel_tok_
edm::EDGetTokenT< reco::CaloMETCollection > sInputCaloLabel_tok_
edm::EDGetTokenT< reco::GenParticleCollection > sInputTruthLabel_tok_
PFMETBenchmarkAnalyzer(const edm::ParameterSet &)