CMS 3D CMS Logo

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) const
 
bool getEventLost () const
 
bool getHitErrorGroup0 () const
 
bool getHitErrorGroup1 () const
 
bool getHitErrorGroup2 () const
 
bool getHitErrorGroup3 () const
 
bool getHitLostL1OverflowGroup0 () const
 
bool getHitLostL1OverflowGroup1 () const
 
bool getHitLostL1OverflowGroup2 () const
 
bool getHitLostL1OverflowGroup3 () const
 
bool getHitLostROFifoOverflowGroup0 () const
 
bool getHitLostROFifoOverflowGroup1 () const
 
bool getHitLostROFifoOverflowGroup2 () const
 
bool getHitLostROFifoOverflowGroup3 () const
 
bool getHitRejectedByEventSizeLimit () const
 
bool getInternalFatalChipError () const
 
 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 15 of file HPTDCErrorFlags.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file HPTDCErrorFlags.h.

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

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==().

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

Definition at line 21 of file HPTDCErrorFlags.h.

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

Referenced by CTPPSDiamondDQMSource::analyze().

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 getHitLostROFifoOverflowGroup3() const
bool getHitLostL1OverflowGroup3() const
bool getInternalFatalChipError() const
bool getHitErrorGroup2() const
bool getHitErrorGroup0() const
bool getEventLost() const
bool getHitLostROFifoOverflowGroup2() const
bool getHitLostL1OverflowGroup0() const
bool getHitLostROFifoOverflowGroup1() const
bool getHitLostL1OverflowGroup1() const
bool getHitLostROFifoOverflowGroup0() const
bool getHitLostL1OverflowGroup2() const
bool getHitErrorGroup3() const
bool getHitErrorGroup1() const
bool getHitRejectedByEventSizeLimit() const
bool HPTDCErrorFlags::getEventLost ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 ( ) const
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 62 of file HPTDCErrorFlags.h.

Referenced by CTPPSDiamondDQMSource::ChannelPlots::ChannelPlots(), and CTPPSDiamondDQMSource::PotPlots::PotPlots().

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