CMS 3D CMS Logo

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

#include <MatchMETBenchmarkAnalyzer.h>

Inheritance diagram for MatchMETBenchmarkAnalyzer:
BenchmarkAnalyzer MatchMETBenchmark edm::EDAnalyzer Benchmark

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 
void beginJob ()
 
void endJob ()
 
 MatchMETBenchmarkAnalyzer (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 MatchMETBenchmark
void fillOne (const reco::MET &candidate, const reco::MET &matchedCandidate)
 fill histograms with a given particle More...
 
 MatchMETBenchmark (Mode mode)
 
void setup ()
 book histograms More...
 
virtual ~MatchMETBenchmark ()
 
- 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 ()
 

Protected Attributes

edm::InputTag matchedinputLabel_
 
- 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 MatchMETBenchmark
TH2F * delta_et_Over_et_VS_et_
 
TH2F * delta_et_VS_et_
 
TH1F * delta_ex_
 
TH2F * delta_ex_VS_set_
 
TH2F * delta_phi_VS_et_
 
TH2F * delta_set_Over_set_VS_set_
 
TH2F * delta_set_VS_set_
 
TH2F * RecEt_VS_TrueEt_
 
TH2F * RecSet_Over_TrueSet_VS_TrueSet_
 
- Protected Attributes inherited from Benchmark
TDirectory * dir_
 
float etaMax_
 
float etaMin_
 
Mode mode_
 
float phiMax_
 
float phiMin_
 
float ptMax_
 
float ptMin_
 

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...
 

Detailed Description

Definition at line 9 of file MatchMETBenchmarkAnalyzer.h.

Constructor & Destructor Documentation

MatchMETBenchmarkAnalyzer::MatchMETBenchmarkAnalyzer ( const edm::ParameterSet parameterSet)

Definition at line 15 of file MatchMETBenchmarkAnalyzer.cc.

References edm::ParameterSet::getParameter(), and matchedinputLabel_.

15  :
16  BenchmarkAnalyzer(parameterSet),
17  MatchMETBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
18 {
19  matchedinputLabel_=parameterSet.getParameter<edm::InputTag>("MatchCollection");
20 // setRange( parameterSet.getParameter<double>("ptMin"),
21 // parameterSet.getParameter<double>("ptMax"),
22 // -0.1, 0.1, // range in eta for MET.
23 // parameterSet.getParameter<double>("phiMin"),
24 // parameterSet.getParameter<double>("phiMax") );
25 }
T getParameter(std::string const &) const
MatchMETBenchmark(Mode mode)

Member Function Documentation

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

Implements edm::EDAnalyzer.

Definition at line 36 of file MatchMETBenchmarkAnalyzer.cc.

References runEdmFileComparison::collection, MatchMETBenchmark::fillOne(), edm::Event::getByLabel(), BenchmarkAnalyzer::inputLabel_, and matchedinputLabel_.

37  {
38 
39 
41  iEvent.getByLabel( inputLabel_, collection);
42 
43  Handle< View<MET> > matchedcollection;
44  iEvent.getByLabel( matchedinputLabel_, matchedcollection);
45 
46  fillOne( (*collection)[0] , (*matchedcollection)[0]);
47 }
void fillOne(const reco::MET &candidate, const reco::MET &matchedCandidate)
fill histograms with a given particle
edm::InputTag inputLabel_
input collection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:355
void MatchMETBenchmarkAnalyzer::beginJob ( void  )
virtual

Implements BenchmarkAnalyzer.

Definition at line 28 of file MatchMETBenchmarkAnalyzer.cc.

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

29 {
30 
32  setup();
33 }
virtual void beginJob()=0
void setup()
book histograms
void MatchMETBenchmarkAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 49 of file MatchMETBenchmarkAnalyzer.cc.

49  {
50 }

Member Data Documentation

edm::InputTag MatchMETBenchmarkAnalyzer::matchedinputLabel_
protected

Definition at line 19 of file MatchMETBenchmarkAnalyzer.h.

Referenced by analyze(), and MatchMETBenchmarkAnalyzer().