]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSClusterizerComponent.h
removing the HLT autoconf build system, however keep on using that for the
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSClusterizerComponent.h
index 7c2815ba13816cf760dbf517f63e0c68a9d9f395..bacd67eba11ca1777c085a78f27974a204d9b382 100644 (file)
 // or
 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
 
-#include "AliHLTPHOSProcessor.h"
+#include "AliHLTCaloClusterizerComponent.h"
 
-class AliHLTPHOSClusterizer;
-class AliHLTPHOSRcuCellEnergyDataStruct;
-class AliHLTPHOSRecPointDataStruct;
-class AliHLTPHOSRecPointContainerStruct;
-class AliHLTPHOSRecPointListDataStruct;
-class AliHLTPHOSDigitContainerDataStruct;
+#include <vector>
+
+// class AliHLTPHOSClusterizer;
+// class AliHLTPHOSRcuCellEnergyDataStruct;
+// class AliHLTPHOSRecPointDataStruct;
+// class AliHLTPHOSRecPointContainerStruct;
+// class AliHLTPHOSRecPointListDataStruct;
+// class AliHLTPHOSDigitContainerDataStruct;
 
 /**
  * @class AliHLTPHOSClusterizerComponent
@@ -105,8 +107,10 @@ class AliHLTPHOSDigitContainerDataStruct;
  * @ingroup alihlt_phos
  */ 
 
-class AliHLTPHOSClusterizerComponent: public AliHLTPHOSProcessor
+class AliHLTPHOSClusterizerComponent : public AliHLTCaloClusterizerComponent
+//class AliHLTPHOSClusterizerComponent : public AliHLTCaloProcessor
 {
+  
  public:
 
   /** Constructor */
@@ -115,25 +119,6 @@ class AliHLTPHOSClusterizerComponent: public AliHLTPHOSProcessor
   /** Destructor */
   virtual ~AliHLTPHOSClusterizerComponent();
 
-  /** Copy constructor */  
-  AliHLTPHOSClusterizerComponent(const AliHLTPHOSClusterizerComponent &) : 
-    AliHLTPHOSProcessor(),
-    fAllDigitsPtr(0),
-    fClusterizerPtr(0),
-    //    fRecPointStructArrayPtr(0),
-    fDigitCount(0),
-    fNoCrazyness(0)
-  {
-    //Copy constructor not implemented
-  }
-  
-  /** Assignment */
-  AliHLTPHOSClusterizerComponent & operator = (const AliHLTPHOSClusterizerComponent)
-  {
-    //Assignment
-    return *this; 
-  }
-
   /** interface function, see @ref AliHLTComponent for description */
   const char* GetComponentID();
 
@@ -144,49 +129,31 @@ class AliHLTPHOSClusterizerComponent: public AliHLTPHOSProcessor
   AliHLTComponentDataType GetOutputDataType();
 
   /** interface function, see @ref AliHLTComponent for description */
-  void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
+  void GetOutputDataSize ( unsigned long& constBase, double& inputMultiplier );
 
-  /** interface function, see @ref AliHLTComponent for description */
-  
-  using  AliHLTPHOSProcessor::DoEvent;
-  int DoEvent(const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
-               AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size,
-               std::vector<AliHLTComponentBlockData>& outputBlocks);
-  // Int_t DoEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
   /** interface function, see @ref AliHLTComponent for description */
   AliHLTComponent* Spawn();
-  
-protected:
-
-  /** interface function, see @ref AliHLTComponent for description */
-  int DoInit(int argc, const char** argv);
-
-  /** interface function, see @ref AliHLTComponent for description */
-  int Deinit();
 
-  /** interface function, see @ref AliHLTComponent for description */
-  int Reconfigure(const char* cdbEntry, const char* chainId);
-
-  /** interface function, see @ref AliHLTComponent for description */
-  int ScanConfigurationArgument(int argc, const char** argv);
-
- private:
-
-  /** All digits in the event */
-  AliHLTPHOSDigitContainerDataStruct *fAllDigitsPtr;            //! transient
-
-  /** Pointer to the clusterizer it self */
-  AliHLTPHOSClusterizer* fClusterizerPtr;                       //! transient
-
-//   /** Pointer to rec points used in clusterization */
-//   AliHLTPHOSRecPointDataStruct* fRecPointStructArrayPtr;        //! transient
+protected:
+   
+   /** interface function, see @ref AliHLTComponent for description */
+    int DoInit ( int argc, const char** argv );
+   
+    /** interface function, see @ref AliHLTComponent for description */
+    virtual int DoDeinit();
 
-  /** Number of digits in event */
-  Int_t fDigitCount;                                            //COMMENT
+    /** Initialise geometry objects */
+    virtual Int_t InitialiseGeometry();
 
-  /** If one should consider crazyness or not */                              
-  Bool_t fNoCrazyness;                                          //COMMENT
+private:
+  
+  /** Copy constructor,  not implemented */
+  AliHLTPHOSClusterizerComponent(const AliHLTPHOSClusterizerComponent &);
+  
+  /** Assignment operator, not implemented */
+  AliHLTPHOSClusterizerComponent & operator = (const AliHLTPHOSClusterizerComponent);
 
+  
 };
 
 #endif