Fixes for wrong use of const causing PW.CAST_TO_QUALIFIED_TYPE defect in Coverity
[u/mrichter/AliRoot.git] / TPC / Base / 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;
7f00a31e 17class THnBase;
40787a37 18
19class AliTPCExBEffectiveSector : public AliTPCCorrection {
20public:
21 AliTPCExBEffectiveSector();
22 virtual ~AliTPCExBEffectiveSector();
23 // initialization and update functions
24 virtual void Init();
25 virtual void Update(const TTimeStamp &timeStamp);
26 // common setters and getters for ExB
27 virtual void SetOmegaTauT1T2(Float_t omegaTau,Float_t t1,Float_t t2) {
28 fT1=t1; fT2=t2;
29 const Float_t wt1=t1*omegaTau; fC1=wt1/(1.+wt1*wt1);
30 const Float_t wt2=t2*omegaTau; fC0=1/(1.+wt2*wt2);
31 };
32 Float_t GetC1() const {return fC1;}
33 Float_t GetC0() const {return fC0;}
34 void Print(const Option_t* option) const;
40787a37 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