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
std::map< TString, TH2 * > m_HistNames2D
Definition: JetValidation.h:30
void FillHist1D(const TString &histName, const Double_t &x)
void FillHistProfile(const TString &histName, const Double_t &x, const Double_t &y)
std::map< TString, TH1 * > m_HistNames1D
Definition: JetValidation.h:29
std::map< TString, TProfile * > m_HistNamesProfile
Definition: JetValidation.h:31
void analyze(edm::Event const &e, edm::EventSetup const &iSetup) override
void endJob() override
void beginJob() override
JetValidation(edm::ParameterSet const &cfg)
std::string histoFileName
Definition: JetValidation.h:38
std::string jetTracksAssociator
Definition: JetValidation.h:41
std::string calAlgo
Definition: JetValidation.h:40
std::string genAlgo
Definition: JetValidation.h:39
TFile * m_file
Definition: JetValidation.h:32
void FillHist2D(const TString &histName, const Double_t &x, const Double_t &y)