CMS 3D CMS Logo

ResolutionHistograms.h

Go to the documentation of this file.
00001 #ifndef L1Analyzer_ResolutionHistograms_h
00002 #define L1Analyzer_ResolutionHistograms_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     L1Analyzer
00006 // Class  :     ResolutionHistograms
00007 // 
00016 //
00017 // Original Author:  Alex Tapper
00018 //         Created:  Tue Dec  5 14:02:36 CET 2006
00019 // $Id: ResolutionHistograms.h,v 1.2 2007/07/08 08:14:03 elmer Exp $
00020 //
00021 
00022 #include "FWCore/ParameterSet/interface/ParameterSet.h" // Paramters
00023 #include "FWCore/ServiceRegistry/interface/Service.h" // Framework services
00024 #include "PhysicsTools/UtilAlgos/interface/TFileService.h" // Framework service for histograms
00025 #include "DataFormats/Candidate/interface/Candidate.h" // Candidate definition
00026 
00027 #include "DataFormats/Math/interface/LorentzVector.h" // Maths stuff for Delta R
00028 #include <Math/VectorUtil.h>
00029 
00030 #include "TH1.h" // RooT histogram class
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; // Name for folder
00046 
00047       int m_etNBins, m_etaNBins,m_phiNBins, m_delRNBins;  // Bins for 1D resolutions
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;  // Bins for 2D correlations
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;  // Bins for profiles
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; // 1D resolution histograms
00061       TH2F *m_EtCor, *m_EtaCor, *m_PhiCor; // 2D correlation histograms
00062       TProfile *m_EtProf, *m_EtaProf, *m_PhiProf; // Profile plots of resolutions
00063  
00064 };
00065 
00066 
00067 #endif

Generated on Tue Jun 9 17:40:30 2009 for CMSSW by  doxygen 1.5.4