1 #ifndef ALITRDCLUSTERCORRECTION_H
2 #define ALITRDCLUSTERCORRECTION_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
10 ////////////////////////////////////////////////////////////////////////////
12 // Used for correcting the cluster positions in some way or the other //
14 ////////////////////////////////////////////////////////////////////////////
16 class AliTRDclusterCorrection : public TObject {
20 AliTRDclusterCorrection();
21 virtual ~AliTRDclusterCorrection();
23 Float_t GetCorrection(Int_t plane, Int_t timebin, Float_t angle) const;
24 Float_t GetOffsetAngle() const { return fOffsetAngle; }
25 Float_t GetAngle(Int_t i) { return (i - 10.0) / 10.0 + fOffsetAngle; }
26 Float_t GetSigma(Int_t plane, Int_t timebin, Float_t angle) const;
28 void SetCorrection(Int_t plane,Int_t timebin, Float_t angle, Float_t value,Float_t sigma);
29 void SetOffsetAngle(Float_t angle) { fOffsetAngle = angle; }
31 static AliTRDclusterCorrection *GetCorrection();
35 Float_t fCorrections[6][30][20][2]; // Correction values
36 Float_t fOffsetAngle; // Offset angle
38 ClassDef(AliTRDclusterCorrection,1) // ClusterCorrection for the TRD