]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSModuleMergerComponent.h
New on per RCU data containers
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSModuleMergerComponent.h
CommitLineData
67b4900f 1#ifndef ALIHLTPHOSMODULEMERGERCOMPONENT_H
2#define ALIHLTPHOSMODULEMERGERCOMPONENT_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 "AliHLTPHOSDefinitions.h"
415cfd05 9#include "AliHLTPHOSCommonDefs.h"
67b4900f 10
415cfd05 11class AliHLTPHOSModuleMergerComponent:public AliHLTProcessor
67b4900f 12{
13 public:
14 AliHLTPHOSModuleMergerComponent();
15 ~AliHLTPHOSModuleMergerComponent();
16 AliHLTPHOSModuleMergerComponent(const AliHLTPHOSModuleMergerComponent & );
17 AliHLTPHOSModuleMergerComponent & operator = (const AliHLTPHOSModuleMergerComponent &)
05be0766 18 {
67b4900f 19 return *this;
20 };
67b4900f 21 virtual int DoInit( int argc, const char** argv );
22 virtual int Deinit();
23 virtual int DoDeinit();
415cfd05 24 virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&);
25
05be0766 26 void DumpData(int gain);
415cfd05 27
05be0766 28 int GetEquippmentId();
29 virtual const char* GetComponentID();
30 virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&);
67b4900f 31 virtual AliHLTComponentDataType GetOutputDataType();
32 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
415cfd05 33 void SetEquippmentId(int id);
bd3d5aa2 34 virtual AliHLTComponent* Spawn();
415cfd05 35
67b4900f 36 protected:
67b4900f 37 void Reset();
38 void ResetDataPtr();
39
40 private:
41 int fEventCount;
bd3d5aa2 42 AliHLTUInt32_t fEquippmentID;
415cfd05 43 Double_t fTmpChannelData[ALTRO_MAX_SAMPLES];
44 Double_t fMaxValues[N_MODULES][N_ROWS_MOD][N_COLUMNS_MOD][N_GAINS];
67b4900f 45 static const AliHLTComponentDataType inputDataTypes[];
46 static const AliHLTComponentDataType outputDataType;
67b4900f 47};
48
49#endif