Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-05 22:48:37

0001 #ifndef HcalTestBeam_HcalTB04Histo_H
0002 #define HcalTestBeam_HcalTB04Histo_H
0003 // -*- C++ -*-
0004 //
0005 // Package:     HcalTestBeam
0006 // Class  :     HcalTB04Histo
0007 //
0008 /**\class HcalTB04Histo HcalTB04Histo.h SimG4CMS/HcalTestBeam/interface/HcalTB04Histo.h
0009   
0010  Description: Histogram handling for Hcal Test Beam 2004 studies
0011   
0012  Usage: Sets up histograms and stores in a file
0013 */
0014 //
0015 // Original Author:  Sunanda Banerjee
0016 //         Created:  Thu May 18 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 #include <TProfile.h>
0030 
0031 class HcalTB04Histo {
0032 public:
0033   // ---------- Constructor and destructor -----------------
0034   HcalTB04Histo(const edm::ParameterSet& ps);
0035   virtual ~HcalTB04Histo();
0036 
0037   // ---------- member functions ---------------------------
0038   void fillPrimary(double energy, double eta, double phi);
0039   void fillEdep(double etots, double eecals, double ehcals, double etotq, double eecalq, double ehcalq);
0040   void fillTrnsProf(const std::vector<double>& es1,
0041                     const std::vector<double>& eq1,
0042                     const std::vector<double>& es2,
0043                     const std::vector<double>& eq2);
0044   void fillLongProf(const std::vector<double>& es, const std::vector<double>& eq);
0045 
0046 private:
0047   // ---------- Private Data members -----------------------
0048   bool verbose;
0049   double eTotMax, eHcalMax;
0050 
0051   TH1D *iniE, *iEta, *iPhi;
0052   TH1D *edepS, *edecS, *edhcS, *edepQ, *edecQ, *edhcQ;
0053   TH2D *edehS, *edehQ;
0054   TProfile *latse, *latqe, *latsf, *latqf, *lngs, *lngq;
0055 };
0056 
0057 #endif