]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/Base/AliTPCSpaceCharge.h
Merge branch 'TPCdev' of https://git.cern.ch/reps/AliRoot into TPCdev
[u/mrichter/AliRoot.git] / TPC / Base / AliTPCSpaceCharge.h
CommitLineData
c9cbd2f2 1#ifndef ALITPCSPACECHARGE_H
2#define ALITPCSPACECHARGE_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7////////////////////////////////////////////////////////////////////////////
c9cbd2f2 8// AliTPCSpaceCharge class //
c9cbd2f2 9// Authors: Jim Thomas, Stefan Rossegger //
10////////////////////////////////////////////////////////////////////////////
11
12#include "AliTPCCorrection.h"
13
14
276c23d3 15class TH2;
16
c9cbd2f2 17class AliTPCSpaceCharge : public AliTPCCorrection {
18public:
19 AliTPCSpaceCharge();
20 virtual ~AliTPCSpaceCharge();
21
22 // initialization and update functions
23 virtual void Init();
24 virtual void Update(const TTimeStamp &timeStamp);
276c23d3 25 void SetInputSpaceCharge(TH2 * hisSpaceCharge){fSpaceChargeHistogram = hisSpaceCharge;} // MI add
26 const TH2 * GetInputSpaceCharge(){return fSpaceChargeHistogram;} // MI add
c9cbd2f2 27
28
29 // common setters and getters for tangled ExB effect
30 virtual void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2) {
31 fT1=t1; fT2=t2;
32 const Double_t wt0=t2*omegaTau; fC0=1./(1.+wt0*wt0);
33 const Double_t wt1=t1*omegaTau; fC1=wt1/(1.+wt1*wt1);
34 };
35 void SetC0C1(Float_t c0,Float_t c1) {fC0=c0;fC1=c1;} // CAUTION: USE WITH CARE
36 Float_t GetC0() const {return fC0;}
37 Float_t GetC1() const {return fC1;}
38
39 // setters and getters for conical
40 void SetCorrectionFactor(Float_t correctionFactor) {fCorrectionFactor=correctionFactor;}
41 Float_t GetCorrectionFactor() const {return fCorrectionFactor;}
42
43 void InitSpaceChargeDistortion();
44
45 virtual void Print(const Option_t* option="") const;
46
47protected:
48 virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
49
50private:
51 Float_t fC0; // coefficient C0 (compare Jim Thomas's notes for definitions)
52 Float_t fC1; // coefficient C1 (compare Jim Thomas's notes for definitions)
53 Float_t fCorrectionFactor; // Space Charge Correction factor in comparison to initialized
54 // look up table which was created for M_mb = 900 and IR = 3000
55 // compare Internal Note Nr: ???
56
276c23d3 57 TH2 * fSpaceChargeHistogram; // Histogram with the input space charge histogram - used as an optional input
c9cbd2f2 58 Bool_t fInitLookUp; // flag to check it the Look Up table was created
59
60 Double_t fLookUpErOverEz[kNZ][kNR]; // Array to store electric field integral (int Er/Ez)
61 Double_t fLookUpDeltaEz[kNZ][kNR]; // Array to store electric field integral (int Delta Ez)
c9cbd2f2 62 // basic numbers for the poisson relaxation //can be set individually in each class
63 enum {kRows =257}; // grid size in r direction used in the poisson relaxation // ( 2**n + 1 ) eg. 65, 129, 257 etc.
64 enum {kColumns=129}; // grid size in z direction used in the poisson relaxation // ( 2**m + 1 ) eg. 65, 129, 257 etc.
65 enum {kIterations=100}; // Number of iterations within the poisson relaxation
66
67 ClassDef(AliTPCSpaceCharge,0);
68};
69
70#endif