00001 // Class: JetValidation.h 00002 // Description: Some Basic validation plots for jets. 00003 // Author: K. Kousouris 00004 // Date: 27 - August - 2008 00005 // 00006 #ifndef JetValidation_h 00007 #define JetValidation_h 00008 #include <TH1.h> 00009 #include <TH2.h> 00010 #include <TProfile.h> 00011 #include <TFile.h> 00012 #include "TNamed.h" 00013 #include <vector> 00014 #include <map> 00015 #include "FWCore/Framework/interface/EDAnalyzer.h" 00016 00017 class JetValidation : public edm::EDAnalyzer 00018 { 00019 public: 00020 JetValidation(edm::ParameterSet const& cfg); 00021 private: 00022 void beginJob(); 00023 void analyze(edm::Event const& e, edm::EventSetup const& iSetup); 00024 void endJob(); 00025 void FillHist1D(const TString& histName, const Double_t& x); 00026 void FillHist2D(const TString& histName, const Double_t& x, const Double_t& y); 00027 void FillHistProfile(const TString& histName, const Double_t& x, const Double_t& y); 00028 00029 std::map<TString, TH1*> m_HistNames1D; 00030 std::map<TString, TH2*> m_HistNames2D; 00031 std::map<TString, TProfile*> m_HistNamesProfile; 00032 TFile* m_file; 00033 00034 double PtMin; 00035 double dRmatch; 00036 int Njets; 00037 bool MCarlo; 00038 std::string histoFileName; 00039 std::string genAlgo; 00040 std::string calAlgo; 00041 std::string jetTracksAssociator; 00042 }; 00043 00044 #endif