Added new base class
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Mar 2001 14:58:31 +0000 (14:58 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 30 Mar 2001 14:58:31 +0000 (14:58 +0000)
HLT/hough/AliL3Hough.cxx [new file with mode: 0644]
HLT/hough/AliL3Hough.h [new file with mode: 0644]

diff --git a/HLT/hough/AliL3Hough.cxx b/HLT/hough/AliL3Hough.cxx
new file mode 100644 (file)
index 0000000..6bdb419
--- /dev/null
@@ -0,0 +1,64 @@
+#include <string.h>
+#include <TH2.h>
+
+#include "AliL3Hough.h"
+#include "AliL3HoughTransformer.h"
+#include "AliL3HoughMaxFinder.h"
+
+ClassImp(AliL3Hough)
+
+AliL3Hough::AliL3Hough()
+{
+
+
+
+}
+
+
+AliL3Hough::AliL3Hough(Char_t *rootfile,TH2F *hist)
+{
+  
+  fParamSpace = hist;
+  strcpy(fInputFile,rootfile);
+  
+}
+
+AliL3Hough::AliL3Hough(Char_t *rootfile,Int_t xbin,Double_t *xrange,Int_t ybin,Double_t *yrange)
+{
+
+  fParamSpace = new TH2F("fParamSpace","Parameter space",xbin,xrange[0],xrange[1],ybin,yrange[0],yrange[1]);
+  strcpy(fInputFile,rootfile);
+}
+
+
+AliL3Hough::~AliL3Hough()
+{
+  
+  if(fHoughTransformer)
+    delete fHoughTransformer;
+}
+
+
+
+void AliL3Hough::ProcessSlice(Int_t slice)
+{
+  
+
+}
+
+void AliL3Hough::ProcessPatch(Int_t patch)
+{
+    
+
+}
+
+void AliL3Hough::ProcessEtaSlice(Int_t patch,Double_t *eta)
+{
+  
+  fHoughTransformer = new AliL3HoughTransformer(2,patch,eta);
+  fHoughTransformer->GetPixels(fInputFile);
+  fParamSpace->Reset();
+  fHoughTransformer->InitTemplates(fParamSpace);
+  fHoughTransformer->Transform2Circle(fParamSpace,0);
+  
+}
diff --git a/HLT/hough/AliL3Hough.h b/HLT/hough/AliL3Hough.h
new file mode 100644 (file)
index 0000000..f70bdac
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef ALIL3_HOUGH
+#define ALIL3_HOUGH
+
+#include "AliL3RootTypes.h"
+
+class AliL3HoughMaxFinder;
+class AliL3HoughTransformer;
+class TH2F;
+
+class AliL3Hough : public TObject {
+  
+ private:
+
+  TH2F *fParamSpace;  //!
+  Char_t fInputFile[100];
+  
+  AliL3HoughTransformer *fHoughTransformer;
+  AliL3HoughMaxFinder *fPeakFinder;
+
+
+ public:
+
+  AliL3Hough(); 
+  AliL3Hough(Char_t *rootfile,TH2F *hist);
+  AliL3Hough(Char_t *rootfile,Int_t xbin,Double_t *xrange,Int_t ybin,Double_t *yrange);
+  virtual ~AliL3Hough();
+  
+  void ProcessSlice(Int_t slice);
+  void ProcessPatch(Int_t patch);
+  void ProcessEtaSlice(Int_t patch,Double_t *eta);
+
+  ClassDef(AliL3Hough,1)
+
+};
+
+#endif