CMS 3D CMS Logo

RPCAMCLinkEvents.cc
Go to the documentation of this file.
2 
4 {}
5 
7 {
9 
10  switch (id & mask) {
11  // from FED CDF Header and Trailer
12  case (fed_event_ & mask):
13  return std::string("FED Event"); break;
14  case (fed_header_check_fail_ & mask):
15  return std::string("Header check fail"); break;
16  case (fed_header_id_mismatch_ & mask):
17  return std::string("Header FED ID mismatch"); break;
18  case (fed_trailer_check_fail_ & mask):
19  return std::string("Trailer check fail"); break;
20  case (fed_trailer_length_mismatch_ & mask):
21  return std::string("Trailer length mismatch"); break;
22  case (fed_trailer_crc_mismatch_ & mask):
23  return std::string("Trailer CRC mismatch"); break;
24  // from AMC13 Header
25  case (fed_amc13_block_incomplete_ & mask):
26  return std::string("Incomplete AMC13 data"); break;
27  // from AMC13 AMC Header
28  case (fed_amc13_amc_number_invalid_ & mask):
29  return std::string("Invalid AMC number"); break;
30  case (amc_amc13_block_incomplete_ & mask):
31  return std::string("Incomplete AMC13 data"); break;
32 
33  case (amc_event_ & mask):
34  return std::string("AMC Event"); break;
35  case (amc_amc13_evc_bc_invalid_ & mask):
36  return std::string("AMC EvC or BC invalid"); break;
37  case (amc_amc13_length_incorrect_ & mask):
38  return std::string("AMC incorrect block length"); break;
39  case (amc_amc13_crc_mismatch_ & mask):
40  return std::string("AMC CRC mismatch"); break;
41  case (amc_amc13_size_inconsistent_ & mask):
42  return std::string("AMC payload size inconsistent"); break;
43  case (amc_payload_incomplete_ & mask):
44  return std::string("Incomplete AMC payload"); break;
45  // from AMC Payload Header
46  case (amc_number_mismatch_ & mask):
47  return std::string("AMC number mismatch"); break;
48  case (amc_size_mismatch_ & mask):
49  return std::string("AMC size mismatch"); break;
50  // from RPC Record
51  case (amc_link_invalid_ & mask):
52  return std::string("Invalid Link"); break;
53 
54  case (input_event_ & mask):
55  return std::string("Input Event"); break;
56  case (input_link_error_ & mask):
57  return std::string("Link error"); break;
58  case (input_link_ack_fail_ & mask):
59  return std::string("Link ack fail"); break;
60  case (input_eod_ & mask):
61  return std::string("EOD"); break;
62  case (input_lb_invalid_ & mask):
63  return std::string("Invalid LB"); break;
64  case (input_connector_invalid_ & mask):
65  return std::string("Invalid Connector"); break;
66  case (input_connector_not_used_ & mask):
67  return std::string("Connector not used"); break;
68  /*
69  case ((input_bc_mismatch_ & mask):
70  return std::string("BC Mismatch"); break;
71  case ((input_bc0_mismatch_ & mask):
72  return std::string("BC0 Mismatch"); break;
73  */
74 
75  default:
76  return std::string("unknown"); break;
77  }
78 }
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 std::string getEventName(unsigned int event)
static unsigned int const fed_trailer_check_fail_
#define constexpr
static unsigned int const input_eod_
static unsigned int const input_connector_invalid_