CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HPTDCErrorFlags Class Reference

#include <HPTDCErrorFlags.h>

Public Member Functions

unsigned short getErrorFlag () const
 
bool getErrorId (unsigned short id)
 
bool getEventLost ()
 
bool getHitErrorGroup0 ()
 
bool getHitErrorGroup1 ()
 
bool getHitErrorGroup2 ()
 
bool getHitErrorGroup3 ()
 
bool getHitLostL1OverflowGroup0 ()
 
bool getHitLostL1OverflowGroup1 ()
 
bool getHitLostL1OverflowGroup2 ()
 
bool getHitLostL1OverflowGroup3 ()
 
bool getHitLostROFifoOverflowGroup0 ()
 
bool getHitLostROFifoOverflowGroup1 ()
 
bool getHitLostROFifoOverflowGroup2 ()
 
bool getHitLostROFifoOverflowGroup3 ()
 
bool getHitRejectedByEventSizeLimit ()
 
bool getInternalFatalChipError ()
 
 HPTDCErrorFlags (unsigned short flags=0)
 

Static Public Member Functions

static std::string getHPTDCErrorName (const unsigned short id)
 

Private Attributes

unsigned short error_flags
 

Detailed Description

HPTDC error flags container

Author
Seyed Mohsen Etesami
Laurent Forthomme July 2016

Definition at line 16 of file HPTDCErrorFlags.h.

Constructor & Destructor Documentation

HPTDCErrorFlags::HPTDCErrorFlags ( unsigned short  flags = 0)
inline

Definition at line 17 of file HPTDCErrorFlags.h.

17 : error_flags(flags) {}
unsigned short error_flags
std::vector< Variable::Flags > flags
Definition: MVATrainer.cc:135

Member Function Documentation

unsigned short HPTDCErrorFlags::getErrorFlag ( ) const
inline

Definition at line 58 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by operator<(), operator<<(), and CTPPSDiamondDigi::operator==().

59  {
60  return error_flags;
61  }
unsigned short error_flags
bool HPTDCErrorFlags::getErrorId ( unsigned short  id)
inline

Definition at line 20 of file HPTDCErrorFlags.h.

References getEventLost(), getHitErrorGroup0(), getHitErrorGroup1(), getHitErrorGroup2(), getHitErrorGroup3(), getHitLostL1OverflowGroup0(), getHitLostL1OverflowGroup1(), getHitLostL1OverflowGroup2(), getHitLostL1OverflowGroup3(), getHitLostROFifoOverflowGroup0(), getHitLostROFifoOverflowGroup1(), getHitLostROFifoOverflowGroup2(), getHitLostROFifoOverflowGroup3(), getHitRejectedByEventSizeLimit(), and getInternalFatalChipError().

21  {
22  switch (id) {
23  case 0: return getInternalFatalChipError();
24  case 1: return getEventLost();
25  case 2: return getHitRejectedByEventSizeLimit();
26  case 3: return getHitErrorGroup3();
27  case 4: return getHitLostL1OverflowGroup3();
28  case 5: return getHitLostROFifoOverflowGroup3();
29  case 6: return getHitErrorGroup2();
30  case 7: return getHitLostL1OverflowGroup2();
31  case 8: return getHitLostROFifoOverflowGroup2();
32  case 9: return getHitErrorGroup1();
33  case 10: return getHitLostL1OverflowGroup1();
34  case 11: return getHitLostROFifoOverflowGroup1();
35  case 12: return getHitErrorGroup0();
36  case 13: return getHitLostL1OverflowGroup0();
37  case 14: return getHitLostROFifoOverflowGroup0();
38  default: return true;
39  }
40  }
bool getHitLostROFifoOverflowGroup1()
bool getInternalFatalChipError()
bool getHitLostL1OverflowGroup2()
bool getHitLostROFifoOverflowGroup0()
bool getHitErrorGroup3()
bool getHitLostROFifoOverflowGroup2()
bool getHitLostL1OverflowGroup3()
bool getHitErrorGroup2()
bool getHitRejectedByEventSizeLimit()
bool getHitErrorGroup0()
bool getHitLostL1OverflowGroup0()
bool getHitLostL1OverflowGroup1()
bool getHitLostROFifoOverflowGroup3()
bool getHitErrorGroup1()
bool HPTDCErrorFlags::getEventLost ( )
inline

Definition at line 43 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

43 { return (error_flags>> 1)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitErrorGroup0 ( )
inline

Definition at line 54 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

54 { return (error_flags>>12)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitErrorGroup1 ( )
inline

Definition at line 51 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

51 { return (error_flags>> 9)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitErrorGroup2 ( )
inline

Definition at line 48 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

48 { return (error_flags>> 6)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitErrorGroup3 ( )
inline

Definition at line 45 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

45 { return (error_flags>> 3)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostL1OverflowGroup0 ( )
inline

Definition at line 55 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

55 { return (error_flags>>13)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostL1OverflowGroup1 ( )
inline

Definition at line 52 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

52 { return (error_flags>>10)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostL1OverflowGroup2 ( )
inline

Definition at line 49 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

49 { return (error_flags>> 7)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostL1OverflowGroup3 ( )
inline

Definition at line 46 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

46 { return (error_flags>> 4)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostROFifoOverflowGroup0 ( )
inline

Definition at line 56 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

56 { return (error_flags>>14)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostROFifoOverflowGroup1 ( )
inline

Definition at line 53 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

53 { return (error_flags>>11)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostROFifoOverflowGroup2 ( )
inline

Definition at line 50 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

50 { return (error_flags>> 8)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitLostROFifoOverflowGroup3 ( )
inline

Definition at line 47 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

47 { return (error_flags>> 5)&0x1; }
unsigned short error_flags
bool HPTDCErrorFlags::getHitRejectedByEventSizeLimit ( )
inline

Definition at line 44 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

44 { return (error_flags>> 2)&0x1; }
unsigned short error_flags
static std::string HPTDCErrorFlags::getHPTDCErrorName ( const unsigned short  id)
inlinestatic

Definition at line 63 of file HPTDCErrorFlags.h.

64  {
65  switch (id) {
66  case 0: return "InternalFatalChipError";
67  case 1: return "EventLost";
68  case 2: return "HitRejectedByEventSizeLimit";
69  case 3: return "HitErrorGroup3";
70  case 4: return "HitLostL1OverflowGroup3";
71  case 5: return "HitLostROFifoOverflowGroup3";
72  case 6: return "HitErrorGroup2";
73  case 7: return "HitLostL1OverflowGroup2";
74  case 8: return "HitLostROFifoOverflowGroup2";
75  case 9: return "HitErrorGroup1";
76  case 10: return "HitLostL1OverflowGroup1";
77  case 11: return "HitLostROFifoOverflowGroup1";
78  case 12: return "HitErrorGroup0";
79  case 13: return "HitLostL1OverflowGroup0";
80  case 14: return "HitLostROFifoOverflowGroup0";
81  default: return "NONE";
82  }
83  }
bool HPTDCErrorFlags::getInternalFatalChipError ( )
inline

Definition at line 42 of file HPTDCErrorFlags.h.

References error_flags.

Referenced by getErrorId().

42 { return error_flags&0x1; }
unsigned short error_flags

Member Data Documentation

unsigned short HPTDCErrorFlags::error_flags
private