CMS 3D CMS Logo

RPCAMCLinkEvents.cc
Go to the documentation of this file.
2 
4 
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 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_