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