RDStatus.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // RDStatus.h
4 // Status flags for unpacking raw::RawDigits
5 // Tom Junk, August 29, 2018
6 //
7 ////////////////////////////////////////////////////////////////////////
8 
9 #ifndef RDStatus_H
10 #define RDStatus_H
11 
12 #include "RtypesCore.h"
13 #include <stdint.h>
14 
15 namespace raw {
16 
17  class RDStatus
18  {
19 
20  public:
21 
22  RDStatus() : fCorruptDataDropped(false), fCorruptDataKept(false), fStatWord(0) {}; // Default constructor
23 
24  RDStatus(bool corruptdatadropped,
25  bool corruptdatakept,
26  unsigned int statword) :
27  fCorruptDataDropped(corruptdatadropped),
28  fCorruptDataKept(corruptdatakept),
29  fStatWord(statword) {};
30 
32  bool GetCorruptDataKeptFlag() const { return fCorruptDataKept; };
33  unsigned int GetStatWord() const { return fStatWord; };
34 
35  private:
36 
37  bool fCorruptDataDropped; ///< True if some data suspected to be corrupt were not decoded
38  bool fCorruptDataKept; ///< True if some data suspected to be corrupt were decoded
39  unsigned int fStatWord;
40 
41  };
42 
43 
44 } // namespace raw
45 
46 #endif // RDStatus_H
bool fCorruptDataDropped
True if some data suspected to be corrupt were not decoded.
Definition: RDStatus.h:33
Raw data description.
bool fCorruptDataKept
True if some data suspected to be corrupt were decoded.
Definition: RDStatus.h:38
bool GetCorruptDataDroppedFlag() const
Definition: RDStatus.h:31
unsigned int fStatWord
Definition: RDStatus.h:39
RDStatus(bool corruptdatadropped, bool corruptdatakept, unsigned int statword)
Definition: RDStatus.h:24
bool GetCorruptDataKeptFlag() const
Definition: RDStatus.h:32
unsigned int GetStatWord() const
Definition: RDStatus.h:33