CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/SimG4CMS/HcalTestBeam/interface/HcalTB02Histo.h

Go to the documentation of this file.
00001 #ifndef HcalTestBeam_HcalTB02Histo_H
00002 #define HcalTestBeam_HcalTB02Histo_H
00003 // -*- C++ -*-
00004 //
00005 // Package:     HcalTestBeam
00006 // Class  :     HcalTB02Histo
00007 //
00014 //
00015 // Original Author:  
00016 //         Created:  Thu Sun 21 10:14:34 CEST 2006
00017 // $Id: HcalTB02Histo.h,v 1.3 2008/07/24 15:19:15 sunanda Exp $
00018 //
00019   
00020 // system include files
00021 #include<string>
00022 #include<vector>
00023  
00024 // user include files
00025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00026 #include "FWCore/ServiceRegistry/interface/Service.h"
00027 
00028 #include <TH1D.h>
00029 #include <TH2D.h>
00030 
00031 class HcalTB02Histo {
00032    
00033 public:
00034  
00035   // ---------- Constructor and destructor -----------------
00036   HcalTB02Histo(const edm::ParameterSet &ps);
00037   virtual ~HcalTB02Histo();
00038 
00039   // ---------- member functions ---------------------------
00040   void fillAllTime(float v);
00041   void fillTransProf(float u, float v);
00042   void fillProfile(int ilayer, float value);
00043   float getMean(int ilayer);
00044   float getRMS (int ilayer);
00045                                                                                
00046 private:
00047 
00048   // ---------- Private Data members -----------------------
00049   std::string                   fileName;
00050   bool                          verbose;
00051 
00052   TH1D                          *rt_tbTimes;
00053   TH2D                          *rt_TransProf;
00054   std::vector<TH1D *>           rt_histoProf;
00055 };
00056  
00057 #endif