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