]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/AliL3HoughBaseTransformer.cxx
Added virtual function Init for setting the slice, patch and n_eta_seg information...
[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 "AliL3MemHandler.h"
7 #include "AliL3Logging.h"
8 #include "AliL3HoughBaseTransformer.h"
9 #include "AliL3DigitData.h"
10 #include "AliL3Histogram.h"
11
12 //_____________________________________________________________
13 // AliL3HoughBaseTransformer
14 //
15 // The base class for implementations of Hough Transform on ALICE TPC data.
16 //
17 // This is an abstract class, and is only meant to provide the interface
18 // to the different implementations.
19
20 ClassImp(AliL3HoughBaseTransformer)
21
22 AliL3HoughBaseTransformer::AliL3HoughBaseTransformer()
23 {
24   //Default constructor
25   fDigitRowData = 0;
26
27   fSlice = 0;
28   fPatch = 0;
29   fNEtaSegments =0;
30   fEtaMin = 0;
31   fEtaMax = 0;
32   fLowerThreshold = 0;
33   fUpperThreshold = 0;
34 }
35
36 AliL3HoughBaseTransformer::AliL3HoughBaseTransformer(Int_t slice,Int_t patch,Int_t n_eta_segments)
37 {
38   fDigitRowData = 0;
39   Init(slice,patch,n_eta_segments);
40 }
41
42 AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
43 {
44 }
45
46 void AliL3HoughBaseTransformer::Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100)
47 {
48   fSlice = slice;
49   fPatch = patch;
50   fNEtaSegments = n_eta_segments;
51   fEtaMin = 0;
52   fEtaMax = fSlice < 18 ? 0.9 : -0.9;
53   fLowerThreshold = 3;
54   fUpperThreshold = 1023;
55 }