]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDataCompressorHelper.h
- configure adapted to the new directory structure of the HOMER module in PubSub
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDataCompressorHelper.h
1 // @(#) $Id$
2 // Original: AliL3DataCompressorHelper.h,v 1.4 2004/06/15 10:26:57 hristov Exp $
3
4 #ifndef AliHLTTPC_DataCompressorHelper
5 #define AliHLTTPC_DataCompressorHelper
6
7 #include "AliHLTTPCRootTypes.h"
8
9 class AliHLTTPCDataCompressorHelper {
10   
11  public:
12   virtual ~AliHLTTPCDataCompressorHelper() {}
13
14   static void SetBitNumbers(Int_t pad,Int_t time,Int_t charge,Int_t shape);
15   static void SetTransverseResolutions(Float_t res1,Float_t res2,Float_t res3,Float_t width=0.005);
16   static void SetLongitudinalResolutions(Float_t res1,Float_t res2,Float_t res3,Float_t width=0.005);
17   static void SetRemainingBitNumbers(Int_t pad,Int_t time,Int_t shape);
18   static Int_t GetNPadBits() {return fgNumPadBits;}
19   static Int_t GetNTimeBits() {return fgNumTimeBits;}
20   static Int_t GetNChargeBits() {return fgNumChargeBits;}
21   static Int_t GetNShapeBits() {return fgNumShapeBits;}
22   static Float_t GetXYWidthStep() {return fgXYWidthStep;}
23   static Float_t GetZWidthStep() {return fgZWidthStep;}
24   static Int_t GetClusterCharge() {return fgClusterCharge;}
25   static Float_t GetXYResidualStep(Int_t row);
26   static Float_t GetZResidualStep(Int_t row);
27   static Int_t GetNPadBitsRemaining() {return fgNumPadBitsRemaining;}
28   static Int_t GetNTimeBitsRemaining() {return fgNumTimeBitsRemaining;}
29   static Int_t GetNShapeBitsRemaining() {return fgNumShapeBitsRemaining;}
30   static Float_t GetPadPrecisionFactor();
31   static Float_t GetTimePrecisionFactor();
32
33   //taken from TMath
34   static Int_t Nint(Double_t x); 
35   static Int_t Abs(Int_t d) { return (d > 0) ? d : -d; }
36   static Double_t Abs(Double_t d) { return (d > 0) ? d : -d; }
37
38  private:
39   static Int_t fgNumPadBits; // Number of pad bits
40   static Int_t fgNumTimeBits; // Number of time bits
41   static Int_t fgNumChargeBits; // Number of charge bits
42   static Int_t fgNumShapeBits; // Number of shape bits
43   static Int_t fgNumPadBitsRemaining; // Number of remaining pad bits
44   static Int_t fgNumTimeBitsRemaining; // Number of remaining time bits
45   static Int_t fgNumShapeBitsRemaining; // Number of remaining shape bits
46
47   static Float_t fgXYResidualStep1; // XY resbual at step 1
48   static Float_t fgXYResidualStep2; // XY residual at step 2
49   static Float_t fgXYResidualStep3; // XY resudual at step 3
50   static Float_t fgZResidualStep1; // Z residual at step 1
51   static Float_t fgZResidualStep2; // Z resudual at step 2
52   static Float_t fgZResidualStep3; // Z resudual at step 3
53   static Float_t fgXYWidthStep; // Width of XY step
54   static Float_t fgZWidthStep;  // Width of Z step
55   static Int_t fgClusterCharge; // Cluster charge
56
57
58   ClassDef(AliHLTTPCDataCompressorHelper,1) 
59
60 };
61
62 #endif