00001 #ifndef L1Analyzer_ResolutionHistograms_h
00002 #define L1Analyzer_ResolutionHistograms_h
00003
00004
00005
00006
00007
00016
00017
00018
00019
00020
00021
00022 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00023 #include "FWCore/ServiceRegistry/interface/Service.h"
00024 #include "PhysicsTools/UtilAlgos/interface/TFileService.h"
00025 #include "DataFormats/Candidate/interface/Candidate.h"
00026
00027 #include "DataFormats/Math/interface/LorentzVector.h"
00028 #include <Math/VectorUtil.h>
00029
00030 #include "TH1.h"
00031 #include "TH2.h"
00032 #include "TProfile.h"
00033
00034 class ResolutionHistograms
00035 {
00036
00037 public:
00038 ResolutionHistograms(const std::string name, const edm::ParameterSet & cfg);
00039 virtual ~ResolutionHistograms();
00040 void Fill(const reco::CandidateRef &l1, const reco::CandidateRef &ref);
00041
00042 private:
00043 ResolutionHistograms();
00044
00045 std::string m_dirName;
00046
00047 int m_etNBins, m_etaNBins,m_phiNBins, m_delRNBins;
00048 double m_etMin, m_etaMin, m_phiMin, m_delRMin;
00049 double m_etMax, m_etaMax, m_phiMax, m_delRMax;
00050
00051 int m_etN2DBins, m_etaN2DBins,m_phiN2DBins;
00052 double m_et2DMin, m_eta2DMin, m_phi2DMin;
00053 double m_et2DMax, m_eta2DMax, m_phi2DMax;
00054
00055 int m_etProfNBins, m_etaProfNBins,m_phiProfNBins;
00056 double m_etProfMin, m_etaProfMin, m_phiProfMin;
00057 double m_etProfMax, m_etaProfMax, m_phiProfMax;
00058
00059 TH1F *m_DeltaR;
00060 TH1F *m_EtRes, *m_EtaRes, *m_PhiRes;
00061 TH2F *m_EtCor, *m_EtaCor, *m_PhiCor;
00062 TProfile *m_EtProf, *m_EtaProf, *m_PhiProf;
00063
00064 };
00065
00066
00067 #endif