CMS 3D CMS Logo

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

#include <RPCAMCLinkEvents.h>

Public Member Functions

 RPCAMCLinkEvents ()
 

Static Public Member Functions

static std::string getEventName (unsigned int event)
 

Static Public Attributes

static unsigned int const amc_amc13_block_incomplete_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 1
 
static unsigned int const amc_amc13_crc_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 4
 
static unsigned int const amc_amc13_evc_bc_invalid_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 2
 
static unsigned int const amc_amc13_length_incorrect_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 3
 
static unsigned int const amc_amc13_size_inconsistent_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 5
 
static unsigned int const amc_event_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::debug_ | 0
 
static unsigned int const amc_link_invalid_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 9
 
static unsigned int const amc_max_ = 10
 
static unsigned int const amc_min_ = 0
 
static unsigned int const amc_number_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 7
 
static unsigned int const amc_payload_incomplete_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 6
 
static unsigned int const amc_size_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 8
 
static unsigned int const fed_amc13_amc_number_invalid_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 7
 
static unsigned int const fed_amc13_block_incomplete_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 6
 
static unsigned int const fed_event_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::debug_ | 0
 
static unsigned int const fed_header_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 1
 
static unsigned int const fed_header_id_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 2
 
static unsigned int const fed_max_ = 8
 
static unsigned int const fed_min_ = 0
 
static unsigned int const fed_trailer_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 3
 
static unsigned int const fed_trailer_crc_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 5
 
static unsigned int const fed_trailer_length_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 4
 
static unsigned int const input_connector_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 5
 
static unsigned int const input_connector_not_used_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 6
 
static unsigned int const input_eod_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::info_ | 3
 
static unsigned int const input_event_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::debug_ | 0
 
static unsigned int const input_lb_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 4
 
static unsigned int const input_link_ack_fail_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 2
 
static unsigned int const input_link_error_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 1
 
static unsigned int const input_max_ = 7
 
static unsigned int const input_min_ = 0
 

Detailed Description

Definition at line 8 of file RPCAMCLinkEvents.h.

Constructor & Destructor Documentation

RPCAMCLinkEvents::RPCAMCLinkEvents ( )

Definition at line 3 of file RPCAMCLinkEvents.cc.

3 {}

Member Function Documentation

std::string RPCAMCLinkEvents::getEventName ( unsigned int  event)
static

Definition at line 5 of file RPCAMCLinkEvents.cc.

References amc_amc13_block_incomplete_, amc_amc13_crc_mismatch_, amc_amc13_evc_bc_invalid_, amc_amc13_length_incorrect_, amc_amc13_size_inconsistent_, amc_event_, amc_link_invalid_, amc_number_mismatch_, amc_payload_incomplete_, amc_size_mismatch_, RPCAMCLinkEvent::event_mask_, fed_amc13_amc_number_invalid_, fed_amc13_block_incomplete_, fed_event_, fed_header_check_fail_, fed_header_id_mismatch_, fed_trailer_check_fail_, fed_trailer_crc_mismatch_, fed_trailer_length_mismatch_, RPCAMCLinkEvent::group_mask_, input_connector_invalid_, input_connector_not_used_, input_eod_, input_event_, input_lb_invalid_, input_link_ack_fail_, input_link_error_, and AlCaHLTBitMon_QueryRunRegistry::string.

5  {
7 
8  switch (id & mask) {
9  // from FED CDF Header and Trailer
10  case (fed_event_ & mask):
11  return std::string("FED Event");
12  break;
13  case (fed_header_check_fail_ & mask):
14  return std::string("Header check fail");
15  break;
16  case (fed_header_id_mismatch_ & mask):
17  return std::string("Header FED ID mismatch");
18  break;
19  case (fed_trailer_check_fail_ & mask):
20  return std::string("Trailer check fail");
21  break;
22  case (fed_trailer_length_mismatch_ & mask):
23  return std::string("Trailer length mismatch");
24  break;
25  case (fed_trailer_crc_mismatch_ & mask):
26  return std::string("Trailer CRC mismatch");
27  break;
28  // from AMC13 Header
29  case (fed_amc13_block_incomplete_ & mask):
30  return std::string("Incomplete AMC13 data");
31  break;
32  // from AMC13 AMC Header
33  case (fed_amc13_amc_number_invalid_ & mask):
34  return std::string("Invalid AMC number");
35  break;
36  case (amc_amc13_block_incomplete_ & mask):
37  return std::string("Incomplete AMC13 data");
38  break;
39 
40  case (amc_event_ & mask):
41  return std::string("AMC Event");
42  break;
43  case (amc_amc13_evc_bc_invalid_ & mask):
44  return std::string("AMC EvC or BC invalid");
45  break;
46  case (amc_amc13_length_incorrect_ & mask):
47  return std::string("AMC incorrect block length");
48  break;
49  case (amc_amc13_crc_mismatch_ & mask):
50  return std::string("AMC CRC mismatch");
51  break;
52  case (amc_amc13_size_inconsistent_ & mask):
53  return std::string("AMC payload size inconsistent");
54  break;
55  case (amc_payload_incomplete_ & mask):
56  return std::string("Incomplete AMC payload");
57  break;
58  // from AMC Payload Header
59  case (amc_number_mismatch_ & mask):
60  return std::string("AMC number mismatch");
61  break;
62  case (amc_size_mismatch_ & mask):
63  return std::string("AMC size mismatch");
64  break;
65  // from RPC Record
66  case (amc_link_invalid_ & mask):
67  return std::string("Invalid Link");
68  break;
69 
70  case (input_event_ & mask):
71  return std::string("Input Event");
72  break;
73  case (input_link_error_ & mask):
74  return std::string("Link error");
75  break;
76  case (input_link_ack_fail_ & mask):
77  return std::string("Link ack fail");
78  break;
79  case (input_eod_ & mask):
80  return std::string("EOD");
81  break;
82  case (input_lb_invalid_ & mask):
83  return std::string("Invalid LB");
84  break;
85  case (input_connector_invalid_ & mask):
86  return std::string("Invalid Connector");
87  break;
88  case (input_connector_not_used_ & mask):
89  return std::string("Connector not used");
90  break;
91  /*
92  case ((input_bc_mismatch_ & mask):
93  return std::string("BC Mismatch"); break;
94  case ((input_bc0_mismatch_ & mask):
95  return std::string("BC0 Mismatch"); break;
96  */
97 
98  default:
99  return std::string("unknown");
100  break;
101  }
102 }
static unsigned int const fed_amc13_amc_number_invalid_
static unsigned int const fed_trailer_crc_mismatch_
static unsigned int const group_mask_
static unsigned int const input_connector_not_used_
static unsigned int const amc_payload_incomplete_
static unsigned int const amc_size_mismatch_
static unsigned int const amc_event_
static unsigned int const fed_header_check_fail_
static unsigned int const event_mask_
static unsigned int const input_link_error_
static unsigned int const input_lb_invalid_
static unsigned int const amc_amc13_evc_bc_invalid_
static unsigned int const fed_trailer_length_mismatch_
static unsigned int const amc_link_invalid_
static unsigned int const amc_amc13_length_incorrect_
static unsigned int const amc_amc13_size_inconsistent_
static unsigned int const fed_header_id_mismatch_
static unsigned int const amc_number_mismatch_
static unsigned int const fed_amc13_block_incomplete_
static unsigned int const input_event_
static unsigned int const fed_event_
static unsigned int const input_link_ack_fail_
static unsigned int const amc_amc13_block_incomplete_
static unsigned int const amc_amc13_crc_mismatch_
static unsigned int const fed_trailer_check_fail_
static unsigned int const input_eod_
static unsigned int const input_connector_invalid_

