]>
Commit | Line | Data |
---|---|---|
0116859c | 1 | #ifndef ALI_TPC_EXB_B_SHAPE_H |
2 | #define ALI_TPC_EXB_B_SHAPE_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | //////////////////////////////////////////////////////////////////////////// | |
8 | // // | |
9 | // AliExBBShape class // | |
10 | // The class calculates the space point distortions due to the B field // | |
11 | // shape imperfections using a second order technique based on integrals // | |
12 | // over Bz (e.g. int By/Bz) obtained via the AliMagF class // | |
13 | // The class allows "effective Omega Tau" corrections. // | |
14 | // // | |
15 | // date: 27/04/2010 // | |
16 | // Authors: Magnus Mager, Jim Thomas, Stefan Rossegger // | |
17 | //////////////////////////////////////////////////////////////////////////// | |
18 | ||
19 | #include "AliTPCCorrection.h" | |
20 | ||
21 | class AliMagF; | |
22 | ||
23 | class AliTPCExBBShape : public AliTPCCorrection { | |
24 | public: | |
25 | AliTPCExBBShape(); | |
26 | virtual ~AliTPCExBBShape(); | |
27 | ||
e527a1b9 | 28 | // initialization and update functions |
29 | virtual void Init(); | |
30 | virtual void Update(const TTimeStamp &timeStamp); | |
31 | ||
0116859c | 32 | // common setters and getters for ExB |
33 | virtual void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2) { | |
534fd34a | 34 | fT1=t1; fT2=t2; |
0116859c | 35 | const Float_t wt1=t1*omegaTau; |
36 | fC1=wt1/(1.+wt1*wt1); | |
37 | const Float_t wt2=t2*omegaTau; | |
38 | fC2=wt2*wt2/(1.+wt2*wt2); | |
39 | }; | |
40 | void SetC1C2(Float_t c1,Float_t c2) {fC1=c1;fC2=c2;} // CAUTION: USE WITH CARE | |
41 | Float_t GetC1() const {return fC1;} | |
42 | Float_t GetC2() const {return fC2;} | |
43 | ||
44 | // setters and getters for the magentic field map | |
45 | void SetBField(AliMagF *bField) {fBField=bField;} | |
46 | AliMagF* GetBField() const {return fBField;} | |
47 | ||
48 | virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]); | |
49 | void GetBxAndByOverBz(const Float_t x[],const Short_t roc,Float_t BxByOverBz[]); | |
50 | ||
51 | virtual void Print(Option_t* option="") const; | |
52 | ||
53 | private: | |
54 | Float_t fC1; // coefficient C1 (compare Jim Thomas's notes for definitions) | |
55 | Float_t fC2; // coefficient C2 (compare Jim Thomas's notes for definitions) | |
56 | ||
57 | AliMagF *fBField; | |
58 | ||
59 | AliTPCExBBShape & operator =(const AliTPCExBBShape); | |
60 | AliTPCExBBShape(const AliTPCExBBShape&); //dummy copy contructor | |
61 | ||
534fd34a | 62 | ClassDef(AliTPCExBBShape,2); |
0116859c | 63 | }; |
64 | ||
65 | #endif |