]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliL3HoughBaseTransformer.cxx
Seems to be working properly now.
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughBaseTransformer.cxx
1 //$Id$
2
3 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
4 //*-- Copyright &copy ASV 
5
6 #include "AliL3StandardIncludes.h"
7
8 #include "AliL3Logging.h"
9 #include "AliL3HoughBaseTransformer.h"
10 #include "AliL3MemHandler.h"
11 #include "AliL3DigitData.h"
12 #include "AliL3Histogram.h"
13
14 //_____________________________________________________________
15 // AliL3HoughBaseTransformer
16 //
17 // The base class for implementations of Hough Transform on ALICE TPC data.
18 //
19 // This is an abstract class, and is only meant to provide the interface
20 // to the different implementations.
21
22 ClassImp(AliL3HoughBaseTransformer)
23
24 AliL3HoughBaseTransformer::AliL3HoughBaseTransformer()
25 {
26   //Default constructor
27   fDigitRowData = 0;
28
29   fSlice = 0;
30   fPatch = 0;
31   fNEtaSegments =0;
32   fEtaMin = 0;
33   fEtaMax = 0;
34   fLowerThreshold = 0;
35   fUpperThreshold = 0;
36 }
37
38 AliL3HoughBaseTransformer::AliL3HoughBaseTransformer(Int_t slice,Int_t patch,Int_t n_eta_segments)
39 {
40   fDigitRowData = 0;
41
42   fSlice = 0;
43   fPatch = 0;
44   fNEtaSegments =0;
45   fEtaMin = 0;
46   fEtaMax = 0;
47   fLowerThreshold = 0;
48   fUpperThreshold = 0;
49
50   Init(slice,patch,n_eta_segments);
51 }
52
53 AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
54 {
55 }
56
57 void AliL3HoughBaseTransformer::Init(Int_t slice,Int_t patch,Int_t n_eta_segments)
58 {
59   fSlice = slice;
60   fPatch = patch;
61   fNEtaSegments = n_eta_segments;
62   fEtaMin = 0;
63   fEtaMax = fSlice < 18 ? 0.9 : -0.9;
64   fLowerThreshold = 3;
65   fUpperThreshold = 1023;
66 }