Fixes in order to avoid compilation problems.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2005 14:01:53 +0000 (14:01 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Sep 2005 14:01:53 +0000 (14:01 +0000)
HLT/MUON/src/AliRoot/ClusterFinder.hpp [new file with mode: 0644]
HLT/MUON/src/AliRoot/ClusterFinderInterface.hpp
HLT/MUON/src/AliRoot/Tracker.hpp
HLT/libAliL3MUON.pkg

diff --git a/HLT/MUON/src/AliRoot/ClusterFinder.hpp b/HLT/MUON/src/AliRoot/ClusterFinder.hpp
new file mode 100644 (file)
index 0000000..3087c16
--- /dev/null
@@ -0,0 +1,99 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Author: Artur Szostak
+// Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
+//
+////////////////////////////////////////////////////////////////////////////////
+
+#ifndef dHLT_CLUSTERING_CLUSTER_FINDER_HPP
+#define dHLT_CLUSTERING_CLUSTER_FINDER_HPP
+
+#ifndef __CINT__
+#include "BasicTypes.hpp"
+#include "Cluster.hpp"
+#include "ADCStream.hpp"
+#include "Utils.hpp"
+#endif // __CINT__
+
+namespace AliMUONHLT
+{
+       class ClusterFinder {
+         public:
+
+         ClusterFinder() :fInterface(this)
+           {
+               fCallback = NULL;
+           };
+
+           /* This is the starting point of the cluster finding algorithm.
+              Deriving cluster finders should implement all processing in this method
+              to find clusters in the specified ADC stream. When all clusters are found
+              the FoundClusters method should be called to indicate that processing is
+              complete. If no clusters could be found then call NoClustersFound instead.
+            */
+           virtual void FindClusters(const ADCStream * stream) = 0;
+
+           /* After a call to FoundClusters this method will be called to retreive the
+              cluster points. The clusters array should be filled consecutively with 
+              the points that were found. However no more than 'arraysize' number of 
+              points should be written to the clusters array.
+              This method should also return the actual number of cluster points written
+              to the array.
+              If the number of clusters written is less that the number specified in the
+              'numberfound' parameter of the FoundClusters method, then this method will
+              be called again by the framework. Thus on successive calls to this method,
+              the cluster finder must resume writing clusters at the point it stopped at
+              in the previous call to FillClusterData.
+            */
+           virtual UInt_t FillClusterData(Point * clusters, UInt_t arraysize) = 0;
+
+           /* This is called when the cluster finder should be reset to an initial state.
+              All extra internal memory allocated during processing should be released.
+            */
+           virtual void Reset() = 0;
+
+           /* Sets the ClusterFinderCallback callback interface.
+            */
+           inline void SetCallback(ClusterFinderCallback * callback) {
+               this->fCallback = callback;
+           };
+
+           ClusterFinderInterface* Interface()
+           {
+               return &fInterface;
+           };
+
+         private:
+
+           ClusterFinderInterface fInterface;
+           ClusterFinderCallback * fCallback;
+       };
+
+void ClusterFinderInterface::FindClusters(const ADCStream * stream)
+{
+       fClusterFinder->FindClusters(stream);
+};
+
+UInt_t ClusterFinderInterface::FillClusterData(Point * clusters, UInt_t arraysize)
+{
+       return fClusterFinder->FillClusterData(clusters,arraysize);
+};
+
+void ClusterFinderInterface::Reset()
+{
+        fClusterFinder->Reset();
+};
+
+void ClusterFinderInterface::SetCallback(ClusterFinderCallback* callback)
+{
+       fClusterFinder->SetCallback(callback);
+};
+
+void MicrodHLT::SetClusterFinder(ClusterFinder* clusterfinder)
+{
+       SetClusterFinder(clusterfinder->Interface());
+};
+
+}                              // AliMUONHLT
+
+#endif                         // dHLT_CLUSTERING_CLUSTER_FINDER_HPP
index c3d8084ac274e11c24b89652012ce120ec9ecd83..d1638dd2bbb1bd66fcad53a0033e45b364820451 100644 (file)
@@ -33,10 +33,10 @@ public:
                return fClusterFinder;
        };
        
-       void FindClusters(const ADCStream* stream);
-       UInt_t FillClusterData(Point* clusters, UInt_t arraysize);
-       void Reset();
-       void SetCallback(ClusterFinderCallback* callback);
+        void FindClusters(const ADCStream* stream);
+       UInt_t FillClusterData(Point* clusters, UInt_t arraysize);
+       void Reset();
+        void SetCallback(ClusterFinderCallback* callback);
 
 private:
 
index 71cff663a43aad174c93128dfb120d25833ff1ac..151ed9bf5ee21b34d8d401dd1cbd12d4a3b6668b 100644 (file)
@@ -50,7 +50,7 @@ public:
        /* Returns the TrackerInterface object to this tracker.
           This is required by the MicrodHLT object.
         */
-       TrackerInterface* Interface() const
+       TrackerInterface* Interface()
        {
                return &fInterface;
        };
index f4e1196e73515a55cb9c1c77b2b2c0caa154b2d7..43ffa5e21f96be9b976c80316b2a4d8f483b072f 100644 (file)
@@ -1,5 +1,7 @@
 #-*- Mode: Makefile -*-
 
+include HLT/hlt.conf
+
 SRCS += MUON/src/AliRoot/Region.cxx \
 MUON/src/AliRoot/Point.cxx \
 MUON/src/AliRoot/TriggerRecord.cxx \
@@ -16,7 +18,9 @@ MUON/src/AliRoot/MicrodHLT.cxx
 HDRS:= $(SRCS:.cxx=.hpp) \
 MUON/src/AliRoot/TrackerInterface.hpp \
 MUON/src/AliRoot/ClusterFinderInterface.hpp \
-MUON/src/AliRoot/AliHLTMUONTracker.h
+MUON/src/AliRoot/AliHLTMUONTracker.h \
+MUON/src/AliRoot/Tracker.hpp \
+MUON/src/AliRoot/ClusterFinder.hpp \
 
 SRCS += MUON/src/Utils.cxx \
 MUON/src/Error.cxx \
@@ -39,6 +43,6 @@ PACKCXXFLAGS := ${HLTCXXFLAGS}
 PACKCFLAGS   := ${HLTCLFAGS}
 PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
 
-EINCLUDE += HLT/MUON/src
+EINCLUDE += HLT/src HLT/hough HLT/comp HLT/misc HLT/ITS HLT/MUON/src TPC ITS MUON STEER RAW
 
 SUBDIR:=MUON/src