18 #ifndef STAR_StFtpcLaserCalib
19 #define STAR_StFtpcLaserCalib
23 #include "StFtpcLaser.hh"
24 #include "StFtpcLaserTrafo.hh"
25 #include "StarMagField/StarMagField.h"
27 const Float_t radcutmin[11]={0,8.5,10.5,12.5,14.5,16.5,18.5,21,22.5,25,26.5};
28 const Float_t radcutmax[11]={0,10,11.5,14,15.5,18,20,22,24,26,28};
30 const Float_t radcutminst[4]={0,9,18,27};
31 const Float_t radcutmaxst[4]={0,13.5,21,30};
33 const Float_t zfieldcage=263.0;
34 const Float_t Rad2Grad=180/TMath::Pi();
60 Float_t calcrad[11],calcphi[11],calcx[11],calcy[11];
61 Float_t ppos[11],ppossigma[11],rpol[11],timepos[11];
62 Float_t resx[11],resy[11],resrad[11],resphi[11];
63 Float_t resx2[11],resy2[11],resrad2[11],resphi2[11];
64 Float_t maxadc[11],padl[11],timel[11],charge[11];
65 Float_t x_s[11],y_s[11];
66 Float_t x_d[11],y_d[11];
67 Int_t hsec[11], softsec[11], softrow[11];
69 Float_t MINZ,MAXZ,MINRAD,MAXRAD,GAUSFIT;
71 float deltat0, deltagas,deltaTemp;
98 Int_t FTPC,LSEC,STRAIGHT,usedfit;
101 Float_t p,pt,invp,invpt;
103 TH1F *hresx,*hresy,*hresrad,*hresphi;
104 TH1F *hhresx,*hhresy,*hhresrad,*hhresphi;
105 TH1F *hphi, *hrad,*hpad, *hpadsigma, *htime;
106 TH2F *hresrad2,*hresphi2,*hpadrad;
107 TH2F *hhresrad2,*hhresphi2;
108 TH2F *hhresx2,*hhresy2;
109 TH2F *hresx2,*hresy2;
110 TH1F *hradpol,*hcalcrad,*hcalcphi;
112 TH1F *htimel,*hpadl,*hmaxadc,*hcharge;
115 TH1F *hbdiffx,*hbdiffy;
116 TH2F *hbdiffx2,*hbdiffy2;
118 TH1F *htrcharge, *hp, *hpt, *hinvp, *hinvpt;
120 TH1F *hpadcut[11], *hradcut[11], *hradpolcut[5];
125 StFtpcLaserCalib(
int ftpc,
int lsec,
int straight,
int gfit,
int minz,
int maxz,
int minrad,
int maxrad,
float gt0,
float ggas,
float gTemp,
StFtpcLaserTrafo *trafo,
StarMagField *gmagf);
132 void MakeOutput(TString eingabe,
char* t0,
char* gas,
float gastemp);
137 void minuit_set_par();
140 int laser_fit(
int getnhits);
141 void defl_angle_transv();
142 void defl_histograms_st();
143 void defl_histograms();
144 void extrapol_histograms();
145 void fill_defl_histograms(
float getrad,
float getpadpos);
146 void fill_defl_histograms_st(
float getrad,
float getpadpos);
147 void fill_extrapol_histograms(
float getradpol);
149 void fillarray(
float tx,
float ty,
float tz,
float tex,
float tey,
int n,
int nsec,
float gppos,
float gppossigma,
int gsofstsec,
int gsoftrow,
float gtimepos,
float getpadl,
float gettimel,
float getmaxadc,
float getcharge);