62 void endJob()
override;
93 sInputTruthLabel_tok_ = consumes<reco::GenParticleCollection>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
94 sInputRecoLabel_tok_ = consumes<reco::PFMETCollection>(iConfig.
getParameter<
InputTag>(
"InputRecoLabel"));
95 sInputCaloLabel_tok_ = consumes<reco::CaloMETCollection>(iConfig.
getParameter<
InputTag>(
"InputCaloLabel"));
96 sInputTCLabel_tok_ = consumes<reco::METCollection>(iConfig.
getParameter<
InputTag>(
"InputTCLabel"));
121 std::cout <<
"Warning : no Gen Particles in input !" << std::endl;
127 bool isReco =
iEvent.getByToken(sInputRecoLabel_tok_, pfmets);
129 std::cout <<
"Warning : no PF MET in input !" << std::endl;
135 bool isTC =
iEvent.getByToken(sInputTCLabel_tok_, tcmets);
137 std::cout <<
"Warning : no TC MET in input !" << std::endl;
142 bool isCalo =
iEvent.getByToken(sInputCaloLabel_tok_, calomets);
144 std::cout <<
"Warning : no Calo MET in input !" << std::endl;
void analyze(const edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
dqm::legacy::DQMStore DQMStore
~PFMETBenchmarkAnalyzer() override
#define DEFINE_FWK_MODULE(type)
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
dqm::legacy::MonitorElement MonitorElement
T getUntrackedParameter(std::string const &, T const &) const
PFMETBenchmark PFMETBenchmark_
PFJet Benchmark.
void process(const reco::PFMETCollection &, const reco::GenParticleCollection &, const reco::CaloMETCollection &, const reco::METCollection &)
edm::EDGetTokenT< reco::METCollection > sInputTCLabel_tok_
edm::EDGetTokenT< reco::PFMETCollection > sInputRecoLabel_tok_
edm::EDGetTokenT< reco::CaloMETCollection > sInputCaloLabel_tok_
edm::EDGetTokenT< reco::GenParticleCollection > sInputTruthLabel_tok_
dqm::legacy::DQMStore * xdbe_
void setup(std::string Filename, bool debug, bool plotAgainstReco=false, std::string benchmarkLabel_="ParticleFlow", DQMStore *dbe_store=nullptr)
PFMETBenchmarkAnalyzer(const edm::ParameterSet &)