CMS 3D CMS Logo

JetValidation.h
Go to the documentation of this file.
1 // Class: JetValidation.h
2 // Description: Some Basic validation plots for jets.
3 // Author: K. Kousouris
4 // Date: 27 - August - 2008
5 //
6 #ifndef JetValidation_h
7 #define JetValidation_h
8 #include <TH1.h>
9 #include <TH2.h>
10 #include <TProfile.h>
11 #include <TFile.h>
12 #include "TNamed.h"
13 #include <vector>
14 #include <map>
16 
18 public:
20 
21 private:
22  void beginJob() override;
23  void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
24  void endJob() override;
25  void FillHist1D(const TString& histName, const Double_t& x);
26  void FillHist2D(const TString& histName, const Double_t& x, const Double_t& y);
27  void FillHistProfile(const TString& histName, const Double_t& x, const Double_t& y);
28 
29  std::map<TString, TH1*> m_HistNames1D;
30  std::map<TString, TH2*> m_HistNames2D;
31  std::map<TString, TProfile*> m_HistNamesProfile;
32  TFile* m_file;
33 
34  double PtMin;
35  double dRmatch;
36  int Njets;
37  bool MCarlo;
42 };
43 
44 #endif
JetValidation::FillHist1D
void FillHist1D(const TString &histName, const Double_t &x)
Definition: JetValidation.cc:210
JetValidation::m_HistNamesProfile
std::map< TString, TProfile * > m_HistNamesProfile
Definition: JetValidation.h:31
DDAxes::y
JetValidation::m_HistNames2D
std::map< TString, TH2 * > m_HistNames2D
Definition: JetValidation.h:30
EDAnalyzer.h
DDAxes::x
JetValidation::m_file
TFile * m_file
Definition: JetValidation.h:32
JetValidation::dRmatch
double dRmatch
Definition: JetValidation.h:35
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
JetValidation::m_HistNames1D
std::map< TString, TH1 * > m_HistNames1D
Definition: JetValidation.h:29
JetValidation::JetValidation
JetValidation(edm::ParameterSet const &cfg)
Definition: JetValidation.cc:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
JetValidation::beginJob
void beginJob() override
Definition: JetValidation.cc:35
JetValidation::FillHistProfile
void FillHistProfile(const TString &histName, const Double_t &x, const Double_t &y)
Definition: JetValidation.cc:226
JetValidation::endJob
void endJob() override
Definition: JetValidation.cc:194
JetValidation::Njets
int Njets
Definition: JetValidation.h:36
JetValidation::histoFileName
std::string histoFileName
Definition: JetValidation.h:38
edm::EventSetup
Definition: EventSetup.h:57
JetValidation::genAlgo
std::string genAlgo
Definition: JetValidation.h:39
JetValidation::PtMin
double PtMin
Definition: JetValidation.h:34
JetValidation
Definition: JetValidation.h:17
looper.cfg
cfg
Definition: looper.py:297
JetValidation::calAlgo
std::string calAlgo
Definition: JetValidation.h:40
JetValidation::analyze
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
Definition: JetValidation.cc:82
JetValidation::MCarlo
bool MCarlo
Definition: JetValidation.h:37
edm::Event
Definition: Event.h:73
JetValidation::FillHist2D
void FillHist2D(const TString &histName, const Double_t &x, const Double_t &y)
Definition: JetValidation.cc:218
JetValidation::jetTracksAssociator
std::string jetTracksAssociator
Definition: JetValidation.h:41
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37