81 #ifndef STAR_StFgtSlowSimuMaker
82 #define STAR_StFgtSlowSimuMaker
88 #include "StFgtUtil/StFgtConsts.h"
130 static const Float_t pulseShape[20];
143 TH2F *quadDigitizationXY;
144 TH1F *quadDigitizationPhi;
145 TH1F *quadDigitizationRad;
149 TH2F *digPadcAll, *digRadcAll;
150 TH1F *digPAll, *digRAll;
157 Double_t par_stripThreshAdc;
158 Double_t par_XYamplSigma;
160 Int_t par_cutoffOfBichel;
161 Double_t par_pairsPerCm ;
162 Double_t par_trackTOFcutoff;
163 Double_t par_trackPcutoff;
165 Double_t par_transDiffusionPerPath;
169 Double_t par_2DampCutoffScale;
170 Double_t par_overalGain;
171 Double_t par_PplaneChargeFraction;
174 Int_t switch_addPeds;
179 void addHit(TVector3 rLocal, Double_t ampl=1.) ;
181 void responseMipModel(TVector3 Rloc, TVector3 Dloc);
183 vector<fgt_g2t_auxil>
mG2tHitList[kFgtNumDiscs][kFgtNumQuads];
190 void unpack_g2t_hits(St_g2t_fgt_hit *);
192 void projectQuad2strips( Int_t idisc, Int_t iquad);
206 Double_t amplFunc(Double_t del_cm) {
207 Double_t relD=del_cm/par_XYamplSigma;
208 return exp(-relD*relD/2.);
215 virtual Int_t Init();
216 virtual Int_t InitRun(Int_t runNumber);
218 virtual Int_t
Make();
219 virtual void Clear(Option_t *option=
"");
228 void saveHisto(TString fname);
231 virtual const char *GetCVS()
const {
232 static const char cvs[]=
"Tag $Name: $ $Id: StFgtSlowSimuMaker.h,v 1.3 2014/08/06 11:43:13 jeromel Exp $ built " __DATE__
" " __TIME__ ;
virtual void Clear(Option_t *option="")
User defined functions.
vector< fgt_g2t_auxil > mG2tHitList[kFgtMxDisk+1][kFgtMxQuad]
accepted track segements
void setFgtDb(StFgtDb *x)
needed to access DB tables
void setHList(TObjArray *x)
needed for exporting histograms
Int_t iQuad
the oryginal g2t hit
void enableAddPeds()
optional, allows adding of real pedestals to simulated data
.... utility c-struct for g2t hits
void setRndSeed(int x)
optional, enforces use of specific seed for repetetive test simu
TVector3 Rloc
hit entrance in LAB
g2t_fgt_hit_st * hitPtr
entrance & path in local ref frame
StFgtSlowSimuMaker(const char *name="FgtSlowSimu")