2 #ifndef STAR_StdEdxY2Maker
3 #define STAR_StdEdxY2Maker
15 #include "StThreeVectorF.hh"
16 #include "StThreeVectorD.hh"
17 #include "StPhysicalHelixD.hh"
18 #include "tables/St_trigDetSums_Table.h"
34 enum EMode {kOldClusterFinder = 0,
36 kDoNotCorrectdEdx = 2,
41 kSpaceChargeStudy = 7,
50 kEmbeddingShortCut = 17
55 virtual Int_t InitRun(Int_t RunNumber);
58 virtual void SetMask(Long_t mask) {m_Mask = mask;}
59 static void SortdEdx();
60 Double_t LikeliHood(Double_t Xlog10bg, Int_t NdEdx,
dEdxY2_t *dEdx, Double_t chargeSq = 1);
63 void TrigHistos(Int_t iok = 0);
67 void DoFitZ(Double_t &chisq, Double_t &fitZ, Double_t &fitdZ);
68 void DoFitN(Double_t &chisq, Double_t &fitZ, Double_t &fitdZ);
69 static void PrintdEdx(Int_t iop = 0);
70 static void Landau(Double_t x, Double_t *val);
71 static void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag);
72 static void fcnN(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag);
73 static Double_t gaus2(Double_t *x, Double_t *p);
75 static TGraph *dNdxGraph(Int_t k = 0) {
return fdNdxGraph[k];}
77 Double_t IntegratedAdc(
const StTpcHit* tpcHit);
87 static void UsedNdx() {fUsedNdx = kTRUE;}
92 #ifdef __OLD_dX_Calculation__
101 static Double_t bField;
102 static Bool_t fUsedNdx;
103 static TH2F *fIntegratedAdc;
104 static TGraph *fdNdxGraph[3];
106 virtual const char *GetCVS()
const {
107 static const char cvs[]=
108 "Tag $Name: $ $Id: StdEdxY2Maker.h,v 1.33 2019/11/29 19:00:08 fisyak Exp $ built " __DATE__
" " __TIME__ ;