]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDclusterCorrection.h
Using AliLog (F.Carminati)
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterCorrection.h
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                               */
5
6
7 #include "TObject.h"
8
9 ////////////////////////////////////////////////////////////////////////////
10 //                                                                        //
11 //  Used for correcting the cluster positions in some way or the other    //
12 //                                                                        //
13 ////////////////////////////////////////////////////////////////////////////
14
15 class AliTRDclusterCorrection : public TObject {
16
17  public:  
18
19   AliTRDclusterCorrection();
20   Float_t GetCorrection(Int_t plane, Int_t timebin, Float_t angle) const;
21   Float_t GetSigma(Int_t plane, Int_t timebin, Float_t angle) const;
22   Float_t GetOffsetAngle() const { return fOffsetAngle; }
23   void    SetOffsetAngle(Float_t angle){fOffsetAngle=angle;}
24   void    SetCorrection(Int_t plane,Int_t timebin, Float_t angle, Float_t value,Float_t sigma);
25   Float_t GetAngle(Int_t i){return (i-10.)/10.+fOffsetAngle;}
26   static  AliTRDclusterCorrection * GetCorrection();
27
28  protected:
29
30   Float_t  fCorrections[6][30][20][2]; // Correction values
31   Float_t  fOffsetAngle;               // Offset angle
32                                  
33   ClassDef(AliTRDclusterCorrection,1)  // ClusterCorrection for the TRD
34  
35 };
36
37 #endif