]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDclusterCorrection.h
added stuff
[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 /* $Id$ */
7
8 #include "TObject.h"
9
10 ////////////////////////////////////////////////////////////////////////////
11 //                                                                        //
12 //  Used for correcting the cluster positions in some way or the other    //
13 //                                                                        //
14 ////////////////////////////////////////////////////////////////////////////
15
16 class AliTRDclusterCorrection : public TObject {
17
18  public:  
19
20   AliTRDclusterCorrection();
21   virtual ~AliTRDclusterCorrection();
22
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;
27
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; }
30
31   static  AliTRDclusterCorrection *GetCorrection();
32
33  protected:
34
35           Float_t  fCorrections[6][30][20][2];   //  Correction values
36           Float_t  fOffsetAngle;                 //  Offset angle
37                                  
38   ClassDef(AliTRDclusterCorrection,1)            //  ClusterCorrection for the TRD
39  
40 };
41
42 #endif