]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDclusterCorrection.h
Moved from Reve to Alieve.
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterCorrection.h
CommitLineData
6528d411 1#ifndef ALITRDCLUSTERCORRECTION_H
2#define ALITRDCLUSTERCORRECTION_H
456396b8 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
15ed8ba1 6/* $Id$ */
456396b8 7
8#include "TObject.h"
9
6528d411 10////////////////////////////////////////////////////////////////////////////
11// //
12// Used for correcting the cluster positions in some way or the other //
13// //
14////////////////////////////////////////////////////////////////////////////
15
456396b8 16class AliTRDclusterCorrection : public TObject {
17
18 public:
6528d411 19
456396b8 20 AliTRDclusterCorrection();
15ed8ba1 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();
6528d411 32
456396b8 33 protected:
6528d411 34
15ed8ba1 35 Float_t fCorrections[6][30][20][2]; // Correction values
36 Float_t fOffsetAngle; // Offset angle
456396b8 37
15ed8ba1 38 ClassDef(AliTRDclusterCorrection,1) // ClusterCorrection for the TRD
456396b8 39
40};
41
42#endif