Member Data Documentation

unsigned int const RPCAMCLinkEvents::amc_amc13_block_incomplete_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 1
static

Definition at line 21 of file RPCAMCLinkEvents.h.

Referenced by getEventName(), and RPCAMCRawToDigi::processBlocks().

unsigned int const RPCAMCLinkEvents::amc_amc13_crc_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 4
static

Definition at line 26 of file RPCAMCLinkEvents.h.

Referenced by getEventName(), and RPCAMCRawToDigi::processBlocks().

unsigned int const RPCAMCLinkEvents::amc_amc13_evc_bc_invalid_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 2
static
unsigned int const RPCAMCLinkEvents::amc_amc13_length_incorrect_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 3
static

Definition at line 25 of file RPCAMCLinkEvents.h.

Referenced by getEventName(), and RPCAMCRawToDigi::processBlocks().

unsigned int const RPCAMCLinkEvents::amc_amc13_size_inconsistent_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 5
static

Definition at line 27 of file RPCAMCLinkEvents.h.

Referenced by getEventName(), and RPCAMCRawToDigi::processBlocks().

unsigned int const RPCAMCLinkEvents::amc_event_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::debug_ | 0
static
unsigned int const RPCAMCLinkEvents::amc_link_invalid_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 9
static
unsigned int const RPCAMCLinkEvents::amc_max_ = 10
static

Definition at line 47 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::amc_min_ = 0
static

Definition at line 46 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::amc_number_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 7
static
unsigned int const RPCAMCLinkEvents::amc_payload_incomplete_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 6
static
unsigned int const RPCAMCLinkEvents::amc_size_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 8
static

Definition at line 31 of file RPCAMCLinkEvents.h.

Referenced by getEventName(), and RPCAMCRawToDigi::processBlocks().

unsigned int const RPCAMCLinkEvents::fed_amc13_amc_number_invalid_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 7
static
unsigned int const RPCAMCLinkEvents::fed_amc13_block_incomplete_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 6
static
unsigned int const RPCAMCLinkEvents::fed_event_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::debug_ | 0
static
unsigned int const RPCAMCLinkEvents::fed_header_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 1
static
unsigned int const RPCAMCLinkEvents::fed_header_id_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 2
static
unsigned int const RPCAMCLinkEvents::fed_max_ = 8
static

Definition at line 45 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::fed_min_ = 0
static

Definition at line 44 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::fed_trailer_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 3
static
unsigned int const RPCAMCLinkEvents::fed_trailer_crc_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 5
static
unsigned int const RPCAMCLinkEvents::fed_trailer_length_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 4
static
unsigned int const RPCAMCLinkEvents::input_connector_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 5
static
unsigned int const RPCAMCLinkEvents::input_connector_not_used_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 6
static
unsigned int const RPCAMCLinkEvents::input_eod_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::info_ | 3
static
unsigned int const RPCAMCLinkEvents::input_event_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::debug_ | 0
static
unsigned int const RPCAMCLinkEvents::input_lb_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 4
static
unsigned int const RPCAMCLinkEvents::input_link_ack_fail_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 2
static
unsigned int const RPCAMCLinkEvents::input_link_error_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 1
static
unsigned int const RPCAMCLinkEvents::input_max_ = 7
static

Definition at line 49 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::input_min_ = 0
static

Definition at line 48 of file RPCAMCLinkEvents.h.