Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:26

0001 // Class: JetValidation.h

0002 // Description:  Some Basic validation plots for jets.

0003 // Author: K. Kousouris

0004 // Date:  27 - August - 2008

0005 //

0006 #ifndef JetValidation_h
0007 #define JetValidation_h
0008 #include <TH1.h>
0009 #include <TH2.h>
0010 #include <TProfile.h>
0011 #include <TFile.h>
0012 #include "TNamed.h"
0013 #include <vector>
0014 #include <map>
0015 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0016 
0017 class JetValidation : public edm::one::EDAnalyzer<> {
0018 public:
0019   JetValidation(edm::ParameterSet const& cfg);
0020 
0021 private:
0022   void beginJob() override;
0023   void analyze(edm::Event const& e, edm::EventSetup const& iSetup) override;
0024   void endJob() override;
0025   void FillHist1D(const TString& histName, const Double_t& x);
0026   void FillHist2D(const TString& histName, const Double_t& x, const Double_t& y);
0027   void FillHistProfile(const TString& histName, const Double_t& x, const Double_t& y);
0028 
0029   std::map<TString, TH1*> m_HistNames1D;
0030   std::map<TString, TH2*> m_HistNames2D;
0031   std::map<TString, TProfile*> m_HistNamesProfile;
0032   TFile* m_file;
0033 
0034   double PtMin;
0035   double dRmatch;
0036   int Njets;
0037   bool MCarlo;
0038   std::string histoFileName;
0039   std::string genAlgo;
0040   std::string calAlgo;
0041   std::string jetTracksAssociator;
0042 };
0043 
0044 #endif