X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=HLT%2Fhough%2FAliL3HoughBaseTransformer.cxx;h=0321e062b047ced72dca78d49fbe3d039796ce91;hp=0e804a2c35e2b8cf3e07307861a10a6dbf1d4ad8;hb=65ca0c00ab59860d73903983c3f235dc891672c1;hpb=c52cf5d8e51982f36f3a56ab0cc273ba2519c197 diff --git a/HLT/hough/AliL3HoughBaseTransformer.cxx b/HLT/hough/AliL3HoughBaseTransformer.cxx index 0e804a2c35e..0321e062b04 100644 --- a/HLT/hough/AliL3HoughBaseTransformer.cxx +++ b/HLT/hough/AliL3HoughBaseTransformer.cxx @@ -6,8 +6,6 @@ #include "AliL3MemHandler.h" #include "AliL3Logging.h" #include "AliL3HoughBaseTransformer.h" -#include "AliL3Defs.h" -#include "AliL3Transform.h" #include "AliL3DigitData.h" #include "AliL3Histogram.h" @@ -15,32 +13,43 @@ // AliL3HoughBaseTransformer // // The base class for implementations of Hough Transform on ALICE TPC data. +// +// This is an abstract class, and is only meant to provide the interface +// to the different implementations. ClassImp(AliL3HoughBaseTransformer) AliL3HoughBaseTransformer::AliL3HoughBaseTransformer() { //Default constructor - fTransform = 0; fDigitRowData = 0; - + + fSlice = 0; + fPatch = 0; + fNEtaSegments =0; + fEtaMin = 0; + fEtaMax = 0; + fLowerThreshold = 0; + fUpperThreshold = 0; } AliL3HoughBaseTransformer::AliL3HoughBaseTransformer(Int_t slice,Int_t patch,Int_t n_eta_segments) { - fSlice = slice; - fPatch = patch; - fNEtaSegments = n_eta_segments; - fEtaMin = 0; - fEtaMax = fSlice < 18 ? 0.9 : -0.9; - fTransform = new AliL3Transform(); - fThreshold = 0; - fDigitRowData=0; + fDigitRowData = 0; + Init(slice,patch,n_eta_segments); } AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer() { - if(fTransform) - delete fTransform; } +void AliL3HoughBaseTransformer::Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100) +{ + fSlice = slice; + fPatch = patch; + fNEtaSegments = n_eta_segments; + fEtaMin = 0; + fEtaMax = fSlice < 18 ? 0.9 : -0.9; + fLowerThreshold = 3; + fUpperThreshold = 1023; +}