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