Coding conventions & doccumentation
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2007 23:31:19 +0000 (23:31 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 May 2007 23:31:19 +0000 (23:31 +0000)
37 files changed:
HLT/PHOS/AliHLTPHOSDDLDecoderComponent.cxx
HLT/PHOS/AliHLTPHOSDDLDecoderComponent.h
HLT/PHOS/AliHLTPHOSDDLPackedFileWriter.cxx
HLT/PHOS/AliHLTPHOSDDLPackedFileWriter.h
HLT/PHOS/AliHLTPHOSDefinitions.cxx
HLT/PHOS/AliHLTPHOSDefinitions.h
HLT/PHOS/AliHLTPHOSEmcCalibData.cxx
HLT/PHOS/AliHLTPHOSFileWriter.cxx
HLT/PHOS/AliHLTPHOSFileWriter.h
HLT/PHOS/AliHLTPHOSFileWriterComponent.cxx
HLT/PHOS/AliHLTPHOSFileWriterComponent.h
HLT/PHOS/AliHLTPHOSHistogramProducerComponent.cxx
HLT/PHOS/AliHLTPHOSHistogramProducerComponent.h
HLT/PHOS/AliHLTPHOSModuleMergerComponent.cxx
HLT/PHOS/AliHLTPHOSModuleMergerComponent.h
HLT/PHOS/AliHLTPHOSPulseGenerator.cxx
HLT/PHOS/AliHLTPHOSPulseGenerator.h
HLT/PHOS/AliHLTPHOSRawAnalyzer.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzer.h
HLT/PHOS/AliHLTPHOSRawAnalyzerChiSquareFit.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerChiSquareFit.h
HLT/PHOS/AliHLTPHOSRawAnalyzerComponent.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerComponent.h
HLT/PHOS/AliHLTPHOSRawAnalyzerCrude.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerCrude.h
HLT/PHOS/AliHLTPHOSRawAnalyzerCrudeComponent.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerCrudeComponent.h
HLT/PHOS/AliHLTPHOSRawAnalyzerKLevel.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerKLevel.h
HLT/PHOS/AliHLTPHOSRawAnalyzerLMS.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerLMS.h
HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinder.h
HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinderComponent.cxx
HLT/PHOS/AliHLTPHOSRawAnalyzerPeakFinderComponent.h
HLT/PHOS/AliHLTPHOSRcuHistogramProducerComponent.cxx
HLT/PHOS/AliHLTPHOSRcuHistogramProducerComponent.h

index 1d0dc6b5a179f964dbbcae11c7d5b3fe69ce39c5..791ffd5728d62d818c47fe014c3f238e873b1640 100644 (file)
@@ -30,9 +30,6 @@ const AliHLTComponentDataType AliHLTPHOSDDLDecoderComponent::fgkInputDataTypes[]
 int   AliHLTPHOSDDLDecoderComponent::fgEventCount = 0; 
 
 
-/**
- * @class AliHLTPHOSDDLDecoderComponent
- */
 AliHLTPHOSDDLDecoderComponent::AliHLTPHOSDDLDecoderComponent():AliHLTProcessor(), fEquippmentID(0), fRcuX(0), 
 fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),  fModuleID(0), fSendChannelData(kFALSE), fPHOSRawStream(0), fRawMemoryReader(0), fOutPtr(0)
 {
@@ -58,10 +55,6 @@ fEquippmentID(0), fRcuX(0), fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),  fModuleID(
 }
 
 
-/*
- *Deinit function called by the HLT framwork at end of run
- *@return 0 if the denitialzation was sucessfull.
- */
 int 
 AliHLTPHOSDDLDecoderComponent::Deinit()
 {
@@ -70,10 +63,6 @@ AliHLTPHOSDDLDecoderComponent::Deinit()
 }
 
 
-/*
- *Deinit function called by the HLT framwork at end of run
- *@return 0 if the denitialzation was sucessfull.
- */
 int 
 AliHLTPHOSDDLDecoderComponent::DoDeinit()
 {
@@ -93,10 +82,7 @@ AliHLTPHOSDDLDecoderComponent::DoDeinit()
 
 }
 
-/*
- *Function called by the HLT framework during initialization
- *@return the ID of the component
- */
+
 const char* 
 AliHLTPHOSDDLDecoderComponent::GetComponentID()
 {
@@ -104,8 +90,9 @@ AliHLTPHOSDDLDecoderComponent::GetComponentID()
 }
 
 
+
 void
-AliHLTPHOSDDLDecoderComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
+AliHLTPHOSDDLDecoderComponent::GetInputDataTypes(vector<AliHLTComponentDataType>& list)
 {
   const AliHLTComponentDataType* pType=fgkInputDataTypes;
   while (pType->fID!=0) {
@@ -117,7 +104,7 @@ AliHLTPHOSDDLDecoderComponent::GetInputDataTypes( vector<AliHLTComponentDataType
 AliHLTComponentDataType 
 AliHLTPHOSDDLDecoderComponent::GetOutputDataType()
 {
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
 void
@@ -129,7 +116,9 @@ AliHLTPHOSDDLDecoderComponent::GetOutputDataSize(unsigned long& constBase, doubl
 }
 
 
-int AliHLTPHOSDDLDecoderComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+  
+int
+AliHLTPHOSDDLDecoderComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
                                              AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
                                              AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
 {
@@ -158,7 +147,7 @@ int AliHLTPHOSDDLDecoderComponent::DoEvent( const AliHLTComponentEventData& evtD
       tmpChannelCnt = 0;
       offset = tSize;
 
-      if ( iter->fDataType != AliHLTPHOSDefinitions::gkDDLPackedRawDataType )
+      if ( iter->fDataType != AliHLTPHOSDefinitions::fgkDDLPackedRawDataType )
        {
          continue;
        }
@@ -195,7 +184,7 @@ int AliHLTPHOSDDLDecoderComponent::DoEvent( const AliHLTComponentEventData& evtD
       FillBlockData( bd );
       bd.fOffset = offset;
       bd.fSize = mysize;
-      bd.fDataType = AliHLTPHOSDefinitions::gkCellChannelDataDataType;
+      bd.fDataType = AliHLTPHOSDefinitions::fgkCellChannelDataDataType;
       bd.fSpecification = 0xeFFFFFFF;
       outputBlocks.push_back( bd);
       tSize += mysize;
index eb39f3f9518fb7d5cff6a520709e7d9969f39a33..93826f98ae6255189f0d651a1ee38f6e433a607d 100644 (file)
@@ -11,6 +11,7 @@
 #include "AliHLTPHOSDefinitions.h"
 #include "AliHLTPHOSCommonDefs.h"
 #include "AliHLTPHOSRcuChannelDataStruct.h"
+#include <cstdlib>
 
 class AliHLTPHOSRcuCellEnergyDataStruct;
 class AliHLTPHOSRcuChannelDataStruct;
@@ -19,15 +20,13 @@ class AliHLTPHOSDDLDecoderComponent:public AliHLTProcessor
 
 {
  public:
-
-
- AliHLTPHOSDDLDecoderComponent();
+  AliHLTPHOSDDLDecoderComponent();
   virtual ~AliHLTPHOSDDLDecoderComponent();
- AliHLTPHOSDDLDecoderComponent(const AliHLTPHOSDDLDecoderComponent & );
- AliHLTPHOSDDLDecoderComponent & operator = (const AliHLTPHOSDDLDecoderComponent &)
-   {
 AliHLTPHOSDDLDecoderComponent(const AliHLTPHOSDDLDecoderComponent & );
 AliHLTPHOSDDLDecoderComponent & operator = (const AliHLTPHOSDDLDecoderComponent &)
+    {
       return *this;
-   };
+    };
 
   virtual int DoInit( int argc, const char** argv );
   virtual int Deinit();
@@ -36,13 +35,15 @@ class AliHLTPHOSDDLDecoderComponent:public AliHLTProcessor
   AliHLTUInt16_t  GetEquippmentID();
   void SetCoordinates(AliHLTUInt16_t equippmentID);
   virtual const char* GetComponentID();
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>&);
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   virtual AliHLTComponent* Spawn();
-
-  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
-
+  
+  virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+                    AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
+                    AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ); 
  private:
   static int fgEventCount;
   AliHLTUInt16_t fEquippmentID;
index b492631cd23662df14fe3ef4aa5851d037733352..a9a69672586cac9d0422b6c9f49b9f9636ca18e6 100644 (file)
@@ -1,21 +1,24 @@
 #include  "AliHLTPHOSDDLPackedFileWriter.h"
 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSDDLPackedFileWriter::AliHLTPHOSDDLPackedFileWriter()
 {
 
 }
 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSDDLPackedFileWriter::~AliHLTPHOSDDLPackedFileWriter()
 {
 
 }
 
 
-int 
+//_________________________________________________________________________________________________
+const int 
 AliHLTPHOSDDLPackedFileWriter::WriteFile(const AliHLTComponentEventData& evtData, 
-                       const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, int evntCnt)
+                       const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, int evntCnt) const
 {
   return 0;
 }
index 1d23c94d03105f750e734874539b49f7b7413984..deb6486f2158cc88c73ae8849ca786e323e4b187 100644 (file)
@@ -5,18 +5,17 @@
 #include <string>
 #include "AliHLTDataTypes.h"
 
-
 using std::string;
 
 class AliHLTPHOSDDLPackedFileWriter: public AliHLTPHOSFileWriter
 {
  public:
   AliHLTPHOSDDLPackedFileWriter();
-  ~AliHLTPHOSDDLPackedFileWriter();
-
-virtual int WriteFile(const AliHLTComponentEventData& evtData, 
-                       const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, int evntCnt);
+  virtual ~AliHLTPHOSDDLPackedFileWriter();
 
+  const virtual int WriteFile(const AliHLTComponentEventData& evtData, 
+                       const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, int evntCnt) const;
+  
 
 };
 
index 2ceeed65bfc0d79f7f5af7f73af6eb5609c843cc..d21c7fafbef33477d0957ef669c5a66cac9e4dd9 100644 (file)
@@ -1,3 +1,4 @@
+
 // $Id$
 
 /**************************************************************************
 #include "AliHLTPHOSDefinitions.h"
 
 
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkDDLPackedRawDataType          = { sizeof(AliHLTComponentDataType),       {'D','D','L','_','R','W','P','K'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellEnergyDataType            = { sizeof(AliHLTComponentDataType),       {'C','E','L','L','E','N','E','R'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellEnergyHistogramDataType   = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','H','I','S','T'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellAverageEnergyDataType     = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','A','V','E','R'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellAccumulatedEnergyDataType = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','A','C','C','U'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellTimingHistogramDataType   = { sizeof(AliHLTComponentDataType),       {'T','I','M','E','H','I','S','T'},{'P','H','O','S'}};;    
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellTimingAverageDataType     = { sizeof(AliHLTComponentDataType),       {'T','I','M','E','A','V','E','R'},{'P','H','O','S'}};;
-const AliHLTComponentDataType AliHLTPHOSDefinitions::gkCellChannelDataDataType       = { sizeof(AliHLTComponentDataType),       {'C','H','A','N','D','A','T','A'},{'P','H','O','S'}};;
+
+
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkDDLPackedRawDataType          = { sizeof(AliHLTComponentDataType),       {'D','D','L','_','R','W','P','K'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellEnergyDataType            = { sizeof(AliHLTComponentDataType),       {'C','E','L','L','E','N','E','R'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellEnergyHistogramDataType   = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','H','I','S','T'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellAverageEnergyDataType     = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','A','V','E','R'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellAccumulatedEnergyDataType = { sizeof(AliHLTComponentDataType),       {'E','N','E','R','A','C','C','U'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellTimingHistogramDataType   = { sizeof(AliHLTComponentDataType),       {'T','I','M','E','H','I','S','T'},{'P','H','O','S'}};;    
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellTimingAverageDataType     = { sizeof(AliHLTComponentDataType),       {'T','I','M','E','A','V','E','R'},{'P','H','O','S'}};;
+const AliHLTComponentDataType AliHLTPHOSDefinitions::fgkCellChannelDataDataType       = { sizeof(AliHLTComponentDataType),       {'C','H','A','N','D','A','T','A'},{'P','H','O','S'}};;
index b4cb530c572995775bdd65510c6a03f31cf87f44..eb4e59b0dcec3cc0880d09aaf34f4c9f4db04b36 100644 (file)
@@ -1,3 +1,4 @@
+
 // XEmacs -*-C++-*-
 // @(#) $Id$
 
  */
 
 #include "AliHLTDataTypes.h"
-#include "Rtypes.h"
+//#include "Rtypes.h"
 
 class AliHLTPHOSDefinitions
     {
     public:
-      static const AliHLTComponentDataType gkCellEnergyDataType;    /**<Reconstructed cell/crystal energies*/
-      static const AliHLTComponentDataType gkDDLPackedRawDataType;  /**<DDL raw data on the RCU data format*/
-      static const AliHLTComponentDataType gkCellEnergyHistogramDataType;  /**<Histogram for per cell/gain energy distribution*/
-      static const AliHLTComponentDataType gkCellAverageEnergyDataType;  /**<Histogram for per cell/gain energy distribution*/
-      static const AliHLTComponentDataType gkCellAccumulatedEnergyDataType;  /**<Histogram for per cell/gain energy distribution*/
-      static const AliHLTComponentDataType gkCellTimingHistogramDataType;  /**<Histogram for per cell/gain time distribution*/      
-      static const AliHLTComponentDataType gkCellTimingAverageDataType;  /**<Histogram for per cell/gain time distribution*/  
-      static const AliHLTComponentDataType gkCellChannelDataDataType;  /**<Time dependent signal from the readout channels*/  
+      static const AliHLTComponentDataType fgkCellEnergyDataType;    /**<Reconstructed cell/crystal energies*/
+      static const AliHLTComponentDataType fgkDDLPackedRawDataType;  /**<DDL raw data on the RCU data format*/
+      static const AliHLTComponentDataType fgkCellEnergyHistogramDataType;  /**<Histogram for per cell/gain energy distribution*/
+      static const AliHLTComponentDataType fgkCellAverageEnergyDataType;  /**<Histogram for per cell/gain energy distribution*/
+      static const AliHLTComponentDataType fgkCellAccumulatedEnergyDataType;  /**<Histogram for per cell/gain energy distribution*/
+      static const AliHLTComponentDataType fgkCellTimingHistogramDataType;  /**<Histogram for per cell/gain time distribution*/      
+      static const AliHLTComponentDataType fgkCellTimingAverageDataType;  /**<Histogram for per cell/gain time distribution*/  
+      static const AliHLTComponentDataType fgkCellChannelDataDataType;  /**<Time dependent signal from the readout channels*/  
     };
 
 #endif
index 1fa3e6b1ea1974bcc4c634be022eda776e8a2627..c5a70ef9064615fa1f5d8259494a46d21f9d4681 100644 (file)
@@ -157,7 +157,7 @@ void  AliHLTPHOSEmcCalibData::Print(Option_t *option) const
   }
 }
 
-
+//________________________________________________________________
 void  
 AliHLTPHOSEmcCalibData::MakeADCpedestalCorrectionTable()
 {
index 36321908ecf7e7f99bd75b2d08c79ac6d9b402bb..91c798cec897e628acbada055650ff2539dea5e6 100644 (file)
@@ -1,28 +1,32 @@
 #include  "AliHLTPHOSFileWriter.h"
-#include <string>
 #include <cstdlib>
 
-using std::string;
+using namespace std;
 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSFileWriter::AliHLTPHOSFileWriter():fCurrentEvntCnt(0), fCurrentFile(0), fDirectory(""), fCurrentFilename("")
 {
 
 }
 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSFileWriter::~AliHLTPHOSFileWriter()
 {
 
 }
 
 
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSFileWriter::SetDirectory(string& directory)
 {
 
 }
 
+
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSFileWriter::MakeFilename(int eventNr, const AliHLTComponentDataType& dataType)
 {
index 82a4c9ba9bba9e6ea8cca97755dd2af82fa81b58..e24404aaf71ee25c190aaa23e61293affa48f03e 100644 (file)
@@ -1,29 +1,27 @@
 #ifndef ALIHLTPHOSFILEWRITER_H
 #define ALIHLTPHOSFILEWRITER_H
 
-#include "AliHLTPHOSFileWriter.h"
-#include <string>
 #include "AliHLTDataTypes.h"
 #include <iostream>
-
 using std::string;
 
+
 class AliHLTPHOSFileWriter
 {
  public:
   AliHLTPHOSFileWriter();
   virtual ~AliHLTPHOSFileWriter();
-  void  MakeFilename(int eventNr, const AliHLTComponentDataType& dataType);
+  void  MakeFilename(int eventNr =0, const AliHLTComponentDataType& dataType =  kAliHLTVoidDataType);
   void SetDirectory(string& directory); 
 
  protected:
   int fCurrentEvntCnt;
-  FILE *fCurrentFile;
-  string fDirectory;
-  string fCurrentFilename;
+  FILE *fCurrentFile;      /**<Flepointer to current file*/
+  string fDirectory;       /**<Ouput directory for files produced by this component*/
+  string fCurrentFilename; /**<Name of file for writng current data to file*/
 
  private:
-  AliHLTPHOSFileWriter(const AliHLTPHOSFileWriter & );           /**<Never to be called*/
+  AliHLTPHOSFileWriter(const AliHLTPHOSFileWriter &);           /**<Never to be called*/
   AliHLTPHOSFileWriter & operator = (const AliHLTPHOSFileWriter &) /**<Never to be called*/
     {
       return *this;
index 0bb79c32acc2348e302dab204e37f53339c9e74d..fed0aad19d1bfb0d4c624dbe0b13f9d714a53700 100644 (file)
@@ -13,6 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+#include "AliHLTPHOSDefinitions.h"
 #include "AliHLTPHOSFileWriterComponent.h"
 #include <iostream>
 #include <TObjString.h>
 #include "AliHLTPHOSRcuCellEnergyDataStruct.h"
 #include "AliHLTPHOSDataHeaderStruct.h"
 #include "AliHLTDataTypes.h"
+#include "AliHLTPHOSDDLPackedFileWriter.h" 
+#include "AliHLTPHOSCellEnergiesFileWriter.h"
 
 
-
-class AliRawReaderMemory;
-class AliCaloRawStream;
-class AliHLTPHOSRcuCellEnergyDataStruct;
-
-
-const AliHLTComponentDataType AliHLTPHOSFileWriterComponent::fInputDataTypes[]={kAliHLTVoidDataType,{0,"",""}}; //'zero' terminated array
+const AliHLTComponentDataType AliHLTPHOSFileWriterComponent::fgkInputDataTypes[]={kAliHLTVoidDataType,{0,"",""}}; //'zero' terminated array
 
 
 AliHLTPHOSFileWriterComponent gAliHLTPHOSFileWriterComponent;
 
+//____________________________________________________________________________________
 AliHLTPHOSFileWriterComponent::AliHLTPHOSFileWriterComponent():  AliHLTFileWriter(), fCellEnergiesFileWriterPtr(0) \
   , fDDLPackedFileWriterPtr(0), fDirectory(""),fFilename(""), fEventCount(0)
 {
-  // see header file for documentation
+  /* 
+   *Default constructor
+   */
   for(int i=0; i<N_DATATYPES; i++)
     {
       fDataTypesToFile[i] = kAliHLTVoidDataType;
@@ -51,26 +51,26 @@ AliHLTPHOSFileWriterComponent::AliHLTPHOSFileWriterComponent():  AliHLTFileWrite
 
 } 
 
+//____________________________________________________________________________________
 AliHLTPHOSFileWriterComponent::~AliHLTPHOSFileWriterComponent()
 {
-  // see header file for documentation
   delete fCellEnergiesFileWriterPtr;
   delete fDDLPackedFileWriterPtr;
 }
 
 
-
+//____________________________________________________________________________________
 AliHLTPHOSFileWriterComponent::AliHLTPHOSFileWriterComponent(const AliHLTPHOSFileWriterComponent & ): AliHLTFileWriter(), fCellEnergiesFileWriterPtr(0), \
   fDDLPackedFileWriterPtr(0), fDirectory(""),fFilename(""), fEventCount(0)
 {
-  // see header file for documentation
 
 }
 
+
+//____________________________________________________________________________________
 int 
 AliHLTPHOSFileWriterComponent::AddDataType(string dataType)
 {
-  // see header file for documentation 
   int ret = -1;
   int tmpCnt = 0;
   for(int i=0; i< N_DATATYPES; i++)
@@ -85,67 +85,69 @@ AliHLTPHOSFileWriterComponent::AddDataType(string dataType)
 
   if(dataType.compare("gkCellEnergyDataType") == 0)
     {
-      fDataTypesToFile[tmpCnt] = AliHLTPHOSDefinitions::gkCellEnergyDataType; 
+      fDataTypesToFile[tmpCnt] = AliHLTPHOSDefinitions::fgkCellEnergyDataType; 
       cout <<"regsitring dataType for filewriting: fDataTypesToFile[" << tmpCnt <<"]"<<endl; 
     } 
   else if(dataType.compare("gkDDLPackedRawDataType") == 0)
     {
-         fDataTypesToFile[tmpCnt] = AliHLTPHOSDefinitions::gkDDLPackedRawDataType; 
+         fDataTypesToFile[tmpCnt] = AliHLTPHOSDefinitions::fgkDDLPackedRawDataType; 
     }
 
   cout << "dataType.compare(cmpString) = " <<dataType.compare(cmpString)<<endl;
   return ret;
 }
 
-
+//____________________________________________________________________________________
 int 
 AliHLTPHOSFileWriterComponent::Deinit()
 {
-  // see header file for documentation
   return 0;
 }
 
+//____________________________________________________________________________________
 int 
 AliHLTPHOSFileWriterComponent::DoDeinit()
 {
- // see header file for documentation
   Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSFileWriterComponen DoDeinit");
   return 0;
 }
 
+
+//____________________________________________________________________________________
 const char* 
 AliHLTPHOSFileWriterComponent::GetComponentID()
 {
- // see header file for documentation
   return "PhosFileWriter";
 }
 
+
+//____________________________________________________________________________________
 AliHLTComponent*
 AliHLTPHOSFileWriterComponent::Spawn()
 {
-  // see header file for documentation
   return new AliHLTPHOSFileWriterComponent;
 }
 
 
+//____________________________________________________________________________________
 void
 AliHLTPHOSFileWriterComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
-  // see header file for documentation
-  const AliHLTComponentDataType* pType=fInputDataTypes;
+  const AliHLTComponentDataType* pType=fgkInputDataTypes;
   while (pType->fID!=0) {
     list.push_back(*pType);
     pType++;
   }
 }
 
+//____________________________________________________________________________________
 AliHLTComponentDataType 
 AliHLTPHOSFileWriterComponent::GetOutputDataType()
 {
-  // see header file for documentation
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
+//____________________________________________________________________________________
 void
 AliHLTPHOSFileWriterComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
 
@@ -155,6 +157,7 @@ AliHLTPHOSFileWriterComponent::GetOutputDataSize(unsigned long& constBase, doubl
   inputMultiplier = 0.1;
 }
 
+//____________________________________________________________________________________
 Bool_t 
 AliHLTPHOSFileWriterComponent::IsRegisteredDataType(const AliHLTComponentDataType& dataType)
 {
index 8a4d638db30eb342a91ce5b33c02d65b510c9bb7..b2000a889a4712dc25bdbfe0040230ec6c15d30f 100644 (file)
@@ -1,20 +1,21 @@
 #ifndef ALIHLTPHOSFILEWRITERCOMPONENT_H
 #define ALIHLTPHOSFILEWRITERCOMPONENT_H
 
-#include "AliHLTPHOSDefinitions.h"
+//#include "AliHLTPHOSDefinitions.h"
 #include <string>
 #include "AliHLTPHOSCommonDefs.h"
-#include "AliHLTPHOSFileWriter.h"
-#include "AliHLTPHOSCellEnergiesFileWriter.h"
-#include "AliHLTPHOSDDLPackedFileWriter.h"  
 #include "Rtypes.h"
 #include "AliHLTFileWriter.h"
+#include <vector>
 
 
 class AliRawReaderMemory;
 class AliCaloRawStream;
 class AliHLTPHOSRcuCellEnergyDataStruct;
 class AliHLTPHOSFileWriterComponent;
+class AliHLTPHOSDDLPackedFileWriter;  
+class AliHLTPHOSCellEnergiesFileWriter;
+//class AliHLTFileWriter;
 
 class AliHLTPHOSFileWriterComponent:public AliHLTFileWriter
 {
@@ -25,7 +26,7 @@ class AliHLTPHOSFileWriterComponent:public AliHLTFileWriter
   virtual int Deinit();
   virtual int DoDeinit();
   virtual const char* GetComponentID();
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>&);
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   virtual AliHLTComponent* Spawn();
@@ -39,12 +40,12 @@ class AliHLTPHOSFileWriterComponent:public AliHLTFileWriter
     {
       return *this;
     };
-  AliHLTPHOSCellEnergiesFileWriter *fCellEnergiesFileWriterPtr;
-  AliHLTPHOSDDLPackedFileWriter    *fDDLPackedFileWriterPtr ;
-  string  fDirectory; /**<target directory for files*/
-  string  fFilename;  /**<the basename of the output file*/
-  AliHLTComponentDataType fDataTypesToFile[N_DATATYPES];
-  int fEventCount;
-  static const AliHLTComponentDataType fInputDataTypes[];
+  AliHLTPHOSCellEnergiesFileWriter *fCellEnergiesFileWriterPtr;   /**<to write celle energies to files*/
+  AliHLTPHOSDDLPackedFileWriter    *fDDLPackedFileWriterPtr ;     /**<to write untouched DDL raw data to files*/ 
+  string  fDirectory;                                             /**<target directory for files*/
+  string  fFilename;                                              /**<the basename of the output file*/
+  AliHLTComponentDataType fDataTypesToFile[N_DATATYPES];          /**<Array for registering datatypes that should be written to files*/          
+  int fEventCount;                                                /**<Event counter*/
+  static const AliHLTComponentDataType fgkInputDataTypes[];         /**<Datatypes that can be given as input to this component*/
 };
 #endif
index 7edec634fb93588332859cb8e8f26f7dc077adca..b23f20de238c9e067050fe3ac038a73bf84bd16b 100644 (file)
@@ -38,41 +38,31 @@ AliHLTPHOSHistogramProducerComponent gAliHLTPHOSHistogramProducerComponent;
 * and it fills the histograms with amplitudes per channel.               * 
 * Usage example see in PHOS/macros/Shuttle/AliPHOSCalibHistoProducer.C   *
 **************************************************************************/
-AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent():AliHLTProcessor(), fEventCount(0),  fEquippmentID(0)
+AliHLTPHOSHistogramProducerComponent:: AliHLTPHOSHistogramProducerComponent():AliHLTProcessor(), fPhosEventCount(0),  fEquippmentID(0)
 {
-  /**
-   *Default constructor
-   */
   Reset();
 } 
 
-
+//________________________________________________________________________________________
 AliHLTPHOSHistogramProducerComponent::~ AliHLTPHOSHistogramProducerComponent()
 {
-  /**
-   *Default destructor
-   */
-}
 
+}
 
-AliHLTPHOSHistogramProducerComponent::AliHLTPHOSHistogramProducerComponent(const  AliHLTPHOSHistogramProducerComponent & ) : AliHLTProcessor(), fEventCount(0),  fEquippmentID(0)
+//________________________________________________________________________________________
+AliHLTPHOSHistogramProducerComponent::AliHLTPHOSHistogramProducerComponent(const  AliHLTPHOSHistogramProducerComponent & ) : AliHLTProcessor(), fPhosEventCount(0),  fEquippmentID(0)
 {
-  /**
-   *Copy constructor
-   */
-}
 
+}
 
+//________________________________________________________________________________________
 int 
 AliHLTPHOSHistogramProducerComponent::Deinit()
 {
-  /**
-   *See base class for documenation
-   */
   return 0;
 }
 
-
+//________________________________________________________________________________________
 int 
 AliHLTPHOSHistogramProducerComponent::DoDeinit()
 {
@@ -80,23 +70,17 @@ AliHLTPHOSHistogramProducerComponent::DoDeinit()
   return 0;
 }
 
-
+//________________________________________________________________________________________
 const char* 
 AliHLTPHOSHistogramProducerComponent::GetComponentID()
 {
-  /**
-   *See base class for documenation
-   */
   return "HistogramProducer";
 }
 
-
+//________________________________________________________________________________________
 void
- AliHLTPHOSHistogramProducerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
+AliHLTPHOSHistogramProducerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
-  /**
-   *See base class for documenation
-   */
   const AliHLTComponentDataType* pType=fgkInputDataTypes;
   while (pType->fID!=0) 
     {
@@ -105,29 +89,25 @@ void
     }
 }
 
-
+//________________________________________________________________________________________
 AliHLTComponentDataType 
 AliHLTPHOSHistogramProducerComponent::GetOutputDataType()
 {
-  /**
-   *See base class for documenation
-   */
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
 
+//________________________________________________________________________________________
 void
 AliHLTPHOSHistogramProducerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
 {
-  /**
-   *See base class for documenation
-   */
   constBase = 30;
   inputMultiplier = 1;
 }
 
-
-int  AliHLTPHOSHistogramProducerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+//________________________________________________________________________________________
+int  
+AliHLTPHOSHistogramProducerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
                                              AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
                                              AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
 {
@@ -208,7 +188,7 @@ int  AliHLTPHOSHistogramProducerComponent::DoEvent( const AliHLTComponentEventDa
   FillBlockData( bd );
   bd.fOffset = offset;
   bd.fSize = mysize;
-  bd.fDataType = AliHLTPHOSDefinitions::gkCellAccumulatedEnergyDataType;
+  bd.fDataType = AliHLTPHOSDefinitions::fgkCellAccumulatedEnergyDataType;
   bd.fSpecification = 0xFFFFFFFF;
   outputBlocks.push_back( bd );
   tSize += mysize;
@@ -222,11 +202,12 @@ int  AliHLTPHOSHistogramProducerComponent::DoEvent( const AliHLTComponentEventDa
       return EMSGSIZE;
     }
 
-  fEventCount++; 
+  fPhosEventCount++; 
   return 0;
 }//end DoEvent
 
 
+//________________________________________________________________________________________
 int
 AliHLTPHOSHistogramProducerComponent::DoInit( int argc, const char** argv )
 {
@@ -238,6 +219,7 @@ AliHLTPHOSHistogramProducerComponent::DoInit( int argc, const char** argv )
 }
 
 
+//________________________________________________________________________________________
 void
 AliHLTPHOSHistogramProducerComponent::DumpData(int gain)
 {
@@ -273,6 +255,7 @@ AliHLTPHOSHistogramProducerComponent::DumpData(int gain)
 
 
 
+//________________________________________________________________________________________
 void
 AliHLTPHOSHistogramProducerComponent::Reset()
 {
@@ -297,6 +280,8 @@ AliHLTPHOSHistogramProducerComponent::Reset()
     }
 } // end Reset
 
+
+//________________________________________________________________________________________
 void
 AliHLTPHOSHistogramProducerComponent::ResetDataPtr()
 {
@@ -307,19 +292,22 @@ AliHLTPHOSHistogramProducerComponent::ResetDataPtr()
 }
 
 
+//________________________________________________________________________________________
 void 
 AliHLTPHOSHistogramProducerComponent::SetEquippmentId(int id)
 {
   fEquippmentID = id;
 }
 
+
+//________________________________________________________________________________________
 const int 
 AliHLTPHOSHistogramProducerComponent::GetEquippmentId() const
 {
   return  fEquippmentID;
 }
 
-
+//________________________________________________________________________________________
 AliHLTComponent*
 AliHLTPHOSHistogramProducerComponent::Spawn()
 {
index e95071790095a744d7b32953f85a3926e09a51ab..74ab235afecb103711d6cac4d8be4c26f9d838d3 100644 (file)
@@ -25,11 +25,14 @@ class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor
   virtual int DoInit( int argc = 0, const char** argv = 0);
   virtual int Deinit();
   virtual int DoDeinit();
-  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
+  virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+                    AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
+                    AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
+
   void DumpData(int gain = 0);
   const int GetEquippmentId() const;
   virtual const char* GetComponentID();
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list);
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   void SetEquippmentId(int id = 0);
@@ -44,7 +47,7 @@ class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor
   Double_t fAccumulatedValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS];   /**<Accumulated energy for each readout channel of one RCU*/
   //  Double_t fTimingAverageValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; 
   AliHLTUInt32_t fHits[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS];         /**<Total number of hits for each cell of one RCU*/
-  int fEventCount;                                                    /**<Event counter, (mainly used for debugging)*/
+  int fPhosEventCount;                                                    /**<Event counter, (mainly used for debugging)*/
   AliHLTUInt32_t fEquippmentID;                                       /**<Eguippment ID as defined by ALICE*/
   Double_t fTmpChannelData[ALTRO_MAX_SAMPLES];                        /**<Array to temporarily store dat fro a single altro channel*/                        
   AliHLTPHOSModuleCellAccumulatedEnergyDataStruct*  fOutPtr;          /**<Pointer to outputbuffer to write results from the component into shared memory*/
index 731ce66423436b3b1c7746802f0e77f547a21c54..956f2f70b12fdff2a465b039391482f39d414980 100644 (file)
  **************************************************************************/
 
 #include "AliHLTPHOSModuleMergerComponent.h"
-//#include <iostream>
-//#include "stdio.h"
 #include "AliRawReaderMemory.h"
 #include "AliCaloRawStream.h"
-//#include <cstdlib>
 #include <cstdio>
 #include "AliHLTPHOSRcuCellEnergyDataStruct.h"
 
 const AliHLTComponentDataType  AliHLTPHOSModuleMergerComponent::fgkInputDataTypes[]={kAliHLTVoidDataType,{0,"",""}}; //'zero' terminated array
 const AliHLTComponentDataType  AliHLTPHOSModuleMergerComponent::fgkOutputDataType=kAliHLTVoidDataType;
 
-
 AliHLTPHOSModuleMergerComponent gAliHLTPHOSModuleMergerComponent;
-AliHLTPHOSModuleMergerComponent:: AliHLTPHOSModuleMergerComponent():AliHLTProcessor(),  fEventCount(0),  fEquippmentID(0)
+
+//_____________________________________________________________________________________________________
+AliHLTPHOSModuleMergerComponent:: AliHLTPHOSModuleMergerComponent():AliHLTProcessor(),  fPhosEventCount(0),  fEquippmentID(0)
 {
 
 } 
 
 
+//_____________________________________________________________________________________________________
 AliHLTPHOSModuleMergerComponent::~ AliHLTPHOSModuleMergerComponent()
 {
 
 }
 
 
-AliHLTPHOSModuleMergerComponent::AliHLTPHOSModuleMergerComponent(const  AliHLTPHOSModuleMergerComponent & ) : AliHLTProcessor(),  fEventCount(0),  fEquippmentID(0)
+//_____________________________________________________________________________________________________
+AliHLTPHOSModuleMergerComponent::AliHLTPHOSModuleMergerComponent(const  AliHLTPHOSModuleMergerComponent & ) : AliHLTProcessor(),  fPhosEventCount(0),  fEquippmentID(0)
 {
 
 }
 
 
+//_____________________________________________________________________________________________________
 int 
 AliHLTPHOSModuleMergerComponent::Deinit()
 {
@@ -53,6 +54,7 @@ AliHLTPHOSModuleMergerComponent::Deinit()
 }
 
 
+//_____________________________________________________________________________________________________
 int 
 AliHLTPHOSModuleMergerComponent::DoDeinit()
 {
@@ -62,6 +64,7 @@ AliHLTPHOSModuleMergerComponent::DoDeinit()
 }
 
 
+//_____________________________________________________________________________________________________
 const char* 
 AliHLTPHOSModuleMergerComponent::GetComponentID()
 {
@@ -69,10 +72,10 @@ AliHLTPHOSModuleMergerComponent::GetComponentID()
 }
 
 
+//_____________________________________________________________________________________________________
 void
- AliHLTPHOSModuleMergerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
+AliHLTPHOSModuleMergerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
-  ///
   const AliHLTComponentDataType* pType=fgkInputDataTypes;
   while (pType->fID!=0) 
     {
@@ -82,14 +85,15 @@ void
 }
 
 
+//_____________________________________________________________________________________________________
 AliHLTComponentDataType 
 AliHLTPHOSModuleMergerComponent::GetOutputDataType()
 {
-  ///
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
 
+//_____________________________________________________________________________________________________
 void
 AliHLTPHOSModuleMergerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
 {
@@ -138,12 +142,13 @@ int  AliHLTPHOSModuleMergerComponent::DoEvent( const AliHLTComponentEventData& e
     }
 
   DumpData(1);
-  fEventCount++; 
+  fPhosEventCount++; 
   return 0;
   
 }//end DoEvent
 
 
+//_____________________________________________________________________________________________________
 int
 AliHLTPHOSModuleMergerComponent::DoInit( int argc, const char** argv )
 {
@@ -157,6 +162,7 @@ AliHLTPHOSModuleMergerComponent::DoInit( int argc, const char** argv )
 }
 
 
+//_____________________________________________________________________________________________________
 void
 AliHLTPHOSModuleMergerComponent::DumpData(int gain)
 {
@@ -191,6 +197,7 @@ AliHLTPHOSModuleMergerComponent::DumpData(int gain)
 
 
 
+//_____________________________________________________________________________________________________
 void
 AliHLTPHOSModuleMergerComponent::Reset()
 {
@@ -215,6 +222,8 @@ AliHLTPHOSModuleMergerComponent::Reset()
     }
 } // end Reset
 
+
+//_____________________________________________________________________________________________________
 void
 AliHLTPHOSModuleMergerComponent::ResetDataPtr()
 {
@@ -225,19 +234,23 @@ AliHLTPHOSModuleMergerComponent::ResetDataPtr()
 }
 
 
+//_____________________________________________________________________________________________________
 void 
 AliHLTPHOSModuleMergerComponent::SetEquippmentId(int id)
 {
   fEquippmentID = id;
 }
 
-int 
-AliHLTPHOSModuleMergerComponent::GetEquippmentId()
+
+//_____________________________________________________________________________________________________
+const int 
+AliHLTPHOSModuleMergerComponent::GetEquippmentId() const
 {
   return  fEquippmentID;
 }
 
 
+//_____________________________________________________________________________________________________
 AliHLTComponent*
 AliHLTPHOSModuleMergerComponent::Spawn()
 {
index 28dc167f3a5402b11addddd0438f2d972c330895..554dd53ecaeccd0deb6d99e29e6c9b42a7a74453 100644 (file)
@@ -21,11 +21,14 @@ class AliHLTPHOSModuleMergerComponent:public AliHLTProcessor
   virtual int DoInit(int argc =0, const char** argv = 0);
   virtual int Deinit();
   virtual int DoDeinit();
-  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
+  virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+                    AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
+                    AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
+
   void DumpData(int gain =0);
-  int GetEquippmentId();
+  const int GetEquippmentId() const;
   virtual const char* GetComponentID();
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list);
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   void SetEquippmentId(int id = 0);
@@ -36,7 +39,7 @@ class AliHLTPHOSModuleMergerComponent:public AliHLTProcessor
   void ResetDataPtr();
 
  private:
-  int fEventCount;                                                    /**<event counter*/
+  int fPhosEventCount;                                                    /**<event counter*/
   AliHLTUInt32_t fEquippmentID;                                       /**<Eguippment ID as given by ALICE*/
   Double_t fTmpChannelData[ALTRO_MAX_SAMPLES];                        /**<Array to tmporarily store samples from a single ALTRO*/ 
   Double_t fMaxValues[N_MODULES][N_ROWS_MOD][N_COLUMNS_MOD][N_GAINS]; /**<Tower/Crystal energies*/
index e8b422ea61c85cb7d709a5aef2a484b4c19d88fe..24c662c18eb37a5bbc840902149db55988638dd8 100644 (file)
@@ -22,20 +22,21 @@ using std::endl;
 
 ClassImp(AliHLTPHOSPulseGenerator) 
 
-/**
- * Default constructor, not to be called without argumets
- **/
-AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(): fAmplitude(0), fNSamples(0),fTau(0), fSampleFreq(0), fTZero(0), fDataPtr(0), fDT(0), fEvent(0)
+//______________________________________________________________________________________________________
+AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(): fAmplitude(0), fNSamples(0),fTau(0), fSampleFreq(0), fTZero(0), fDataPtr(0), fDT(0)
 {
   cout << "You cannot invoke the Pulsgenerator without parameters" << endl;
 }
 
-AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(const AliHLTPHOSPulseGenerator &): fAmplitude(0), fNSamples(0),fTau(0), fSampleFreq(0), fTZero(0), fDataPtr(0), fDT(0), fEvent(0)
+
+//______________________________________________________________________________________________________
+AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(const AliHLTPHOSPulseGenerator &): fAmplitude(0), fNSamples(0),fTau(0), fSampleFreq(0), fTZero(0), fDataPtr(0), fDT(0)
 {
   
 }
 
 
+//______________________________________________________________________________________________________
 AliHLTPHOSPulseGenerator::~AliHLTPHOSPulseGenerator()
 {
   delete fDataPtr;
@@ -46,20 +47,24 @@ AliHLTPHOSPulseGenerator::~AliHLTPHOSPulseGenerator()
  * Contruct a pulsegenrator object an initializes all necessary parameters
  * @param a Amplitude in ADC levels (0 -1023)
  * @param t0 Timedelay in nanoseconds of signal relative the first sample. This value should be between 0 and Ts
- * where Ts is the sample interval
+ * @param N the number of samples
+ * @param tau Rise time of the semi Gaussian signal
+ * @param fs samling rate
  **/
-AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(double a, double t0, int N, double t, double fs): fAmplitude(a), fNSamples(N),fTau(0), fSampleFreq(fs), fTZero(0), fDataPtr(0), fDT(0), fEvent(0)
+AliHLTPHOSPulseGenerator::AliHLTPHOSPulseGenerator(double a, double t0, int N, double tau, double fs): fAmplitude(a), fNSamples(N),fTau(0), fSampleFreq(fs), fTZero(0), fDataPtr(0), fDT(0)
 {
   fDataPtr = new double[100];
   SetAmplitude(a);
   SetDT(fs);
   SetTZero(t0);
   fNSamples=N;
-  fTau=t;
+  fTau=tau;
   fSampleFreq=fs;
+  //  MakePulse(fDataPtr,a);
   MakePulse(fDataPtr);
 }
 
+
 /**
  * Adds a baseline offset to the signal
  * @param baselineLevel The basline level to add
@@ -91,7 +96,7 @@ AliHLTPHOSPulseGenerator::AddNoise(double *dataPtr, double *sigma)
  * Adds correlated Gaussian noise with cutof frequency "cutoff"
  * @param dataPtr array of values
  * @param sigma noise amplitude in entities of ADC levels
- * @param -30DB cutoff frequency of the noise in entities of sampling frequency
+ * @param cutoff -30DB cutoff frequency of the noise in entities of sampling frequency
  **/
 void 
 AliHLTPHOSPulseGenerator::AddNoise(double *dataPtr, double *sigma, double cutoff)
@@ -100,12 +105,14 @@ AliHLTPHOSPulseGenerator::AddNoise(double *dataPtr, double *sigma, double cutoff
   cout << "AddNoise is not implemeted yet" << endl;
 }
 
+
+
 /**
  * Adds pretrigger samples to the sample array and returns 
  * a new array containing the pretrigger samples concatenatet
  * in front of the samples given by "samples"
- * @param The baseline value of the pretrigger samples
- * @param The sample array for which to add the pretrigger samples
+ * @param baselineLevel The baseline value of the pretrigger samples
+ * @param samples The sample array for which to add the pretrigger samples
  **/
 double *
 AliHLTPHOSPulseGenerator::AddPretriggerSamples(double baselineLevel, double *samples)
@@ -116,19 +123,10 @@ AliHLTPHOSPulseGenerator::AddPretriggerSamples(double baselineLevel, double *sam
 }
 
 
-/**
- * Returns the generated pulse with the parameters given in the constructor
- **/
-double *
-AliHLTPHOSPulseGenerator::GetPulse()
-{
-  return fDataPtr;
-}
-
-
 /**
  * Returns a Pulse with new amplidude and t0
  * @param a new amplidude, overriding the one given in the constructor
+ * @param t0 start time of the pulse relative to the sampling clock.
  **/
 double *
 AliHLTPHOSPulseGenerator::GetPulse(double a, double t0)
@@ -149,18 +147,23 @@ AliHLTPHOSPulseGenerator::Quantisize(double *dataPtr)
   //  cout << "Quantisize is not implemented yet" << endl;
 }
 
+
+//______________________________________________________________________________________________________
 void
 AliHLTPHOSPulseGenerator::SetAmplitude(double a)
 {
   fAmplitude=a;
 }
 
+
+//______________________________________________________________________________________________________
 void 
 AliHLTPHOSPulseGenerator::SetDT(double fs)
 {
   fDT=1/fs;  
 }
 
+//______________________________________________________________________________________________________
 void
 AliHLTPHOSPulseGenerator::SetTZero(double t0)
 {
@@ -168,6 +171,7 @@ AliHLTPHOSPulseGenerator::SetTZero(double t0)
 }
 
 
+//______________________________________________________________________________________________________
 void
 AliHLTPHOSPulseGenerator::MakePulse(double *dtaPtr)
 {
index ef472562fb20f877f7e86203a78a82e07b46ecbf..2f04d052fe4be633571c2b4c735019d3b7a8d01e 100644 (file)
@@ -5,39 +5,38 @@
 
 #include <Rtypes.h>
 
+
 class AliHLTPHOSPulseGenerator
 {
  public:
   AliHLTPHOSPulseGenerator();
   virtual ~AliHLTPHOSPulseGenerator();
-  AliHLTPHOSPulseGenerator(double a, double t0, const int N, const double t, const double f);
+  AliHLTPHOSPulseGenerator(double a, double t0, const int N , const double tau, const double fs);
   AliHLTPHOSPulseGenerator(const AliHLTPHOSPulseGenerator & );
   AliHLTPHOSPulseGenerator & operator = (const AliHLTPHOSPulseGenerator)
     {
       return *this; 
     }
-  void AddBaseline(double baselineLevel, double *samples);
+  void AddBaseline(double baselineLevel = 0, double *samples = 0);
   void AddNoise(double *dataPtr, double *sigma);
-  void AddNoise(double *dataPtr, double *sigma, double cutoff);
-  double *AddPretriggerSamples(double baslineLevel, double *samples);
-  double *GetPulse();
-  double *GetPulse(double a, double t0);
-  void Quantisize(double *dataPtr);
-  void SetAmplitude(double a);
-  void SetDT(double fs);
-  void SetTZero(double t0);
+  void AddNoise(double *dataPtr, double *sigma, double cutoff); 
+  double *AddPretriggerSamples(double baslineLevel = 0, double *samples = 0);
+  double *GetPulse(double a = 1, double t0 = 0);
+  void Quantisize(double *dataPtr = 0);
+  void SetAmplitude(double a = 1);
+  void SetDT(double fs = 10);
+  void SetTZero(double t0 = 0);
 
  private:
-  void MakePulse(double *dtaPtr);
-  void MakePulse(double *dtaPtr, double ampl);  
-  double  fAmplitude;
-  int     fNSamples;
-  double  fTau;
-  double  fSampleFreq;
-  double  fTZero;
-  double *fDataPtr; //[1000]
-  double  fDT;
-  double *fEvent; //[1000]
+  void MakePulse(double *dtaPtr = 0);
+  double  fAmplitude;         /**<The amplitude in entities of ADC counts of the genrated pulse*/
+  int     fNSamples;          /**<The number of samples of the genrated pulse*/
+  double  fTau;               /**<The risetime in entities of us of the generated pulse*/
+  double  fSampleFreq;        /**<The sampling frequency in MHz*/ 
+  double  fTZero;             /**<t0 of the genrated pulse in entities of nanoseconds*/   
+  double *fDataPtr; //[1000]  /**<pointer to array holding the genrated pulse*/ 
+  double  fDT;                /**<1/fSampleFreq*/
+  //  double *fEvent; //[1000]
   ClassDef(AliHLTPHOSPulseGenerator,1)
 };
 
index e9ca691ce205813593233d4850ba8719c477b123..5d96d2f823d3d31531245e958e6bc3fa9c01fe04 100644 (file)
@@ -36,7 +36,7 @@ AliHLTPHOSRawAnalyzer::AliHLTPHOSRawAnalyzer(AliHLTPHOSRawAnalyzer const&):fFloa
 
 /**
 * Main constructor
-* @param dataPtr Data array for wich a subarray will be taken to perform the fit
+* @param dtaPtr Data array for wich a subarray will be taken to perform the fit
 * @param fs the sampling frequency in entities of MHz. Needed in order to calculate physical time
 **/
 AliHLTPHOSRawAnalyzer::AliHLTPHOSRawAnalyzer(double *dtaPtr, double fs):fFloatDataPtr(0), fSampleFrequency(10), fTau(2), fDTof(99999), fDAmpl(99999), fStartIndex(0)
@@ -66,7 +66,7 @@ AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, int N)
 * Shifts the baseline with the amount given by baselineValue
 * If pretrigger samples are not present then the basline correction will be incorrect. 
 * @param dataPtr array for wich to correct the basline 
-* @param BaslineValue the basline value to subtract..
+* @param baselineValue the basline value to subtract..
 **/
 void 
 AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, double baselineValue)
@@ -82,7 +82,7 @@ AliHLTPHOSRawAnalyzer::BaselineCorrection(double *dataPtr, double baselineValue)
  * Physical time is found by multiplying  with the sampling intervall (Ts).
  **/
 float
-AliHLTPHOSRawAnalyzer::GetTiming()
+AliHLTPHOSRawAnalyzer::GetTiming() const 
 {
   return fDTof;
 } //end GetTiming
@@ -93,7 +93,7 @@ AliHLTPHOSRawAnalyzer::GetTiming()
  * Absolute enrgy is found by multiplying with offline calibration constants.
  **/
 float
-AliHLTPHOSRawAnalyzer::GetEnergy()
+AliHLTPHOSRawAnalyzer::GetEnergy() const
 {
   return fDAmpl;
 } //end GetEnergy
@@ -150,6 +150,7 @@ AliHLTPHOSRawAnalyzer::SetStartIndex(int index)
   fStartIndex = index;
 }
 
+
 void 
 AliHLTPHOSRawAnalyzer::SetTVector(Double_t *tVector, Int_t size)
 {
@@ -165,7 +166,7 @@ AliHLTPHOSRawAnalyzer::SetAVector(Double_t *aVector, Int_t size)
 
 
 Double_t
-AliHLTPHOSRawAnalyzer::GetMaxValue(Double_t *dta, Int_t size)
+AliHLTPHOSRawAnalyzer::GetMaxValue(Double_t *dta, Int_t size) const
 {
 
   Double_t tmpMax = 0;
index c5866ab87b367b12d45139191d7f6cbd23e982df..a3916194f9903dff988b2f297e5223cccaeb7ae3 100644 (file)
@@ -22,8 +22,8 @@ class AliHLTPHOSRawAnalyzer
   void BaselineCorrection(double *dataPtr, int N);
   void BaselineCorrection(double *dataPtr, double baselineValue);  
   int FindStartIndex(double treshold);
-  float GetTiming();
-  float GetEnergy();
+  float GetTiming() const;
+  float GetEnergy() const;
   void SetData(double *data);
   void SetSampleFreq(double freq);
   void SetStartIndex(int startIndex);
@@ -31,8 +31,12 @@ class AliHLTPHOSRawAnalyzer
   void MakeInitialGuess(int treshold);
   virtual void SetTVector(Double_t *tVector, Int_t size);
   virtual void SetAVector(Double_t *aVector, Int_t size);
-  virtual void Evaluate(int start = 0, int lenght = 100) = 0;
-  Double_t GetMaxValue(Double_t *dta, Int_t size);
+
+  /**
+   *Abstratct class documentation
+   */
+  virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
+  Double_t GetMaxValue(Double_t *dta, Int_t size) const;
 
  protected:
   Double_t   *fFloatDataPtr;   /**<Float representation of data that should be fitted */
index 10c22b57b6b727853e9616f8d1f55a01dfcfec27..25f6d13363394153039d3e7f97318c7ef0ce900d 100644 (file)
@@ -46,7 +46,7 @@ AliHLTPHOSRawAnalyzerChiSquareFit::~AliHLTPHOSRawAnalyzerChiSquareFit()
 
 
 /**
-* Extraction of timing and energy using the Peakfinde Algorithm.
+* Extraction of timing and energy using Chi Square Fit.
 * The. The parameters "start" and "length" defines a sub array  of the data array
 * that will be used for the the fit. If start+length must not exeed the total length
 * of the Data array. "start" must be chosen as close as possible to t0.
index 7bb58175b21741fd59bae1f6c31e2cb0b468a95a..64f4542ba19d0a695ca743585c734db05f707351 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
 #define ALIHLTPHOSRAWANALYZERCHISQUAREFIT_H
-#include <Rtypes.h>
+//#include <Rtypes.h>
 #include "TObject.h"
 #include "AliHLTPHOSRawAnalyzer.h"
 
index 948d329538cdaa51241c7a87a2f6e76620494a41..1ffde3bdd920622bf86bb2090eac154f04e6de5d 100644 (file)
@@ -47,16 +47,15 @@ int   AliHLTPHOSRawAnalyzerComponent::fgEventCount = 0;
 
 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent():AliHLTProcessor(), fAnalyzerPtr(0), 
-fEquippmentID(0), fModuleID(0), fRcuX(0), fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),fPrintInfo(kFALSE),fSendChannelData(kFALSE),fPrintInfoFrequncy(1000), 
+fkEquippmentID(0), fModuleID(0), fRcuX(0), fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),fPrintInfo(kFALSE),fSendChannelData(kFALSE),fPrintInfoFrequncy(1000), 
 fPHOSRawStream(0), fRawMemoryReader(0), fOutPtr(0)
 {
-  /**
-   *Default constructor
-   */
-} 
 
+} 
 
+//_________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerComponent::~AliHLTPHOSRawAnalyzerComponent()
 {
   /**
@@ -72,9 +71,9 @@ AliHLTPHOSRawAnalyzerComponent::~AliHLTPHOSRawAnalyzerComponent()
     }
 }
 
-
+//_________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & ) : AliHLTProcessor(), fAnalyzerPtr(0), 
-fEquippmentID(0), fModuleID(0), fRcuX(0), fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),fPrintInfo(kFALSE),fSendChannelData(kFALSE),fPrintInfoFrequncy(1000), 
+fkEquippmentID(0), fModuleID(0), fRcuX(0), fRcuZ(0),fRcuZOffset(0), fRcuXOffset(0),fPrintInfo(kFALSE),fSendChannelData(kFALSE),fPrintInfoFrequncy(1000), 
 fPHOSRawStream(0), fRawMemoryReader(0), fOutPtr(0)
 {
   /**
@@ -82,6 +81,7 @@ fPHOSRawStream(0), fRawMemoryReader(0), fOutPtr(0)
    */
 }
 
+//_________________________________________________________________________________________________
 int 
 AliHLTPHOSRawAnalyzerComponent::Deinit()
 {
@@ -90,10 +90,11 @@ AliHLTPHOSRawAnalyzerComponent::Deinit()
   return 0;
 }
 
+//_________________________________________________________________________________________________
 int 
 AliHLTPHOSRawAnalyzerComponent::DoDeinit()
 {
-  //See base class for documentation
+  //See base class or for documentation
   cout << "DoDeinit" << endl;
   Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSRawAnalyzerComponen DoDeinit");
 
@@ -110,14 +111,16 @@ AliHLTPHOSRawAnalyzerComponent::DoDeinit()
 
 }
 
+//_________________________________________________________________________________________________
 const char* 
 AliHLTPHOSRawAnalyzerComponent::GetComponentID()
 {
-  ///Returns the component ID
+  //Returns the component ID
   return "AliPhosTestRaw";
 }
 
 
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
 {
@@ -129,30 +132,30 @@ AliHLTPHOSRawAnalyzerComponent::GetInputDataTypes( vector<AliHLTComponentDataTyp
   }
 }
 
+//_________________________________________________________________________________________________
 AliHLTComponentDataType 
 AliHLTPHOSRawAnalyzerComponent::GetOutputDataType()
 {
   //See Base class for documentation 
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
+
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
 
 {
   //See Base class for documentation 
   constBase = 30;
-  //  inputMultiplier = 0.1;
   inputMultiplier = 1;
 }
 
-int AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
-                                             AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
-                                             AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
+//_________________________________________________________________________________________________
+int 
+AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks )
 {
-  /// Function that proceesses the raw date to give Energy and TOF for the
-  /// Individual cells/crystals.
-
+  //See base class for documentation
   AliHLTUInt8_t tmpMod    = 0;
   AliHLTUInt8_t tmpZ      = 0;
   AliHLTUInt8_t tmpX      = 0;
@@ -177,7 +180,7 @@ int AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evt
       mysize = 0;
       offset = tSize;
 
-      if ( iter->fDataType != AliHLTPHOSDefinitions::gkDDLPackedRawDataType )
+      if ( iter->fDataType != AliHLTPHOSDefinitions::fgkDDLPackedRawDataType )
        {
          continue;
        }
@@ -242,7 +245,7 @@ int AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evt
       FillBlockData( bd );
       bd.fOffset = offset;
       bd.fSize = mysize;
-      bd.fDataType = AliHLTPHOSDefinitions::gkCellEnergyDataType;
+      bd.fDataType = AliHLTPHOSDefinitions::fgkCellEnergyDataType;
       bd.fSpecification = 0xFFFFFFFF;
       outputBlocks.push_back( bd );
       tSize += mysize;
@@ -265,7 +268,7 @@ int AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evt
     {
       if(fgEventCount%fPrintInfoFrequncy == 0)
        {
-         cout <<"Analyzing event " <<  fgEventCount  << "for Equippment " << fEquippmentID << endl; 
+         cout <<"Analyzing event " <<  fgEventCount  << "for Equippment " << fkEquippmentID << endl; 
        }  
     }
   size = tSize;
@@ -273,11 +276,11 @@ int AliHLTPHOSRawAnalyzerComponent::DoEvent( const AliHLTComponentEventData& evt
 }//end DoEvent
 
 
-
+//_________________________________________________________________________________________________
 int
 AliHLTPHOSRawAnalyzerComponent::DoInit( int argc, const char** argv )
 {
-  /// See base class for documentation
+  // See headerfile for documentation
   fSendChannelData = kFALSE;
   fPrintInfo = kFALSE;
   Reset();
@@ -303,9 +306,9 @@ AliHLTPHOSRawAnalyzerComponent::DoInit( int argc, const char** argv )
          if(i+1 <= argc)
            {
              SetEquippmentID((AliHLTUInt16_t)atoi(argv[i+1]));
-             cout << "AliHLTPHOSRawAnalyzerComponent:DoInit  setting equippment ID to  " << fEquippmentID <<endl;
-             fRawMemoryReader->SetEquipmentID(fEquippmentID); 
-             SetCoordinates(fEquippmentID);
+             cout << "AliHLTPHOSRawAnalyzerComponent:DoInit  setting equippment ID to  " << fkEquippmentID <<endl;
+             fRawMemoryReader->SetEquipmentID(fkEquippmentID); 
+             SetCoordinates(fkEquippmentID);
              isSetEquippmentID = kTRUE;
            }
          else
@@ -359,7 +362,7 @@ AliHLTPHOSRawAnalyzerComponent::DoInit( int argc, const char** argv )
   return 0;
 }
 
-
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::DumpData(int gain) const
 {
@@ -381,6 +384,7 @@ AliHLTPHOSRawAnalyzerComponent::DumpData(int gain) const
 }
 
 
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::DumpChannelData(Double_t *data) const
 {
@@ -406,7 +410,7 @@ AliHLTPHOSRawAnalyzerComponent::DumpChannelData(Double_t *data) const
       cout << endl;
 }
 
-
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::Reset()
 {
@@ -429,6 +433,7 @@ AliHLTPHOSRawAnalyzerComponent::Reset()
 
 } // end Reset
 
+//_________________________________________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerComponent::ResetDataPtr(int startindex, int sampleCnt)
 {
@@ -439,31 +444,34 @@ AliHLTPHOSRawAnalyzerComponent::ResetDataPtr(int startindex, int sampleCnt)
     }
 }
 
+//_________________________________________________________________________________________________
 void 
 AliHLTPHOSRawAnalyzerComponent::SetEquippmentID(AliHLTUInt16_t id)
 {
-  ///Changing the value of the constant fEquippmentID
+  ///Changing the value of the constant fkEquippmentID
   ///by virue of const_cast as it should only be set once
   ///and then remain constant. It caannot be set in the class constructor
   ///because it should be set in the DoInit fucntion.
-  AliHLTUInt16_t  &ref = const_cast<AliHLTUInt16_t&>(fEquippmentID); 
+  AliHLTUInt16_t  &ref = const_cast<AliHLTUInt16_t&>(fkEquippmentID); 
   ref = id;
 }
 
 
+//_________________________________________________________________________________________________
 const AliHLTUInt16_t
 AliHLTPHOSRawAnalyzerComponent::GetEquippmentID() const
 {
   //shutting up the code checker
-  return  fEquippmentID;
+  return  fkEquippmentID;
 }
 
+//_________________________________________________________________________________________________
 void 
 AliHLTPHOSRawAnalyzerComponent::SetCoordinates(AliHLTUInt16_t equippmentID)
 {
  //shutting up the code checker
-  int rcuIndex =  (fEquippmentID - 1792)%N_RCUS_PER_MODULE;
-  fModuleID = (fEquippmentID  -1792 -rcuIndex)/N_RCUS_PER_MODULE;
+  int rcuIndex =  (fkEquippmentID - 1792)%N_RCUS_PER_MODULE;
+  fModuleID = (fkEquippmentID  -1792 -rcuIndex)/N_RCUS_PER_MODULE;
   
   if(rcuIndex == 0)
     {
@@ -494,7 +502,7 @@ AliHLTPHOSRawAnalyzerComponent::SetCoordinates(AliHLTUInt16_t equippmentID)
 
   cout <<"********InitInfo************"<< endl;
   cout <<"AliHLTPHOSRawAnalyzerComponent::SetCoordinate casted"<< endl;
-  cout <<"Equpippment ID =\t"<< fEquippmentID <<endl;
+  cout <<"Equpippment ID =\t"<< fkEquippmentID <<endl;
   cout <<"Module ID =\t"<<  (int)fModuleID<<endl;
   cout <<"RCUX =\t\t" << (int)fRcuX << endl;
   cout <<"RCUZ =\t\t" << (int)fRcuZ << endl;
index 5935bc85ceb37296bfdb86d5afa4c700c093aea3..2e6e435b32cb7c098b97d970b4c806c9cc9ecc02 100644 (file)
@@ -38,19 +38,22 @@ class AliHLTPHOSRawAnalyzerComponent: public AliHLTProcessor
   const AliHLTUInt16_t  GetEquippmentID() const;
   void SetCoordinates(AliHLTUInt16_t equippmentID =0);
   virtual const char* GetComponentID() = 0;
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  //  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list);
+
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   virtual AliHLTComponent* Spawn() = 0; 
-  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >& );
-
  protected:
   AliHLTPHOSRawAnalyzer *fAnalyzerPtr;  /**<Pointer to an analyzer object used for raw data anlysis*/ 
  private:
+  virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+                    AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
+                    AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ); 
   void Reset();
   void ResetDataPtr(int startindex = 0, int sampleCnt = 0);
   static int fgEventCount;       /**<Global event counter for this component*/
-  const AliHLTUInt16_t fEquippmentID;  /**<Equippment ID as defined by ALICE*/
+  const AliHLTUInt16_t fkEquippmentID;  /**<Equippment ID as defined by ALICE*/
   AliHLTUInt8_t  fModuleID;      /**<ID of the module this component read data from (0-4)*/
   AliHLTUInt8_t  fRcuX;          /**<X position of RCU the data from this Equippment comes from (0 or 1)*/
   AliHLTUInt8_t  fRcuZ;          /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/
index e7f2e15268d628ffc163024dc97c459f0e6704fe..6e778dc47b0467fe0d1ee03cb4bb8830ee920e36 100644 (file)
@@ -13,6 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+
 #include "AliHLTPHOSRawAnalyzerCrude.h"
 #include <iostream>
 
@@ -22,6 +23,7 @@ using std::endl;
 ClassImp(AliHLTPHOSRawAnalyzerCrude) 
 
 
+//____________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrude::AliHLTPHOSRawAnalyzerCrude(const AliHLTPHOSRawAnalyzerCrude&):AliHLTPHOSRawAnalyzer()
 {
 
@@ -33,13 +35,14 @@ AliHLTPHOSRawAnalyzerCrude::AliHLTPHOSRawAnalyzerCrude(const AliHLTPHOSRawAnalyz
  * a sequense of ADC digitized 10 bit integer values, however for performance reasons all values used in
  * calculation is of type double.
  **/
+//____________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrude::AliHLTPHOSRawAnalyzerCrude():AliHLTPHOSRawAnalyzer() 
 {
 
 }
 
 
-
+//____________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrude::~AliHLTPHOSRawAnalyzerCrude()
 {
 
@@ -57,9 +60,8 @@ AliHLTPHOSRawAnalyzerCrude::~AliHLTPHOSRawAnalyzerCrude()
 * "index + length" must not exeed the length of the data array set in the constructor.
 * @param start the start index of the subarray of the data array. 
 * @param length the number of samples to use starting from index 
-* @param tVector the peakfinder vector for timing
-* @param aVector the peakfinder vector for amplitude (energy)
 **/
+//____________________________________________________________________________
 void 
 AliHLTPHOSRawAnalyzerCrude::Evaluate(int start, int length)
 {
index 8dad1d5ce75df5046e0a699917099d8394fca8f1..986737f84a91e970fff74b58a2e286b6918a97fe 100644 (file)
@@ -1,10 +1,11 @@
 #ifndef ALIHLTPHOSRAWANALYZERCRUDE_H
 #define ALIHLTPHOSRAWANALYZERCRUDE_H
-#include <Rtypes.h>
-#include "TObject.h"
+//#include <Rtypes.h>
+//#include "TObject.h"
 #include "AliHLTPHOSRawAnalyzer.h"
 
 
+
 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                          */
 
index 0d7b394657435c16323924e780ac000b4dde4c8a..4bf127a78c41d92eea6dbb50c8507666a500afea 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+
 #include "AliHLTPHOSRawAnalyzerCrudeComponent.h"
 #include "AliHLTPHOSRawAnalyzerCrude.h"
 
 AliHLTPHOSRawAnalyzerCrudeComponent gAliHLTPHOSRawAnalyzerCrudeComponent;
 
+//___________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent()
 {
   fAnalyzerPtr = new AliHLTPHOSRawAnalyzerCrude();
 } 
 
+//___________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrudeComponent::~AliHLTPHOSRawAnalyzerCrudeComponent()
 {
 
 }
 
-
+//___________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent(const AliHLTPHOSRawAnalyzerCrudeComponent & ):AliHLTPHOSRawAnalyzerComponent()
 {
 
 }
 
+//___________________________________________________________________________
 const char* 
 AliHLTPHOSRawAnalyzerCrudeComponent::GetComponentID()
 {
   return "PhosRawCrude";
 }
 
+//___________________________________________________________________________
 AliHLTComponent*
 AliHLTPHOSRawAnalyzerCrudeComponent::Spawn()
 {
index cec758f6f6a09ce41deef1b5d674b46d55280382..e6b7efbcada30d279e7980568802f719949f6c8c 100644 (file)
@@ -7,6 +7,7 @@
  * See cxx source for full Copyright notice  */ 
 
 
+
 class AliHLTPHOSRawAnalyzerCrudeComponent: public AliHLTPHOSRawAnalyzerComponent
 {
  public:
index f5a2366432cad0469fbb89717a0b47b67ec1f901..9ec1b03b8bc441e0bd870f75f8b58a43b3c94cc4 100644 (file)
@@ -22,10 +22,10 @@ using std::endl;
 
 ClassImp(AliHLTPHOSRawAnalyzerKLevel) 
 
-
-AliHLTPHOSRawAnalyzerKLevel::AliHLTPHOSRawAnalyzerKLevel(const AliHLTPHOSRawAnalyzerKLevel&):AliHLTPHOSRawAnalyzer(), tKLevel(0)
+//________________________________________________________________________________________________________
+AliHLTPHOSRawAnalyzerKLevel::AliHLTPHOSRawAnalyzerKLevel(const AliHLTPHOSRawAnalyzerKLevel&):AliHLTPHOSRawAnalyzer(), fTKLevel(0)
 {
-
+  
 }
 
 
@@ -35,12 +35,14 @@ AliHLTPHOSRawAnalyzerKLevel::AliHLTPHOSRawAnalyzerKLevel(const AliHLTPHOSRawAnal
  * a sequense of ADC digitized 10 bit integer values, however for performance reasons all values used in
  * calculation is of type double.
  **/
-AliHLTPHOSRawAnalyzerKLevel::AliHLTPHOSRawAnalyzerKLevel():AliHLTPHOSRawAnalyzer(), tKLevel(0) 
+//________________________________________________________________________________________________________
+AliHLTPHOSRawAnalyzerKLevel::AliHLTPHOSRawAnalyzerKLevel():AliHLTPHOSRawAnalyzer(), fTKLevel(0) 
 {
   cout <<"You cannot invoke the Fitter without arguments"<<endl;;
 }
 
 
+//________________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerKLevel::~AliHLTPHOSRawAnalyzerKLevel()
 {
 
@@ -49,7 +51,7 @@ AliHLTPHOSRawAnalyzerKLevel::~AliHLTPHOSRawAnalyzerKLevel()
 
 
 /**
-* Extraction of timing and energy using the Peakfinde Algorithm.
+* Extraction of timing and energy using the K-Level method.
 * The. The parameters "start" and "length" defines a sub array  of the data array
 * that will be used for the the fit. If start+length must not exeed the total length
 * of the Data array. "start" must be chosen as close as possible to t0.
@@ -59,6 +61,7 @@ AliHLTPHOSRawAnalyzerKLevel::~AliHLTPHOSRawAnalyzerKLevel()
 * @param start the start index of the subarray of the data array. 
 * @param length the number of samples to use starting from index 
 **/
+//________________________________________________________________________________________________________
 void 
 AliHLTPHOSRawAnalyzerKLevel::Evaluate(int start, int length)
 {
index 3ee478a094d85d163cc768cc5cd2ed5f75d3ab61..b8b2014c78c13ddd8c51fb7b9bcea0e2cabc8800 100644 (file)
@@ -20,7 +20,7 @@ class AliHLTPHOSRawAnalyzerKLevel : public AliHLTPHOSRawAnalyzer
   virtual ~AliHLTPHOSRawAnalyzerKLevel();
   virtual void Evaluate(int start = 0, int lenght = 100);
  private:
-  double tKLevel;
+  double fTKLevel; /**<K-Level*/
   ClassDef(AliHLTPHOSRawAnalyzerKLevel, 2) 
   
     };
index ac3327fbfdc8095112a624b26a4ac34674ef602a..9eddecc73ada4cbb3e88083614b861cb00c8f1be 100644 (file)
@@ -22,14 +22,14 @@ using std::endl;
 
 ClassImp(AliHLTPHOSRawAnalyzerLMS) 
 
-
+//_____________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS(const AliHLTPHOSRawAnalyzerLMS&):AliHLTPHOSRawAnalyzer()
 {
 
 }
 
 
-
+//_____________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS():AliHLTPHOSRawAnalyzer() 
 {
   cout <<"You cannot invoke the Fitter without arguments"<<endl;;
@@ -38,9 +38,10 @@ AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS():AliHLTPHOSRawAnalyzer()
 
 /**
 * Main constructor
-* @param dataPtr Data array for wich a subarray will be taken to perform the fit
+* @param dtaPtr Data array for wich a subarray will be taken to perform the fit
 * @param fs the sampling frequency in entities of MHz. Needed in order to calculate physical time
 **/
+//_____________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS(double *dtaPtr, double fs):AliHLTPHOSRawAnalyzer() 
 {
   fFloatDataPtr = dtaPtr;  
@@ -48,13 +49,14 @@ AliHLTPHOSRawAnalyzerLMS::AliHLTPHOSRawAnalyzerLMS(double *dtaPtr, double fs):Al
 } //end   AliHLTPHOSRawAnalyzerLMS 
 
 
+//_____________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerLMS::~AliHLTPHOSRawAnalyzerLMS()
 {
 
 } //end AliHLTPHOSRawAnalyzerLMS
 
 
-
+//_____________________________________________________________________________________________________
 void 
 AliHLTPHOSRawAnalyzerLMS::Evaluate(int start, int length)
 {
index b3f6bf1b85da01cc6ebc958b1ce8fe7b4dd4b6b6..b964352ca5a6b465f122544dacd3b5918702e9d6 100644 (file)
@@ -23,7 +23,7 @@ class AliHLTPHOSRawAnalyzerLMS : public AliHLTPHOSRawAnalyzer
   virtual void Evaluate(int start = 0, int lenght = 100);
 
  private:
-  double   kfMCovarPtrPtr[1008][1008]; /**<Covariance matrix of the measurements*/
+  double   fMCovarPtrPtr[1008][1008]; /**<Covariance matrix of the measurements*/
   double   fPCovarPtrPtr[1008][1008];   /**<Covariance matrix of the estimated parameters*/
   ClassDef(AliHLTPHOSRawAnalyzerLMS, 2) 
   
index f7e20a155af0da32f06d89cec182f853afdd8d35..559bdf3cc1d59c5f9b1e8c3defc3a7941e09db23 100644 (file)
@@ -45,7 +45,7 @@ AliHLTPHOSRawAnalyzerPeakFinder::AliHLTPHOSRawAnalyzerPeakFinder():AliHLTPHOSRaw
 }
 
 
-
+//___________________________________________________________________
 AliHLTPHOSRawAnalyzerPeakFinder::~AliHLTPHOSRawAnalyzerPeakFinder()
 {
 
@@ -70,6 +70,7 @@ AliHLTPHOSRawAnalyzerPeakFinder::SetTVector(Double_t *tVec, Int_t size)
 }
 
 
+//___________________________________________________________________
 void
 AliHLTPHOSRawAnalyzerPeakFinder::SetAVector(Double_t *aVec, Int_t size)
 {
@@ -89,21 +90,10 @@ AliHLTPHOSRawAnalyzerPeakFinder::SetAVector(Double_t *aVec, Int_t size)
     }
 }
 
-/**
-* Extraction of timing and energy using the Peakfinde Algorithm.
-* The. The parameters "start" and "length" defines a sub array  of the data array
-* that will be used for the the fit. If start+length must not exeed the total length
-* of the Data array. "start" must be chosen as close as possible to t0.
-* The baseline must also be subtracted.
-* The length of "tVector" and "aVector" mus be equal to length.
-* "index + length" must not exeed the length of the data array set in the constructor.
-* @param start the start index of the subarray of the data array. 
-* @param length the number of samples to use starting from index 
-* @param tVector the peakfinder vector for timing
-* @param aVector the peakfinder vector for amplitude (energy)
-**/
+
+//___________________________________________________________________
 void 
-AliHLTPHOSRawAnalyzerPeakFinder::Evaluate(int start, int length)
+AliHLTPHOSRawAnalyzerPeakFinder::Evaluate(Int_t start, Int_t length)
 {
   fDTof = 0;
   fDAmpl = 0;
@@ -111,11 +101,12 @@ AliHLTPHOSRawAnalyzerPeakFinder::Evaluate(int start, int length)
 
   if(fTVectorPtr == 0 || fAVectorPtr == 0)
     {
-      //      printf("\nError: the peakfinder vectors are not specified, aborting !!!\n");
+
     }
   else
     {
-      
+     
       if(length <  fTVectorSize)
        {
          tmpLength = length;
index a624d1c3c6f7ac1338f115d2db6833d7fdc9f3ea..eda89c45b632b730727da106071ac08bb787e899 100644 (file)
@@ -12,14 +12,54 @@ class AliHLTPHOSRawAnalyzerPeakFinder : public AliHLTPHOSRawAnalyzer
  public:
   AliHLTPHOSRawAnalyzerPeakFinder();
   AliHLTPHOSRawAnalyzerPeakFinder(const AliHLTPHOSRawAnalyzerPeakFinder & );
-  AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder)
+  AliHLTPHOSRawAnalyzerPeakFinder & operator = (const AliHLTPHOSRawAnalyzerPeakFinder &)
     {
       return *this; 
     }
   virtual ~AliHLTPHOSRawAnalyzerPeakFinder();
-  virtual void SetTVector(Double_t *tVect, Int_t size);
-  virtual void SetAVector(Double_t *aVect, Int_t size);
-  virtual void Evaluate(Int_t start = 0, Int_t lenght = 100);
+
+
+/**
+* Extraction of timing and energy using the Peakfinde Algorithm.
+* The. The parameters "start" and "length" defines a sub array  of the data array
+* that will be used for the the fit. If start+length must not exeed the total length
+* of the Data array. "start" must be chosen as close as possible to t0.
+* The baseline must also be subtracted.
+* The length of "tVector" and "aVector" mus be equal to length.
+* "index + length" must not exeed the length of the data array set in the constructor.
+* @param tVectPtr the peakfinder vector for timing
+* @param size size in number of values of the time vector
+*/
+  virtual void SetTVector(Double_t *tVectPtr =0, Int_t size = 0);
+
+
+
+/**
+* Extraction of timing and energy using the Peakfinde Algorithm.
+* The. The parameters "start" and "length" defines a sub array  of the data array
+* that will be used for the the fit. If start+length must not exeed the total length
+* of the Data array. "start" must be chosen as close as possible to t0.
+* The baseline must also be subtracted.
+* The length of "tVector" and "aVector" mus be equal to length.
+* "index + length" must not exeed the length of the data array set in the constructor.
+* @param aVectPtr the peakfinder vector for timing
+* @param size size in number of values of the time vector
+*/
+  virtual void SetAVector(Double_t *aVectPtr =0, Int_t size =0);
+
+
+/**
+* Extraction of timing and energy using the Peakfinde Algorithm.
+* The. The parameters "start" and "length" defines a sub array  of the data array
+* that will be used for the the fit. If start+length must not exeed the total length
+* of the Data array. "start" must be chosen as close as possible to t0.
+* The baseline must also be subtracted.
+* The length of "tVector" and "aVector" mus be equal to length.
+* "index + length" must not exeed the length of the data array set in the constructor.
+* @param start the start index of the subarray of the data array. 
+* @param length the number of samples to use starting from index 
+**/
+  virtual void Evaluate(Int_t start = 0, Int_t length = 100);
  private:
   Double_t   *fTVectorPtr;  //[1008]        /**<Peakfinder vector for TOF reconstruction*/
   Double_t   *fAVectorPtr;  //[1008]        /**<Peakfinder vector for Energy reconstruction*/  
index d1ad9ec266f5dee2b884c1d4b5fbe0ec7fa4a385..984f9a8cd1517e813c62d883a2cfad7c8fa7d99b 100644 (file)
 #include "AliHLTPHOSCommonDefs.h"
 
 
+
+
 AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
 
+//___________________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent():AliHLTPHOSRawAnalyzerComponent()
 {
   fAnalyzerPtr = new AliHLTPHOSRawAnalyzerPeakFinder();
@@ -36,24 +39,28 @@ AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderCompone
 } 
 
 
+//___________________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerPeakFinderComponent::~AliHLTPHOSRawAnalyzerPeakFinderComponent()
 {
 
 }
 
 
+//___________________________________________________________________________________________________________
 AliHLTPHOSRawAnalyzerPeakFinderComponent::AliHLTPHOSRawAnalyzerPeakFinderComponent(const AliHLTPHOSRawAnalyzerPeakFinderComponent & ) : AliHLTPHOSRawAnalyzerComponent()
 {
 
 }
 
 
+//___________________________________________________________________________________________________________
 const char* 
 AliHLTPHOSRawAnalyzerPeakFinderComponent::GetComponentID()
 {
   return "PhosRawPeakFinder";
 }
 
+//___________________________________________________________________________________________________________
 Bool_t 
 AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector()
 {
@@ -61,6 +68,7 @@ AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector()
 }
 
 
+//___________________________________________________________________________________________________________
 Bool_t 
 AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector(int startIndex, int nSamples, int tau, int fs)
 {
@@ -98,6 +106,7 @@ AliHLTPHOSRawAnalyzerPeakFinderComponent::LoadPFVector(int startIndex, int nSamp
 }
 
 
+//___________________________________________________________________________________________________________
 AliHLTComponent*
 AliHLTPHOSRawAnalyzerPeakFinderComponent::Spawn()
 {
index 31bf5d4ebc1e3c95389c85b02ba333f5eed94552..f5028741554e0da2f378d50923d6e56bf1254ddc 100644 (file)
@@ -4,16 +4,16 @@
 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice  */ 
 
+
 #include "AliHLTPHOSRawAnalyzerComponent.h"
 
 class AliHLTPHOSRawAnalyzerPeakFinderComponent: public AliHLTPHOSRawAnalyzerComponent
 {
  public:
   AliHLTPHOSRawAnalyzerPeakFinderComponent();
-  ~AliHLTPHOSRawAnalyzerPeakFinderComponent();
+  virtual ~AliHLTPHOSRawAnalyzerPeakFinderComponent();
   virtual const char* GetComponentID();
   virtual AliHLTComponent* Spawn();
-  //static AliHLTPHOSRawAnalyzerPeakFinderComponent gAliHLTPHOSRawAnalyzerPeakFinderComponent;
  private:
   Bool_t LoadPFVector(); 
   Bool_t LoadPFVector(int startindex, int Nsamples, int tau, int fs);
index 705f3d679c11746b8de8e244ac458d12d8ce3b30..79cc44412d920ce8ec84bde1be712eecab09bf61 100644 (file)
@@ -94,7 +94,7 @@ void
 AliHLTComponentDataType 
 AliHLTPHOSRcuHistogramProducerComponent::GetOutputDataType()
 {
-  return AliHLTPHOSDefinitions::gkCellEnergyDataType;
+  return AliHLTPHOSDefinitions::fgkCellEnergyDataType;
 }
 
 
@@ -165,7 +165,7 @@ int  AliHLTPHOSRcuHistogramProducerComponent::DoEvent( const AliHLTComponentEven
   FillBlockData( bd );
   bd.fOffset = offset;
   bd.fSize = mysize;
-  bd.fDataType = AliHLTPHOSDefinitions::gkCellAccumulatedEnergyDataType;
+  bd.fDataType = AliHLTPHOSDefinitions::fgkCellAccumulatedEnergyDataType;
   bd.fSpecification = 0xFFFFFFFF;
   outputBlocks.push_back( bd );
   tSize += mysize;
index 3efba03f6eacc8afa78860308eb625bde803ed16..ffa0efdcb825702c68b18389233aa11e66ea9ca7 100644 (file)
@@ -21,9 +21,15 @@ class AliHLTPHOSRcuHistogramProducerComponent:public AliHLTProcessor
   virtual int DoInit( int argc, const char** argv );
   virtual int Deinit();
   virtual int DoDeinit();
-  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*,
-                     AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
-  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  //  virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*,
+  //                 AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
+  virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
+                    AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
+                    AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
+
+  //  virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
+  virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>&);
+
   virtual AliHLTComponentDataType GetOutputDataType();
   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
   virtual AliHLTComponent* Spawn();