42 #include "TGeoGlobalMagField.h"
52 #include "TTreeStream.h"
53 #include "THnSparse.h"
89 AliMagF* magF= (AliMagF*)TGeoGlobalMagField::Instance()->GetField();
90 if (!magF) AliError(
"Magneticd field - not initialized");
91 Double_t bzField = magF->SolenoidField()/10.;
93 if (!param) AliError(
"Parameters - not initialized");
95 Double_t ezField = 400;
96 Double_t wt = -10.0 * (bzField*10) * vdrift / ezField ;
104 AliMagF* magF= (AliMagF*)TGeoGlobalMagField::Instance()->GetField();
105 if (!magF) AliError(
"Magneticd field - not initialized");
106 Double_t bzField = magF->SolenoidField()/10.;
108 if (!param) AliError(
"Parameters - not initialized");
110 Double_t ezField = 400;
111 Double_t wt = -10.0 * (bzField*10) * vdrift / ezField ;
126 Double_t phi = TMath::ATan2(x[1],x[0]);
127 Double_t r = TMath::Sqrt(x[1]*x[1]+x[0]*x[0]);
128 Double_t sector = 9.*phi/TMath::Pi();
129 if (sector<0) sector+=18.;
133 if (kZ<-1.2) kZ= -1.2;
134 if (roc%36<18) kZ= TMath::Abs(kZ);
135 if (roc%36>=18) kZ=-TMath::Abs(kZ);
136 if (TMath::Abs(kZ)<0.15){
137 kZ = (roc%36<18) ? 0.15:-0.15;
145 Double_t kZZ=TMath::Max(kZ,
fCorrectionRPhi->GetZaxis()->GetXmin()+0.001);
160 Double_t dr =
fC0*dlR +
fC1*dlRPhi;
161 Double_t drphi = -
fC1*dlR +
fC0*dlRPhi;
168 dx[0] = r * TMath::Cos(phi) - x[0];
169 dx[1] = r * TMath::Sin(phi) - x[1];
178 TString opt = option; opt.ToLower();
179 printf(
"%s\t%s\n",GetName(),GetTitle());
180 if (opt.Contains(
"a")) {
static AliTPCcalibDB * Instance()
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
TH3F * fCorrectionR
radial correction
virtual void SetOmegaTauT1T2(Float_t omegaTau, Float_t t1, Float_t t2)
virtual void GetCorrection(const Float_t x[], const Short_t roc, Float_t dx[])
Manager and of geomety classes for set: TPC.
Float_t GetDriftV() const
AliTPCParam * GetParameters() const
virtual void Update(const TTimeStamp &timeStamp)
Double_t fT1
tensor term of wt - T1
TH3F * fCorrectionRPhi
r-phi correction
Double_t fC1
coefficient C1 (compare Jim Thomas's notes for definitions)
void Print(const Option_t *option) const
Double_t fC0
coefficient C0 (compare Jim Thomas's notes for definitions)
virtual ~AliTPCExBEffectiveSector()
Double_t fT2
tensor term of wt - T2
Correct for the rest of ExB effect which are not covered yet by physical models.
TH3F * fCorrectionZ
z correction