CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
PFCandidateBenchmarkAnalyzer Class Reference

#include <PFCandidateBenchmarkAnalyzer.h>

Inheritance diagram for PFCandidateBenchmarkAnalyzer:
BenchmarkAnalyzer PFCandidateBenchmark edm::EDAnalyzer Benchmark

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
void endJob ()
 
 PFCandidateBenchmarkAnalyzer (const edm::ParameterSet &parameterSet)
 
- Public Member Functions inherited from BenchmarkAnalyzer
 BenchmarkAnalyzer ()
 
 BenchmarkAnalyzer (const edm::ParameterSet &)
 
virtual ~BenchmarkAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from PFCandidateBenchmark
void fill (const reco::PFCandidateCollection &pfCands)
 
void fillOne (const reco::PFCandidate &pfCand)
 fill histograms with a given particle More...
 
 PFCandidateBenchmark (Mode mode)
 
void setup ()
 book histograms More...
 
virtual ~PFCandidateBenchmark ()
 
- Public Member Functions inherited from Benchmark
 Benchmark (Mode mode=DEFAULT)
 
bool isInRange (float pt, float eta, float phi) const
 
virtual void setDirectory (TDirectory *dir)
 
void setParameters (Mode mode)
 
void setRange (float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
 
void write ()
 write to the TFile, in plain ROOT mode. No need to call this function in DQM mode More...
 
virtual ~Benchmark ()
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Public Types inherited from Benchmark
enum  Mode { DEFAULT, DQMOFFLINE, VALIDATION }
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Static Public Attributes inherited from Benchmark
static DQMStoreDQM_ = 0
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from Benchmark
TH1F * book1D (const char *histname, const char *title, int nbins, float xmin, float xmax)
 book a 1D histogram, either with DQM or plain root. More...
 
TH2F * book2D (const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
 book a 2D histogram, either with DQM or plain root. More...
 
TH2F * book2D (const char *histname, const char *title, int nbinsx, float *xbins, int nbinsy, float ymin, float ymax)
 book a 2D histogram, either with DQM or plain root. More...
 
- Protected Attributes inherited from BenchmarkAnalyzer
std::string benchmarkLabel_
 benchmark label More...
 
edm::InputTag inputLabel_
 input collection More...
 
std::string outputFile_
 name of the output root file More...
 
- Protected Attributes inherited from PFCandidateBenchmark
TH1F * ecalEnergy_
 
TH1F * elementsInBlocksSize_
 
TH1F * hcalEnergy_
 
TH1F * mva_e_pi_
 
TH1F * particleId_
 
- Protected Attributes inherited from Benchmark
TDirectory * dir_
 
float etaMax_
 
float etaMin_
 
Mode mode_
 
float phiMax_
 
float phiMin_
 
float ptMax_
 
float ptMin_
 

Detailed Description

Definition at line 11 of file PFCandidateBenchmarkAnalyzer.h.

Constructor & Destructor Documentation

PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer ( const edm::ParameterSet parameterSet)

Definition at line 23 of file PFCandidateBenchmarkAnalyzer.cc.

References edm::ParameterSet::getParameter(), and Benchmark::setRange().

23  :
24  BenchmarkAnalyzer(parameterSet),
25  PFCandidateBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
26 {
27  setRange( parameterSet.getParameter<double>("ptMin"),
28  parameterSet.getParameter<double>("ptMax"),
29  parameterSet.getParameter<double>("etaMin"),
30  parameterSet.getParameter<double>("etaMax"),
31  parameterSet.getParameter<double>("phiMin"),
32  parameterSet.getParameter<double>("phiMax") );
33 
34 }
T getParameter(std::string const &) const
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51

Member Function Documentation

void PFCandidateBenchmarkAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 46 of file PFCandidateBenchmarkAnalyzer.cc.

References runEdmFileComparison::collection, PFCandidateBenchmark::fill(), edm::Event::getByLabel(), and BenchmarkAnalyzer::inputLabel_.

47  {
48 
49 
50 
52  iEvent.getByLabel( inputLabel_, collection);
53 
54  fill( *collection );
55 }
void fill(const reco::PFCandidateCollection &pfCands)
edm::InputTag inputLabel_
input collection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
void PFCandidateBenchmarkAnalyzer::beginJob ( void  )
virtual

Implements BenchmarkAnalyzer.

Definition at line 38 of file PFCandidateBenchmarkAnalyzer.cc.

References BenchmarkAnalyzer::beginJob(), and PFCandidateBenchmark::setup().

39 {
41  setup();
42 }
virtual void beginJob()=0
void setup()
book histograms
void PFCandidateBenchmarkAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 58 of file PFCandidateBenchmarkAnalyzer.cc.

58  {
59 }