]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSRawAnalyzerComponent.h
Coding convention & removal of some obsolete code
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerComponent.h
1 #ifndef ALIHLTPHOSRAWANALYZERCOMPONENT_H
2 #define ALIHLTPHOSRAWANALYZERCOMPONENT_H
3
4 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                          */
6
7 #include "AliHLTProcessor.h"
8 #include "AliHLTPHOSRawAnalyzer.h"
9 #include "AliRawReaderMemory.h"
10 #include "AliCaloRawStream.h"
11 #include "AliHLTPHOSDefinitions.h"
12
13 class AliHLTPHOSRcuCellEnergyDataStruct;
14
15
16 class AliHLTPHOSRawAnalyzerComponent: public AliHLTProcessor
17 {
18  public:
19
20   AliHLTPHOSRawAnalyzerComponent();
21   ~AliHLTPHOSRawAnalyzerComponent();
22   AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & );
23   AliHLTPHOSRawAnalyzerComponent & operator = (const AliHLTPHOSRawAnalyzerComponent &)
24    {
25       return *this;
26    };
27
28   virtual int DoInit( int argc, const char** argv );
29   virtual int Deinit();
30   virtual int DoDeinit();
31   void DumpData();
32   void DumpChannelData(Double_t *data); 
33   void SetEquippmentID(AliHLTUInt32_t id);
34   int GetEquippmentID();
35   void SetCoordinates( AliHLTUInt32_t equippmentID);
36   virtual const char* GetComponentID() = 0;
37   virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
38   virtual AliHLTComponentDataType GetOutputDataType();
39   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
40   virtual AliHLTComponent* Spawn() = 0;
41   virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
42
43  protected:
44   AliHLTPHOSRawAnalyzer *analyzerPtr; 
45   void Reset();
46   void ResetDataPtr();
47
48  private:
49   static int fEventCount;
50   AliHLTUInt32_t fEquippmentID;
51   AliHLTUInt16_t fRcuX;
52   AliHLTUInt16_t fRcuZ;
53   AliHLTUInt16_t fRcuRowOffeset;
54   AliHLTUInt16_t fRcuColOffeset;
55   AliHLTUInt16_t fModuleID;
56   Double_t fTmpChannelData[1008];
57   Double_t fMaxValues[5][64][56][2];
58   AliCaloRawStream *fPHOSRawStream;
59   AliRawReaderMemory *fRawMemoryReader;
60   AliHLTPHOSRcuCellEnergyDataStruct* fOutPtr;
61   static const AliHLTComponentDataType inputDataTypes[];
62 };
63 #endif