Little changes to make it work with new base class.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 11:12:53 +0000 (11:12 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Jul 2002 11:12:53 +0000 (11:12 +0000)
HLT/hough/AliL3HoughTransformer.cxx
HLT/hough/AliL3HoughTransformer.h

index 43c48ae547009d21cb10c8b3bbbb048e9016bc3e..c13a0c08feecd7ee94b084c5b3374b3026a522d1 100644 (file)
@@ -35,6 +35,8 @@ AliL3HoughTransformer::~AliL3HoughTransformer()
   DeleteHistograms();
 }
 
+//void AliL3HoughTransformer::Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100){}
+
 void AliL3HoughTransformer::DeleteHistograms()
 {
   if(!fParamSpace)
@@ -95,7 +97,6 @@ void AliL3HoughTransformer::Reset()
     fParamSpace[i]->Reset();
 }
 
-
 Int_t AliL3HoughTransformer::GetEtaIndex(Double_t eta)
 {
   //Return the histogram index of the corresponding eta. 
@@ -105,6 +106,23 @@ Int_t AliL3HoughTransformer::GetEtaIndex(Double_t eta)
   return (Int_t)index;
 }
 
+inline AliL3Histogram *AliL3HoughTransformer::GetHistogram(Int_t eta_index)
+{
+  if(!fParamSpace || eta_index >= GetNEtaSegments() || eta_index < 0)
+    return 0;
+  if(!fParamSpace[eta_index])
+    return 0;
+  return fParamSpace[eta_index];
+}
+
+Double_t AliL3HoughTransformer::GetEta(Int_t eta_index)
+{
+  Double_t eta_slice = (GetEtaMax()-GetEtaMin())/GetNEtaSegments();
+  Double_t eta=(Double_t)((eta_index+0.5)*eta_slice);
+  if(GetSlice()>17) eta*=-1;
+  return eta;
+}
+
 void AliL3HoughTransformer::TransformCircle()
 {
   //Transform the input data with a circle HT.
index 9bd33be39432afa6752bb934730d9be2ba77a4e6..1e9787bacec627ddda179d06dab94b24f8746f59 100644 (file)
@@ -28,19 +28,16 @@ class AliL3HoughTransformer : public AliL3HoughBaseTransformer {
 
   Int_t GetEtaIndex(Double_t eta);
   AliL3Histogram *GetHistogram(Int_t eta_index);
-  
+  Double_t GetEta(Int_t eta_index);
 
+  //void Init(Int_t slice=0,Int_t patch=0,Int_t n_eta_segments=100);
+  
   ClassDef(AliL3HoughTransformer,1) //Normal Hough transformation class
 
 };
 
-inline AliL3Histogram *AliL3HoughTransformer::GetHistogram(Int_t eta_index)
-{
-  if(!fParamSpace || eta_index >= GetNEtaSegments() || eta_index < 0)
-    return 0;
-  if(!fParamSpace[eta_index])
-    return 0;
-  return fParamSpace[eta_index];
-}
-
 #endif
+
+
+
+