Cosmetic changes
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerComponent.h
CommitLineData
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
13class AliHLTPHOSRawAnalyzerComponent: public AliHLTProcessor
14{
15 public:
16 AliHLTPHOSRawAnalyzerComponent();
17 ~AliHLTPHOSRawAnalyzerComponent();
18 AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & );
ef7b66ed 19 AliHLTPHOSRawAnalyzerComponent & operator = (const AliHLTPHOSRawAnalyzerComponent &)
cbab66dd 20 {
21 return *this;
22 };
23
ee7849e6 24 virtual int DoInit( int argc, const char** argv );
cbab66dd 25 virtual int Deinit();
26 virtual int DoDeinit();
2947a32c 27 void DumpData();
ef408bb3 28 void SetEquippmentId(int id);
29 int GetEquippmentId();
ee7849e6 30 virtual const char* GetComponentID() = 0;
cbab66dd 31 virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
32 virtual AliHLTComponentDataType GetOutputDataType();
eccb54e8 33 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
ee7849e6 34 virtual AliHLTComponent* Spawn() = 0;
cbab66dd 35 virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
36
cbab66dd 37 protected:
ef408bb3 38 AliHLTPHOSRawAnalyzer *analyzerPtr;
39 void Reset();
40 void ResetDataPtr();
cbab66dd 41
ee7849e6 42 private:
ef408bb3 43 int fEventCount;
44 int fEquippmentId;
45 Double_t fTmpChannelData[1008];
46 Double_t fMaxValues[5][64][56][2];
47 AliCaloRawStream *fPHOSRawStream;
48 AliRawReaderMemory *fRawMemoryReader;
49 static const AliHLTComponentDataType inputDataTypes[];
50 static const AliHLTComponentDataType outputDataType;
51
cbab66dd 52};
53#endif