File indexing completed on 2024-04-06 12:30:03
0001 #ifndef HcalTestBeam_HcalTB04Histo_H
0002 #define HcalTestBeam_HcalTB04Histo_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #include <string>
0021 #include <vector>
0022
0023
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
0034 HcalTB04Histo(const edm::ParameterSet& ps);
0035 virtual ~HcalTB04Histo();
0036
0037
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
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