** Warning **

Issuing rollback() due to DESTROY without explicit disconnect() of DBD::mysql::db handle dbname=lxr at /lxr/lib/LXR/Common.pm line 1113.

Last-Modified: Fri, 12 Dec 2024 03:12:41 GMT Content-Type: text/html; charset=utf-8 /CMSSW_15_0_X_2024-12-11-2300/SimG4CMS/HcalTestBeam/interface/HcalTB02Histo.h
Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:03

0001 #ifndef HcalTestBeam_HcalTB02Histo_H
0002 #define HcalTestBeam_HcalTB02Histo_H
0003 // -*- C++ -*-
0004 //
0005 // Package:     HcalTestBeam
0006 // Class  :     HcalTB02Histo
0007 //
0008 /**\class HcalTB02Histo HcalTB02Histo.h SimG4CMS/HcalTestBeam/interface/HcalTB02Histo.h
0009   
0010  Description: Histogram handling for Hcal Test Beam 2002 studies
0011   
0012  Usage: Sets up histograms and stores in a file
0013 */
0014 //
0015 // Original Author:
0016 //         Created:  Thu Sun 21 10:14:34 CEST 2006
0017 //
0018 
0019 // system include files
0020 #include <string>
0021 #include <vector>
0022 
0023 // user include files
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "FWCore/ServiceRegistry/interface/Service.h"
0026 
0027 #include <TH1D.h>
0028 #include <TH2D.h>
0029 
0030 class HcalTB02Histo {
0031 public:
0032   // ---------- Constructor and destructor -----------------
0033   HcalTB02Histo(const edm::ParameterSet &ps);
0034   virtual ~HcalTB02Histo();
0035 
0036   // ---------- member functions ---------------------------
0037   void fillAllTime(float v);
0038   void fillTransProf(float u, float v);
0039   void fillProfile(int ilayer, float value);
0040   float getMean(int ilayer);
0041   float getRMS(int ilayer);
0042 
0043 private:
0044   // ---------- Private Data members -----------------------
0045   std::string fileName;
0046   bool verbose;
0047 
0048   TH1D *rt_tbTimes;
0049   TH2D *rt_TransProf;
0050   std::vector<TH1D *> rt_histoProf;
0051 };
0052 
0053 #endif