4 /**************************************************************************
5 * This file is property of and copyright by the ALICE HLT Project *
6 * All rights reserved. *
8 * Primary Authors: Oystein Djuvsland *
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 **************************************************************************/
19 #ifndef ALIHLTPHOSSANITYINSPECTOR_H
20 #define ALIHLTPHOSSANITYINSPECTOR_H
23 * Class checks data for insanity
24 * for use in HLT, but can also be used offline
26 * @file AliHLTPHOSSanityInspector.h
27 * @author Oystein Djuvsland
29 * @brief Sanity inspector for PHOS HLT
32 #include "AliHLTPHOSBase.h"
36 class AliHLTAltroData;
39 * @class AliHLTPHOSSanityInspector
40 * Sanity inspector for PHOS HLT. It takes raw data as input and checks it for insanity
41 * It will then flag it.
43 * @ingroup alihlt_phos
46 class AliHLTPHOSSanityInspector : public AliHLTPHOSBase
52 AliHLTPHOSSanityInspector();
55 virtual ~AliHLTPHOSSanityInspector();
57 /** Copy constructor */
58 AliHLTPHOSSanityInspector(const AliHLTPHOSSanityInspector &) :
62 //Copy constructor not implemented
66 AliHLTPHOSSanityInspector & operator = (const AliHLTPHOSSanityInspector)
73 // Int_t CheckInsanity(UInt_t* data, Int_t nSamples);
76 // Int_t CheckInsanity(Int_t* data, Int_t nSamples);
80 /** Check for insanity */
81 Int_t CheckInsanity(const UInt_t* data, const Int_t nSamples) const;
83 /** Check for and heal insanity */
84 Int_t CheckAndHealInsanity(UInt_t* data, Int_t nSamples); //Not completely reliable
86 /** Check for and heal insanity */
87 Int_t CheckAndHealInsanity(Int_t* data, Int_t nSamples); //Not completely reliable
89 /** Set the max difference between 2 samples before flagging insanity */
90 void SetMaxDifference(Int_t maxDiff) { fMaxDifference = maxDiff; }
94 /** The max difference between 2 samples */
95 Int_t fMaxDifference; //COMMENT
97 ClassDef(AliHLTPHOSSanityInspector, 1);