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 */
8 //Base class for PHOS HLT raw data analysis components
9 // see cxx file for more details
11 #include "AliHLTPHOSDefinitions.h"
12 #include "AliHLTPHOSCommonDefs.h"
13 #include "AliHLTPHOSProcessor.h"
16 class AliRawReaderMemory;
17 class AliCaloRawStream;
18 class AliHLTPHOSRawAnalyzer;
19 class AliHLTPHOSRcuCellEnergyDataStruct;
20 class AliHLTPHOSRcuChannelDataStruct;
22 class AliHLTPHOSRawAnalyzerComponent: public AliHLTPHOSProcessor
25 AliHLTPHOSRawAnalyzerComponent();
26 virtual ~AliHLTPHOSRawAnalyzerComponent();
27 AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & );
28 AliHLTPHOSRawAnalyzerComponent & operator = (const AliHLTPHOSRawAnalyzerComponent &)
33 virtual int DoInit(int argc =0, const char** argv = 0);
35 void DumpData(int gain =0) const;
36 void DumpChannelData(Double_t *data =0) const;
37 virtual const char* GetComponentID() = 0;
38 virtual void GetInputDataTypes( vector <AliHLTComponentDataType>& list);
39 virtual AliHLTComponentDataType GetOutputDataType();
40 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier);
41 virtual AliHLTComponent* Spawn() = 0;
43 AliHLTPHOSRawAnalyzer *fAnalyzerPtr; /**<Pointer to an analyzer object used for raw data anlysis*/
46 virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
47 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
48 AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
50 void ResetDataPtr(int startindex = 0, int sampleCnt = 0);
51 Bool_t fSendChannelData; /**<wether or not to send raw data from the component into shared memory*/
52 Double_t fTmpChannelData[ALTRO_MAX_SAMPLES]; /**<temporary variable to store raw samples from a single altro channel*/
53 Double_t fMaxValues[N_MODULES][N_ROWS_MOD][N_COLUMNS_MOD][N_GAINS]; /**<array to store cell energies*/
54 AliCaloRawStream *fPHOSRawStream; /**<Streamer for PHOS raw data, used by fPHOSRawMemory reader*/
55 AliRawReaderMemory *fRawMemoryReader; /**<Decoder to read PHOS raw data on the altro format*/
56 AliHLTPHOSRcuCellEnergyDataStruct* fOutPtr; /**<Pointer to outputbuffer to write results from the component into shared memory*/