]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSRcuAltroPatternTest.h
New production macros (Yves)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRcuAltroPatternTest.h
CommitLineData
1b41ab20 1//-*- Mode: C++ -*-
2// $Id$
3
b85c748e 4#ifndef ALIHLTPHOSRCUALTROPATTERNTEST_H
5#define ALIHLTPHOSRCUALTROPATTERNTEST_H
6
7// 1
8// 2
9// 3
10// 4
11// 5
12
13/* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
14 * See cxx source for full Copyright notice */
15
16#include "AliHLTPHOSBase.h"
17
18//#include "AliHLTPHOSConstants.h"
19//#include "AliHLTDataTypes.h"
20
21//using namespace PhosHLTConst;
22
23
24class AliHLTPHOSPattern;
25
26class AliHLTPHOSRcuAltroPatternTest : public AliHLTPHOSBase
27//class AliHLTPHOSRcuAltroPatternTest
28{
29 public:
30 AliHLTPHOSRcuAltroPatternTest(const AliHLTUInt8_t moduleID, const AliHLTUInt8_t rcuX, const AliHLTUInt8_t rcuZ, const int *pattern, const int length);
31 virtual ~AliHLTPHOSRcuAltroPatternTest();
e304ea31 32// const int ValidateAltroPattern(const int *inputPattern, const int length = ALTRO_MAX_SAMPLES, const int presamples = 0) const;
33// const int AddPattern(const int *inputPattern, const int z, const int x, const int gain, const int length = ALTRO_MAX_SAMPLES, const int presamples = 0);
34// const int countPatterns(const AliHLTPHOSPattern *pattern) const;
35// const int countAllPatterns(const int length, const bool printpatterns = true);
27029341 36 int ValidateAltroPattern(const int *inputPattern, const int length = ALTROMAXSAMPLES, const int presamples = 0) const;
37 int AddPattern(const int *inputPattern, const int z, const int x, const int gain, const int length = ALTROMAXSAMPLES, const int presamples = 0);
e304ea31 38 int countPatterns(const AliHLTPHOSPattern *pattern) const;
39 int countAllPatterns(const int length, const bool printpatterns = true);
b85c748e 40 void PrintStatistics() const;
41
42 // void PrintPatterns(const AliHLTPHOSPattern *pattern) const;
43
44 private:
45 void PrintPatterns(AliHLTPHOSPattern *pattern);
46 AliHLTPHOSRcuAltroPatternTest();
47 AliHLTPHOSRcuAltroPatternTest(const AliHLTPHOSRcuAltroPatternTest & );
48 AliHLTPHOSRcuAltroPatternTest & operator = (const AliHLTPHOSRcuAltroPatternTest &);
49
50 // void PrintPattern() const;
51 // bool Compare(const AliHLTPHOSPattern);
52
27029341 53 unsigned long fNEqual[NZROWSRCU][NXCOLUMNSRCU][NGAINS];
54 unsigned long fNNotEqual[NZROWSRCU][NXCOLUMNSRCU][NGAINS];
b85c748e 55 const AliHLTUInt8_t fModuleID; /**<ID of the module this component read data from (0-4)*/
56 const AliHLTUInt8_t fRcuX; /**<X position of RCU the data from this Equippment comes from (0 or 1)*/
57 const AliHLTUInt8_t fRcuZ; /**<Z position of RCU the data from this Equippment comes from (0 or 1)*/
58 AliHLTPHOSPattern *fReferenceAltroPattern; /**<The pattern stored in the altro*/
27029341 59 AliHLTPHOSPattern *fPerChannelPatterns[NZROWSRCU][NXCOLUMNSRCU][NGAINS]; /**<Pattern actually read back from the electronics*/
b85c748e 60
61 unsigned long fCnt; //REMOVE !!
62
63};
64
65#endif