63 virtual 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"));
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;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
virtual void beginJob() override
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()
void setup(std::string Filename, bool debug, bool plotAgainstReco=0, std::string benchmarkLabel_="ParticleFlow", DQMStore *dbe_store=NULL)
PFMETBenchmarkAnalyzer(const edm::ParameterSet &)
virtual void endJob() override