// AliTPCExBEffectiveSector class ...
[u/mrichter/AliRoot.git] / TPC / AliTPCExBEffectiveSector.h
CommitLineData
40787a37 1#ifndef ALITPCEXBEFFECTIVESECTOR_H
2#define ALITPCEXBEFFECTIVESECTOR_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// AliTPCExBEffectiveSector class //
10// date: 02/05/2010 //
11// Authors: Maarian Ivanov, Jim Thomas, Magnus Mager, Stefan Rossegger //
12////////////////////////////////////////////////////////////////////////////
13
14#include "AliTPCCorrection.h"
15class TH3F;
16class THnSparse;
17
18class AliTPCExBEffectiveSector : public AliTPCCorrection {
19public:
20 AliTPCExBEffectiveSector();
21 virtual ~AliTPCExBEffectiveSector();
22 // initialization and update functions
23 virtual void Init();
24 virtual void Update(const TTimeStamp &timeStamp);
25 // common setters and getters for ExB
26 virtual void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2) {
27 fT1=t1; fT2=t2;
28 const Float_t wt1=t1*omegaTau; fC1=wt1/(1.+wt1*wt1);
29 const Float_t wt2=t2*omegaTau; fC0=1/(1.+wt2*wt2);
30 };
31 Float_t GetC1() const {return fC1;}
32 Float_t GetC0() const {return fC0;}
33 void Print(const Option_t* option) const;
34 static void MakeResidualMap(THnSparse * hisInput, const char *sname);
35public:
36 virtual void GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]);
37public:
38 Double_t fC0; // coefficient C0 (compare Jim Thomas's notes for definitions)
39 Double_t fC1; // coefficient C1 (compare Jim Thomas's notes for definitions)
40 TH3F *fCorrectionR; // radial correction
41 TH3F *fCorrectionRPhi; // r-phi correction
42 TH3F *fCorrectionZ; // z correction
43private:
44 AliTPCExBEffectiveSector(const AliTPCExBEffectiveSector&);
45 AliTPCExBEffectiveSector &operator=(const AliTPCExBEffectiveSector&);
46 ClassDef(AliTPCExBEffectiveSector,2);
47};
48
49#endif