Made a new abstract base class; AliL3HoughBaseTransformer for different implementations
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughBaseTransformer.cxx
... / ...
CommitLineData
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 "AliL3Defs.h"
10#include "AliL3Transform.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
19ClassImp(AliL3HoughBaseTransformer)
20
21AliL3HoughBaseTransformer::AliL3HoughBaseTransformer()
22{
23 //Default constructor
24 fTransform = 0;
25 fDigitRowData = 0;
26
27}
28
29AliL3HoughBaseTransformer::AliL3HoughBaseTransformer(Int_t slice,Int_t patch,Int_t n_eta_segments)
30{
31 fSlice = slice;
32 fPatch = patch;
33 fNEtaSegments = n_eta_segments;
34 fEtaMin = 0;
35 fEtaMax = fSlice < 18 ? 0.9 : -0.9;
36 fTransform = new AliL3Transform();
37 fThreshold = 0;
38 fDigitRowData=0;
39}
40
41AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
42{
43 if(fTransform)
44 delete fTransform;
45}
46