16 #ifndef StFstCalibrationMaker_h
17 #define StFstCalibrationMaker_h
21 #include "StEvent/StFstConsts.h"
34 Int_t InitRun(Int_t runNumber);
39 void setTimeBinMask(
short mask = 0xFF );
40 void setRunHist(
bool flag =
false);
41 void setPedCutFlag(
bool flag =
false);
42 void setPedCut(
float pedCut = 3.0);
51 pedNoiseData_t(
int nIn=0,
float p=0,
float r=0,
float d=0 ) : n(nIn), ped(p), rms(r), ran{d} { };
53 typedef std::vector< pedNoiseData_t > pedNoiseDataVec_t;
54 pedNoiseDataVec_t mPedVec;
62 typedef std::vector< cmNoiseData_t > cmNoiseDataVec_t;
63 cmNoiseDataVec_t mCmnVec;
74 std::vector< TH1S* > mHistPedVec;
75 std::vector< TH1F* > mHistCmnVec;
76 std::vector< TH1F* > mHistRanVec;
79 std::vector< float > mPedVec1stLoop;
80 std::vector< float > mRmsVec1stLoop;
81 std::vector< float > mRanVec1stLoop;
84 std::vector< double > mMathPedVec;
85 std::vector< double > mMathRmsVec;
86 std::vector< int > mMathCouVec;
88 std::vector< double > mMathRanVec;
89 std::vector< double > mMathPedRanVec;
90 std::vector< double > mMathRmsRanVec;
91 std::vector< int > mMathCouRanVec;
104 typedef std::vector< int > MappingVec_t;
105 MappingVec_t mMappingVec;
109 TH1F *hist_meanPed[kFstNumTimeBins];
110 TH1F *hist_rmsPed[kFstNumTimeBins];
111 TH1F *hist_cmNoise[kFstNumTimeBins];
112 TH1F *hist_ranNoise[kFstNumTimeBins];
113 TH1F *hist_sumPed[kFstNumTimeBins];
114 TH1F *hist_sumRms[kFstNumTimeBins];
115 TH1F *hist_sumCmn[kFstNumTimeBins];
116 TH1F *hist_sumRan[kFstNumTimeBins];
117 TH2S *hist_adcSpectrum[kFstNumTimeBins];
118 static const string sectionLabel[72];
126 inline void StFstCalibrationMaker::setTimeBinMask(
short mask ) { mTimeBinMask = mask; };
127 inline void StFstCalibrationMaker::setRunHist(
bool flag) { mRunHist = flag; };
128 inline void StFstCalibrationMaker::setPedCutFlag(
bool flag) { mDoPedCut = flag; };
129 inline void StFstCalibrationMaker::setPedCut(
float pedCut) { mPedCut = pedCut; };