63 void endJob()
override ;
95 sInputTruthLabel_tok_ = consumes<reco::GenParticleCollection>(iConfig.
getParameter<
InputTag>(
"InputTruthLabel"));
96 sInputRecoLabel_tok_ = consumes<reco::PFMETCollection>(iConfig.
getParameter<
InputTag>(
"InputRecoLabel"));
97 sInputCaloLabel_tok_ = consumes<reco::CaloMETCollection>(iConfig.
getParameter<
InputTag>(
"InputCaloLabel"));
98 sInputTCLabel_tok_ = consumes<reco::METCollection>(iConfig.
getParameter<
InputTag>(
"InputTCLabel"));
105 PFMETBenchmark_.
setup(
131 bool isGen = iEvent.
getByToken(sInputTruthLabel_tok_, genparticles);
133 std::cout <<
"Warning : no Gen Particles in input !" << std::endl;
139 bool isReco = iEvent.
getByToken(sInputRecoLabel_tok_, pfmets);
141 std::cout <<
"Warning : no PF MET in input !" << std::endl;
147 bool isTC = iEvent.
getByToken(sInputTCLabel_tok_, tcmets);
149 std::cout <<
"Warning : no TC MET in input !" << std::endl;
154 bool isCalo = iEvent.
getByToken(sInputCaloLabel_tok_, calomets);
156 std::cout <<
"Warning : no Calo MET in input !" << std::endl;
161 PFMETBenchmark_.
process(*pfmets, *genparticles, *calomets, *tcmets);
177 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
#define DEFINE_FWK_MODULE(type)
void setup(std::string Filename, bool debug, bool plotAgainstReco=false, std::string benchmarkLabel_="ParticleFlow", DQMStore *dbe_store=0)
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_
PFMETBenchmarkAnalyzer(const edm::ParameterSet &)
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override