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