1 #ifndef StTpcHitMaker_H
2 #define StTpcHitMaker_H
85 #include "StRTSBaseMaker.h"
87 #include "StThreeVectorF.hh"
91 #ifdef __USE__THnSparse__
92 #include "THnSparse.h"
104 enum EReaderType {kUnknown, kLegacyTpc, kLegacyTpx, kStandardTpx, kStandardiTPC};
105 enum EMode {kUndefined,
107 kTpcPulser, kTpxPulser, kiTPCPulser,
108 kTpcRaw, kTpxRaw, kiTPCRaw,
109 kTpcAvLaser, kTpxAvLaser,
116 Int_t InitRun(Int_t runnumber);
118 void DoPulser(Int_t sector);
119 void TpxAvLaser(Int_t sector);
120 void TpcAvLaser(Int_t sector);
121 void PadMonitor(Int_t sector);
122 Int_t UpdateHitCollection(Int_t sector);
123 void DumpPixels2Ntuple(Int_t sector, Int_t row, Int_t pad);
124 void PrintSpecial(Int_t sector);
125 Int_t RawTpcData(Int_t sector);
126 Int_t RawTpxData(Int_t sector);
127 void InitializeHistograms(Int_t token);
129 TH2C *Thr() {
return fThr;}
130 TH2C *Seq() {
return fSeq;}
131 #ifdef __USE__THnSparse__
132 THnSparseF *CompressTHn(THnSparseF *hist, Double_t compress = 1e4);
136 Int_t getADC(Int_t i) {
if (i < 0 || i > 511) {
return 0;}
else {
return ADCs[i];}}
140 EReaderType kReaderType;
144 #ifdef __TFG__VERSION__
153 #ifdef __USE__THnSparse__
154 THnSparseF **fAvLaser;
161 StTpcHit *CreateTpcHit(
const tpc_cl &cluster, Int_t sector, Int_t row);
162 StTpcHit *CreateTpcHit(
const daq_cld &cluster, Int_t sector, Int_t row);
168 UInt_t hw,
float q, UChar_t c,
169 Int_t idTruth, UShort_t quality,
171 UShort_t mnpad, UShort_t mxpad, UShort_t mntmbk,
172 UShort_t mxtmbk, Float_t cl_x, Float_t cl_t, UShort_t adc,
174 static void SetCosmics() {fgCosmics = kTRUE;}
177 static Float_t fgDperp;
178 static Bool_t fgCosmics;
182 virtual const char *GetCVS()
const {
183 static const char cvs[]=
"Tag $Name: $Id: built " __DATE__
" " __TIME__ ;
return cvs;
Class StRTSBaseMaker - is an abstract StMaker to define the interface to access the DAQ data from the...