From 65ca0c00ab59860d73903983c3f235dc891672c1 Mon Sep 17 00:00:00 2001 From: loizides Date: Thu, 11 Jul 2002 11:10:28 +0000 Subject: [PATCH] Added virtual function Init for setting the slice, patch and n_eta_seg information. Also have GetEta function which calculates eta according to slice info (minus sign) and Print function for debugging to get the parameters used by the VHDL Transformer. --- HLT/hough/AliL3HoughBaseTransformer.cxx | 24 ++++++++++++++++++------ HLT/hough/AliL3HoughBaseTransformer.h | 13 +++++++++---- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/HLT/hough/AliL3HoughBaseTransformer.cxx b/HLT/hough/AliL3HoughBaseTransformer.cxx index d67deec3510..0321e062b04 100644 --- a/HLT/hough/AliL3HoughBaseTransformer.cxx +++ b/HLT/hough/AliL3HoughBaseTransformer.cxx @@ -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() -{ - } diff --git a/HLT/hough/AliL3HoughBaseTransformer.h b/HLT/hough/AliL3HoughBaseTransformer.h index 7645574bdcc..64d0913479d 100644 --- a/HLT/hough/AliL3HoughBaseTransformer.h +++ b/HLT/hough/AliL3HoughBaseTransformer.h @@ -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 + -- 2.31.1