CMS 3D CMS Logo

SimpleHistograms.h

Go to the documentation of this file.
00001 #ifndef L1Analyzer_SimpleHistograms_h
00002 #define L1Analyzer_SimpleHistograms_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     L1Analyzer
00006 // Class  :     SimpleHistograms
00007 // 
00016 //
00017 // Original Author:  Alex Tapper
00018 //         Created:  Tue Dec  5 10:07:41 CET 2006
00019 // $Id: SimpleHistograms.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 "TH1.h" // RooT histogram class
00028 
00029 class SimpleHistograms
00030 {
00031 
00032    public:
00033       SimpleHistograms(const std::string name, const edm::ParameterSet & cfg);
00034       virtual ~SimpleHistograms();
00035       void Fill(const reco::CandidateRef cand);
00036 
00037    private:
00038       SimpleHistograms();
00039 
00040       std::string m_dirName; // Name for folder
00041 
00042       int m_etNBins, m_etaNBins,m_phiNBins;  // Bins
00043       double m_etMin, m_etaMin, m_phiMin; 
00044       double m_etMax, m_etaMax, m_phiMax; 
00045       
00046       TH1F *m_Et, *m_Eta, *m_Phi; // Histograms
00047      
00048 
00049 };
00050 
00051 #endif

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