]>
Commit | Line | Data |
---|---|---|
3ed012c1 | 1 | /************************************************************************** |
2 | * This file is property of and copyright by the ALICE HLT Project * | |
3 | * All rights reserved. * | |
4 | * * | |
5 | * Primary Authors: Oystein Djuvsland * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | #ifndef ALIHLTPHOSSANITYINSPECTOR_H | |
17 | #define ALIHLTPHOSSANITYINSPECTOR_H | |
18 | ||
2374af72 | 19 | /** |
20 | * Class checks data for insanity | |
21 | * for use in HLT, but can also be used offline | |
22 | * | |
23 | * @file AliHLTPHOSSanityInspector.h | |
24 | * @author Oystein Djuvsland | |
25 | * @date | |
26 | * @brief Sanity inspector for PHOS HLT | |
27 | */ | |
28 | ||
3ed012c1 | 29 | #include "AliHLTPHOSBase.h" |
3ed012c1 | 30 | #include "Rtypes.h" |
31 | ||
2374af72 | 32 | |
33 | class AliHLTAltroData; | |
34 | ||
35 | /** | |
36 | * @class AliHLTPHOSSanityInspector | |
37 | * Sanity inspector for PHOS HLT. It takes raw data as input and checks it for insanity | |
38 | * It will then flag it. | |
39 | * | |
40 | * @ingroup alihlt_phos | |
41 | */ | |
42 | ||
3ed012c1 | 43 | class AliHLTPHOSSanityInspector : public AliHLTPHOSBase |
44 | { | |
45 | ||
46 | public: | |
2374af72 | 47 | |
48 | /** Constructor */ | |
3ed012c1 | 49 | AliHLTPHOSSanityInspector(); |
2374af72 | 50 | |
51 | /* Destructor */ | |
3ed012c1 | 52 | virtual ~AliHLTPHOSSanityInspector(); |
2374af72 | 53 | |
54 | // Int_t CheckInsanity(UInt_t* data, Int_t nSamples); | |
55 | ||
56 | ||
57 | // Int_t CheckInsanity(Int_t* data, Int_t nSamples); | |
58 | ||
59 | ||
60 | ||
61 | /** Check for insanity */ | |
939c67e7 | 62 | const Int_t CheckInsanity(const UInt_t* data, const Int_t nSamples) const; |
2374af72 | 63 | |
64 | /** Check for and heal insanity */ | |
ab38011b | 65 | Int_t CheckAndHealInsanity(UInt_t* data, Int_t nSamples); //Not completely reliable |
2374af72 | 66 | |
67 | /** Check for and heal insanity */ | |
ab38011b | 68 | Int_t CheckAndHealInsanity(Int_t* data, Int_t nSamples); //Not completely reliable |
2374af72 | 69 | |
70 | /** Set the max difference between 2 samples before flagging insanity */ | |
3ed012c1 | 71 | void SetMaxDifference(Int_t maxDiff) { fMaxDifference = maxDiff; } |
72 | ||
73 | private: | |
2374af72 | 74 | |
75 | /** The max difference between 2 samples */ | |
76 | Int_t fMaxDifference; //COMMENT | |
3ed012c1 | 77 | |
78 | ClassDef(AliHLTPHOSSanityInspector, 1); | |
79 | }; | |
80 | ||
81 | #endif |