62 void endJob()
override;
94 sInputTruthLabel_tok_ = consumes<reco::GenParticleCollection>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
95 sInputRecoLabel_tok_ = consumes<reco::PFMETCollection>(iConfig.
getParameter<
InputTag>(
"InputRecoLabel"));
96 sInputCaloLabel_tok_ = consumes<reco::CaloMETCollection>(iConfig.
getParameter<
InputTag>(
"InputCaloLabel"));
97 sInputTCLabel_tok_ = consumes<reco::METCollection>(iConfig.
getParameter<
InputTag>(
"InputTCLabel"));
99 pfmBenchmarkDebug = iConfig.
getParameter<
bool>(
"pfjBenchmarkDebug");
100 xplotAgainstReco = iConfig.
getParameter<
bool>(
"PlotAgainstRecoQuantities");
101 xbenchmarkLabel_ = iConfig.
getParameter<
string>(
"BenchmarkLabel");
104 PFMETBenchmark_.setup(
OutputFileName, pfmBenchmarkDebug, xplotAgainstReco, xbenchmarkLabel_, xdbe_);
122 std::cout <<
"Warning : no Gen Particles in input !" << std::endl;
128 bool isReco =
iEvent.getByToken(sInputRecoLabel_tok_, pfmets);
130 std::cout <<
"Warning : no PF MET in input !" << std::endl;
136 bool isTC =
iEvent.getByToken(sInputTCLabel_tok_, tcmets);
138 std::cout <<
"Warning : no TC MET in input !" << std::endl;
143 bool isCalo =
iEvent.getByToken(sInputCaloLabel_tok_, calomets);
145 std::cout <<
"Warning : no Calo MET in input !" << std::endl;
150 PFMETBenchmark_.process(*pfmets, *
genparticles, *calomets, *tcmets);
161 PFMETBenchmark_.analyse();
162 PFMETBenchmark_.write();
void analyze(const edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
dqm::legacy::DQMStore DQMStore
~PFMETBenchmarkAnalyzer() override
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
dqm::legacy::MonitorElement MonitorElement
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< reco::METCollection > sInputTCLabel_tok_
edm::EDGetTokenT< reco::PFMETCollection > sInputRecoLabel_tok_
edm::EDGetTokenT< reco::CaloMETCollection > sInputCaloLabel_tok_
edm::EDGetTokenT< reco::GenParticleCollection > sInputTruthLabel_tok_
#define DEFINE_FWK_MODULE(type)
PFMETBenchmarkAnalyzer(const edm::ParameterSet &)
PFJet Benchmark.
PFMETBenchmark PFMETBenchmark_
dqm::legacy::DQMStore * xdbe_