]>
Commit | Line | Data |
---|---|---|
753a19c1 | 1 | #ifndef ALIHLTPHOSHISTOGRAMPRODUCER_H |
2 | #define ALIHLTPHOSHISTOGRAMPRODUCER_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" | |
9 | #include "AliHLTPHOSCommonDefs.h" | |
10 | #include "TH2.h" | |
11 | #include "AliHLTPHOSCommonDefs.h" | |
12 | #include "AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h" | |
13 | ||
14 | ||
753a19c1 | 15 | class AliHLTPHOSHistogramProducerComponent:public AliHLTProcessor |
16 | { | |
17 | public: | |
18 | AliHLTPHOSHistogramProducerComponent(); | |
955f6ca8 | 19 | |
a0e0bc78 | 20 | // ~AliHLTPHOSHistogramProducerComponent(); |
21 | virtual ~AliHLTPHOSHistogramProducerComponent(); | |
753a19c1 | 22 | AliHLTPHOSHistogramProducerComponent(const AliHLTPHOSHistogramProducerComponent & ); |
23 | AliHLTPHOSHistogramProducerComponent & operator = (const AliHLTPHOSHistogramProducerComponent &) | |
24 | { | |
25 | return *this; | |
26 | }; | |
27 | virtual int DoInit( int argc, const char** argv ); | |
28 | virtual int Deinit(); | |
29 | virtual int DoDeinit(); | |
30 | virtual int DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&); | |
31 | ||
955f6ca8 | 32 | void DumpData(int gain); |
33 | ||
34 | int GetEquippmentId(); | |
35 | virtual const char* GetComponentID(); | |
36 | virtual void GetInputDataTypes(std::vector<AliHLTComponentDataType, std::allocator<AliHLTComponentDataType> >&); | |
753a19c1 | 37 | virtual AliHLTComponentDataType GetOutputDataType(); |
38 | virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); | |
39 | void SetEquippmentId(int id); | |
40 | virtual AliHLTComponent* Spawn(); | |
41 | ||
42 | protected: | |
43 | void Reset(); | |
44 | void ResetDataPtr(); | |
45 | ||
2f166df5 | 46 | |
753a19c1 | 47 | private: |
2f166df5 | 48 | // TH2F *fEnergyHistograms[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; |
05be0766 | 49 | // TH2F *fTimingHistograms[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; |
753a19c1 | 50 | Double_t fEnergyAverageValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; |
51 | Double_t fAccumulatedValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; | |
52 | Double_t fTimingAverageValues[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; | |
53 | AliHLTUInt32_t fHits[N_ZROWS_MOD][N_XCOLUMNS_MOD][N_GAINS]; | |
753a19c1 | 54 | int fEventCount; |
55 | AliHLTUInt32_t fEquippmentID; | |
56 | Double_t fTmpChannelData[ALTRO_MAX_SAMPLES]; | |
753a19c1 | 57 | AliHLTPHOSModuleCellAccumulatedEnergyDataStruct* fOutPtr; |
753a19c1 | 58 | static const AliHLTComponentDataType inputDataTypes[]; |
59 | static const AliHLTComponentDataType outputDataType; | |
60 | }; | |
61 | ||
62 | #endif |