First working implementation of the online cell energy/time evaluation. The
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerComponent.h
CommitLineData
ee7849e6 1
2
3#ifndef ALIHLTPHOSRAWANALYZERCOMPONENT_H
4#define ALIHLTPHOSRAWANALYZERCOMPONENT_H
5
cbab66dd 6/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
8
cbab66dd 9#include "AliHLTProcessor.h"
10#include "AliHLTPHOSRawAnalyzer.h"
3e4d8f7a 11#include "AliRawReaderMemory.h"
0a211711 12#include "AliCaloRawStream.h"
13#include "AliHLTPHOSDefinitions.h"
2947a32c 14#include "TH2.h"
0a211711 15
16
17/*
18#include "AliHLTTPCRawDataUnpackerComponent.h"
19#include "AliTPCRawStream.h"
20#include "AliRawDataHeader.h"
21#include "AliRawReaderMemory.h"
22#include "AliHLTTPCRawDataFormat.h"
23#include "AliHLTTPCDigitData.h"
24#include "AliHLTTPCTransform.h"
25#include <stdlib.h>
26#include <errno.h>
27*/
cbab66dd 28
29class AliHLTPHOSRawAnalyzerComponent: public AliHLTProcessor
30{
31 public:
32 AliHLTPHOSRawAnalyzerComponent();
33 ~AliHLTPHOSRawAnalyzerComponent();
34 AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & );
ef7b66ed 35 AliHLTPHOSRawAnalyzerComponent & operator = (const AliHLTPHOSRawAnalyzerComponent &)
cbab66dd 36 {
37 return *this;
38 };
39
0a211711 40
41
ee7849e6 42 virtual int DoInit( int argc, const char** argv );
cbab66dd 43 virtual int Deinit();
44 virtual int DoDeinit();
2947a32c 45 void DumpData();
ee7849e6 46
47 virtual const char* GetComponentID() = 0;
48
cbab66dd 49 virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
50 virtual AliHLTComponentDataType GetOutputDataType();
eccb54e8 51 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
ee7849e6 52 virtual AliHLTComponent* Spawn() = 0;
53
cbab66dd 54 virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
55
56 // private:
57 protected:
58 AliHLTPHOSRawAnalyzer *analyzerPtr;
2947a32c 59 void Reset();
60 void ResetDataPtr();
cbab66dd 61
ee7849e6 62 private:
2947a32c 63
64
ee7849e6 65 int eventCount;
2947a32c 66
67
0a211711 68 // AliRawReaderMemory *fRawMemoryReader;
69 // AliTPCRawStream *fTPCRawStream;
2947a32c 70 Double_t fTmpChannelData[1008];
71 // Int_t fMaxValues[5][64][56][2];
72 Double_t fMaxValues[5][64][56][2];
0a211711 73
2947a32c 74 // Int_t fMaxValuesLG[5][64][56][2];
75 TH2S *legoPlotPtr;
76 // TH2S *legoPlotLgPtr;
0a211711 77 AliCaloRawStream *fPHOSRawStream;
78 AliRawReaderMemory *fRawMemoryReader;
79 static const AliHLTComponentDataType inputDataTypes[];
80 static const AliHLTComponentDataType outputDataType;
ee7849e6 81
cbab66dd 82};
83#endif