1 #ifndef ALIHLTPHOSRAWANALYZERCOMPONENT_H
2 #define ALIHLTPHOSRAWANALYZERCOMPONENT_H
4 /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 #include "AliHLTProcessor.h"
8 #include "AliHLTPHOSRawAnalyzer.h"
9 #include "AliRawReaderMemory.h"
10 #include "AliCaloRawStream.h"
11 #include "AliHLTPHOSDefinitions.h"
13 class AliHLTPHOSRawAnalyzerComponent: public AliHLTProcessor
16 AliHLTPHOSRawAnalyzerComponent();
17 ~AliHLTPHOSRawAnalyzerComponent();
18 AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & );
19 AliHLTPHOSRawAnalyzerComponent & operator = (const AliHLTPHOSRawAnalyzerComponent &)
24 virtual int DoInit( int argc, const char** argv );
26 virtual int DoDeinit();
28 void SetEquippmentID(AliHLTUInt32_t id);
29 int GetEquippmentID();
30 void SetCoordinates( AliHLTUInt32_t equippmentID);
31 virtual const char* GetComponentID() = 0;
32 virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
33 virtual AliHLTComponentDataType GetOutputDataType();
34 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
35 virtual AliHLTComponent* Spawn() = 0;
36 virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
39 AliHLTPHOSRawAnalyzer *analyzerPtr;
45 AliHLTUInt32_t fEquippmentID;
48 AliHLTUInt16_t fRcuRowOffeset;
49 AliHLTUInt16_t fRcuColOffeset;
50 AliHLTUInt16_t fModuleID;
51 Double_t fTmpChannelData[1008];
52 Double_t fMaxValues[5][64][56][2];
53 AliCaloRawStream *fPHOSRawStream;
54 AliRawReaderMemory *fRawMemoryReader;
55 static const AliHLTComponentDataType inputDataTypes[];