]>
Commit | Line | Data |
---|---|---|
b85c748e | 1 | #ifndef ALIHLTPHOSRCUALTRPATTERNTESTCOMPONENT_H |
2 | #define ALIHLTPHOSRCUALTRPATTERNTESTCOMPONENT_H | |
3 | ||
4 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | #include "AliHLTPHOSRcuProcessor.h" | |
8 | ||
9 | ||
10 | ||
11 | ||
2589c3a3 | 12 | |
b85c748e | 13 | // |
14 | // Class for validation of PHOS | |
15 | // Frontend electronics using playback | |
16 | // of pedestal patterns from the altro | |
17 | // | |
18 | ||
19 | ||
20 | class AliHLTPHOSSharedMemoryInterface; | |
21 | class AliHLTPHOSRcuAltroPatternTest; | |
22 | ||
23 | class AliHLTPHOSRcuAltroPatternTestComponent:public AliHLTPHOSRcuProcessor | |
24 | { | |
25 | public: | |
26 | AliHLTPHOSRcuAltroPatternTestComponent(); | |
27 | virtual ~AliHLTPHOSRcuAltroPatternTestComponent(); | |
28 | virtual int DoInit( int argc, const char** argv ); | |
29 | virtual int Deinit(); | |
30 | virtual int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, | |
31 | AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
32 | AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ); | |
33 | virtual void GetInputDataTypes( vector <AliHLTComponentDataType>&); | |
34 | virtual AliHLTComponentDataType GetOutputDataType(); | |
35 | virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier); | |
36 | virtual AliHLTComponent* Spawn(); | |
37 | virtual const char* GetComponentID(); | |
38 | ||
39 | protected: | |
40 | using AliHLTPHOSRcuProcessor::DoEvent; | |
41 | ||
42 | private: | |
43 | AliHLTPHOSRcuAltroPatternTestComponent(const AliHLTPHOSRcuAltroPatternTestComponent &); | |
44 | AliHLTPHOSRcuAltroPatternTestComponent & operator = (const AliHLTPHOSRcuAltroPatternTestComponent &); | |
45 | AliHLTPHOSRcuAltroPatternTest *fPatternTestPtr; | |
46 | void ScanPatternFromFile(const char *filename, int *pattern, const int lengt = ALTRO_MAX_SAMPLES) const; | |
47 | AliHLTPHOSSharedMemoryInterface *fShmPtr; // Interface to read altro channel data from shared memory | |
48 | unsigned long fNTotalPatterns; /**<The total number of patterns analyzed*/ | |
49 | unsigned long fNWrongPatterns; /**<The total number of incorrect patterns found*/ | |
50 | unsigned long fNTotalSamples; /**<The total number of samples analyzed*/ | |
51 | unsigned long fNWrongSamples; /**<The total number of incorrect samples found*/ | |
52 | }; | |
53 | ||
54 | #endif |