]>
Commit | Line | Data |
---|---|---|
1b41ab20 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
fafd6000 | 4 | #ifndef ALIHLTPHOSPATTERN_H |
5 | #define ALIHLTPHOSPATTERN_H | |
6 | ||
7 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
8 | * See cxx source for full Copyright notice */ | |
9 | ||
10 | ||
11 | //#include "AliHLTPHOSConstants.h" | |
12 | //using namespace PhosHLTConst; | |
13 | #include "AliHLTPHOSBase.h" | |
2589c3a3 | 14 | class AliHLTPHOSUtilities; |
fafd6000 | 15 | |
16 | ||
17 | class AliHLTPHOSPattern : public AliHLTPHOSBase | |
18 | { | |
19 | public: | |
20 | AliHLTPHOSPattern(const int *pattern, const int length); | |
21 | ~AliHLTPHOSPattern(); | |
e304ea31 | 22 | // const int AddPattern(const int *readbackpattern, const int nsamples = ALTRO_MAX_SAMPLES, const int nPresamples = 0); |
23 | // const bool CheckDoExistPattern(const int *readbackpattern, const int nsamples = ALTRO_MAX_SAMPLES, const int nPresamples = 0); | |
24 | // const AliHLTPHOSPattern *GetNextPtr() const {return fPattern;}; | |
25 | // const int GetPattern(int *pattern, const int maxlengths = ALTRO_MAX_SAMPLES) const; | |
26 | // const int GetPatternLength() const {return fPatternLength;}; | |
27 | // const int ValidatePattern(const int *readbackpattern, const int nsamples = ALTRO_MAX_SAMPLES, const int nPresamples = 0) const; | |
27029341 | 28 | int AddPattern(const int *readbackpattern, const int nsamples = ALTROMAXSAMPLES, const int nPresamples = 0); |
29 | bool CheckDoExistPattern(const int *readbackpattern, const int nsamples = ALTROMAXSAMPLES, const int nPresamples = 0); | |
e304ea31 | 30 | AliHLTPHOSPattern *GetNextPtr() const {return fPattern;}; |
27029341 | 31 | int GetPattern(int *pattern, const int maxlengths = ALTROMAXSAMPLES) const; |
e304ea31 | 32 | int GetPatternLength() const {return fPatternLength;}; |
27029341 | 33 | int ValidatePattern(const int *readbackpattern, const int nsamples = ALTROMAXSAMPLES, const int nPresamples = 0) const; |
34 | void PrintPattern(const int nPerLine = ALTROMAXSAMPLES); | |
fafd6000 | 35 | |
36 | ||
37 | private: | |
38 | AliHLTPHOSPattern(const AliHLTPHOSPattern &); | |
39 | AliHLTPHOSPattern & operator = (const AliHLTPHOSPattern &); | |
40 | AliHLTPHOSPattern(); | |
41 | ||
e304ea31 | 42 | // const int DoComparePattern(const int *inputPattern1, const int *inputPattern2, const int nsamples) const; |
43 | // const bool CheckPatternLength(const int nsamples, const int nPresamples) const; | |
44 | int DoComparePattern(const int *inputPattern1, const int *inputPattern2, const int nsamples) const; | |
45 | bool CheckPatternLength(const int nsamples, const int nPresamples) const; | |
fafd6000 | 46 | void SetPattern(const int *pattern, const int length); |
27029341 | 47 | int fVal[ALTROMAXSAMPLES]; |
fafd6000 | 48 | int fPatternLength; |
49 | int fN; /**<The number of detected patterns equal to fPattern*/ | |
50 | int fCnt; | |
51 | AliHLTPHOSPattern *fPattern; | |
2589c3a3 | 52 | |
53 | AliHLTPHOSUtilities *fUtilitiesPtr; | |
54 | ||
55 | }; | |
fafd6000 | 56 | |
57 | #endif | |
58 |