]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added virtual function Init for setting the slice, patch and n_eta_seg information...
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 11:10:28 +0000 (11:10 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 11:10:28 +0000 (11:10 +0000)
HLT/hough/AliL3HoughBaseTransformer.cxx
HLT/hough/AliL3HoughBaseTransformer.h

index d67deec35105f5817f9b7d6dea3a2c6d350dbef6..0321e062b047ced72dca78d49fbe3d039796ce91 100644 (file)
@@ -23,9 +23,27 @@ AliL3HoughBaseTransformer::AliL3HoughBaseTransformer()
 {
   //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)
+{
+  fDigitRowData = 0;
+  Init(slice,patch,n_eta_segments);
+}
+
+AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
+{
+}
+
+void AliL3HoughBaseTransformer::Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100)
 {
   fSlice = slice;
   fPatch = patch;
@@ -34,10 +52,4 @@ AliL3HoughBaseTransformer::AliL3HoughBaseTransformer(Int_t slice,Int_t patch,Int
   fEtaMax = fSlice < 18 ? 0.9 : -0.9;
   fLowerThreshold = 3;
   fUpperThreshold = 1023;
-  fDigitRowData = 0;
-}
-
-AliL3HoughBaseTransformer::~AliL3HoughBaseTransformer()
-{
-
 }
index 7645574bdccc281c8e7bec3c3f80b9552c5ea2bd..64d0913479d816e7ce5799fbe6360f7016cd478a 100644 (file)
@@ -37,24 +37,29 @@ class AliL3HoughBaseTransformer {
   //Getters
   Int_t GetSlice() {return fSlice;}
   Int_t GetPatch() {return fPatch;}
-  Int_t GetNEtaSegments() {return fNEtaSegments;}
+  inline Int_t GetNEtaSegments() {return fNEtaSegments;}
   Int_t GetLowerThreshold() {return fLowerThreshold;}
   Int_t GetUpperThreshold() {return fUpperThreshold;}
-  Double_t GetEtaMin() {return fEtaMin;}
-  Double_t GetEtaMax() {return fEtaMax;}
+  inline Double_t GetEtaMin() {return fEtaMin;}
+  inline Double_t GetEtaMax() {return fEtaMax;}
   
   AliL3DigitRowData *GetDataPointer() {return fDigitRowData;}
  
   virtual Int_t GetEtaIndex(Double_t eta) = 0;
   virtual AliL3Histogram *GetHistogram(Int_t eta_index) = 0;
-  
+  virtual Double_t GetEta(Int_t eta_index) = 0;
+
   //setters
+  virtual void Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100);
   void SetLowerThreshold(Int_t i) {fLowerThreshold = i;}
   void SetUpperThreshold(Int_t i) {fUpperThreshold = i;}
 
+  virtual void Print(){};
+
   ClassDef(AliL3HoughBaseTransformer,1) //Hough transformation base class
 
 };
 
 
 #endif
+