]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/Ref/AliHLTTPCHoughBaseTransformer.cxx
Effective c++ corrections (T.Pocheptsov)
[u/mrichter/AliRoot.git] / HLT / TPCLib / Ref / AliHLTTPCHoughBaseTransformer.cxx
1 // @(#) $Id$
2
3 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
4 //*-- Copyright &copy ALICE HLT Group
5 //-------------------------------------------------------------------------
6 //          Implementation of the AliHLTTPCHoughBaseTransformer class
7 //  that is the base class for AliHLTTPCHoughTransformer,
8 //  AliHLTTPCHoughTransformerVhdl, AliHLTTPCHoughTransformerGlobal,
9 //  AliHLTTPCHoughTransformerRow    
10 //-------------------------------------------------------------------------
11
12 #include "AliHLTTPCStandardIncludes.h"
13
14 #include "AliHLTTPCHoughBaseTransformer.h"
15
16 /** \class AliHLTTPCHoughBaseTransformer
17 <pre>
18 //_____________________________________________________________
19 // AliHLTTPCHoughBaseTransformer
20 //
21 // The base class for implementations of Hough Transform on ALICE TPC data.
22 //
23 // This is an abstract class, and is only meant to provide the interface
24 // to the different implementations.
25 //
26 </pre>
27 */
28
29 ClassImp(AliHLTTPCHoughBaseTransformer)
30
31 AliHLTTPCHoughBaseTransformer::AliHLTTPCHoughBaseTransformer()
32 {
33   //Default constructor
34   fDigitRowData = 0;
35
36   fSlice = 0;
37   fPatch = 0;
38   fLastPatch = -1;
39   fLastTransformer = 0;
40   fNEtaSegments =0;
41   fEtaMin = 0;
42   fEtaMax = 0;
43   fLowerThreshold = 0;
44   fUpperThreshold = 1023;
45   fZVertex = 0.0;
46 }
47
48 AliHLTTPCHoughBaseTransformer::AliHLTTPCHoughBaseTransformer(Int_t slice,Int_t patch,Int_t netasegments,Float_t zvertex)
49 {
50   //normal ctor
51   fDigitRowData = 0;
52
53   fSlice = 0;
54   fPatch = 0;
55   fLastPatch = -1;
56   fNEtaSegments =0;
57   fEtaMin = 0;
58   fEtaMax = 0;
59   fLowerThreshold = 3;
60   fUpperThreshold = 1023;
61   fZVertex = zvertex;
62
63   Init(slice,patch,netasegments);
64 }
65
66 AliHLTTPCHoughBaseTransformer::~AliHLTTPCHoughBaseTransformer()
67 {
68   //dtor
69 }
70
71 void AliHLTTPCHoughBaseTransformer::Init(Int_t slice,Int_t patch,Int_t netasegments,Int_t /*n_seqs*/)
72 {
73   //Transformer init
74   fSlice = slice;
75   fPatch = patch;
76   fLastPatch = -1;
77   fNEtaSegments = netasegments;
78   fEtaMin = 0;
79   fEtaMax = fSlice < 18 ? 1. : -1.;
80 }