#include <PFCandidateManagerAnalyzer.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginJob () |
void | endJob () |
PFCandidateManagerAnalyzer (const edm::ParameterSet ¶meterSet) | |
Private Attributes | |
edm::InputTag | matchLabel_ |
Definition at line 11 of file PFCandidateManagerAnalyzer.h.
PFCandidateManagerAnalyzer::PFCandidateManagerAnalyzer | ( | const edm::ParameterSet & | parameterSet | ) |
Definition at line 23 of file PFCandidateManagerAnalyzer.cc.
References edm::ParameterSet::getParameter(), and Benchmark::setRange().
: BenchmarkAnalyzer(parameterSet), PFCandidateManager( parameterSet.getParameter<double>("dRMax"), parameterSet.getParameter<bool>("matchCharge"), (Benchmark::Mode) parameterSet.getParameter<int>("mode") ), matchLabel_( parameterSet.getParameter<InputTag>("MatchCollection") ) { setRange( parameterSet.getParameter<double>("ptMin"), parameterSet.getParameter<double>("ptMax"), parameterSet.getParameter<double>("etaMin"), parameterSet.getParameter<double>("etaMax"), parameterSet.getParameter<double>("phiMin"), parameterSet.getParameter<double>("phiMax") ); }
void PFCandidateManagerAnalyzer::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 49 of file PFCandidateManagerAnalyzer.cc.
References runEdmFileComparison::collection, PFCandidateManager::fill(), edm::Event::getByLabel(), BenchmarkAnalyzer::inputLabel_, and matchLabel_.
{ Handle<PFCandidateCollection> collection; iEvent.getByLabel( inputLabel_, collection); Handle< View<Candidate> > matchCollection; iEvent.getByLabel( matchLabel_, matchCollection); fill( *collection, *matchCollection ); }
void PFCandidateManagerAnalyzer::beginJob | ( | void | ) | [virtual] |
Implements BenchmarkAnalyzer.
Definition at line 41 of file PFCandidateManagerAnalyzer.cc.
References PFCandidateManager::setup().
{ BenchmarkAnalyzer::beginJob(); setup(); }
void PFCandidateManagerAnalyzer::endJob | ( | void | ) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 63 of file PFCandidateManagerAnalyzer.cc.
{ }
Definition at line 21 of file PFCandidateManagerAnalyzer.h.
Referenced by analyze().