Added virtual function Init for setting the slice, patch and n_eta_seg information...
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughBaseTransformer.cxx
index dc7fd05e11ad4859f61c7fa0d7c7581b870f84a0..0321e062b047ced72dca78d49fbe3d039796ce91 100644 (file)
@@ -6,7 +6,6 @@
 #include "AliL3MemHandler.h"
 #include "AliL3Logging.h"
 #include "AliL3HoughBaseTransformer.h"
 #include "AliL3MemHandler.h"
 #include "AliL3Logging.h"
 #include "AliL3HoughBaseTransformer.h"
-#include "AliL3Defs.h"
 #include "AliL3DigitData.h"
 #include "AliL3Histogram.h"
 
 #include "AliL3DigitData.h"
 #include "AliL3Histogram.h"
 
@@ -24,20 +23,33 @@ AliL3HoughBaseTransformer::AliL3HoughBaseTransformer()
 {
   //Default constructor
   fDigitRowData = 0;
 {
   //Default constructor
   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)
 {
 }
 
 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;
-  fThreshold = 0;
   fDigitRowData = 0;
   fDigitRowData = 0;
+  Init(slice,patch,n_eta_segments);
 }
 
 AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
 {
 }
 
 AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
 {
+}
 
 
+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;
 }
 }