File indexing completed on 2023-10-25 10:04:09
0001 #ifndef HcalTestBeam_HcalTB02Histo_H
0002 #define HcalTestBeam_HcalTB02Histo_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
0030 class HcalTB02Histo {
0031 public:
0032
0033 HcalTB02Histo(const edm::ParameterSet &ps);
0034 virtual ~HcalTB02Histo();
0035
0036
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
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