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 }
RPCAMCLinkEvents::fed_amc13_amc_number_invalid_
static unsigned const int fed_amc13_amc_number_invalid_
Definition: RPCAMCLinkEvents.h:20
RPCAMCLinkEvents.h
RPCAMCLinkEvents::input_event_
static unsigned const int input_event_
Definition: RPCAMCLinkEvents.h:36
RPCAMCLinkEvents::input_connector_invalid_
static unsigned const int input_connector_invalid_
Definition: RPCAMCLinkEvents.h:41
RPCAMCLinkEvents::amc_amc13_length_incorrect_
static unsigned const int amc_amc13_length_incorrect_
Definition: RPCAMCLinkEvents.h:25
RPCAMCLinkEvent::group_mask_
static unsigned const int group_mask_
Definition: RPCAMCLinkEvent.h:6
RPCAMCLinkEvents::fed_trailer_length_mismatch_
static unsigned const int fed_trailer_length_mismatch_
Definition: RPCAMCLinkEvents.h:15
RPCAMCLinkEvents::amc_number_mismatch_
static unsigned const int amc_number_mismatch_
Definition: RPCAMCLinkEvents.h:30
RPCAMCLinkEvents::input_lb_invalid_
static unsigned const int input_lb_invalid_
Definition: RPCAMCLinkEvents.h:40
RPCAMCLinkEvents::amc_event_
static unsigned const int amc_event_
Definition: RPCAMCLinkEvents.h:23
RPCAMCLinkEvents::fed_event_
static unsigned const int fed_event_
Definition: RPCAMCLinkEvents.h:11
RPCAMCLinkEvents::amc_payload_incomplete_
static unsigned const int amc_payload_incomplete_
Definition: RPCAMCLinkEvents.h:28
RPCAMCLinkEvents::fed_header_check_fail_
static unsigned const int fed_header_check_fail_
Definition: RPCAMCLinkEvents.h:12
RPCAMCLinkEvents::fed_trailer_crc_mismatch_
static unsigned const int fed_trailer_crc_mismatch_
Definition: RPCAMCLinkEvents.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCAMCLinkEvents::fed_trailer_check_fail_
static unsigned const int fed_trailer_check_fail_
Definition: RPCAMCLinkEvents.h:14
RPCAMCLinkEvents::input_link_ack_fail_
static unsigned const int input_link_ack_fail_
Definition: RPCAMCLinkEvents.h:38
RPCAMCLinkEvents::amc_amc13_block_incomplete_
static unsigned const int amc_amc13_block_incomplete_
Definition: RPCAMCLinkEvents.h:21
RPCAMCLinkEvents::RPCAMCLinkEvents
RPCAMCLinkEvents()
Definition: RPCAMCLinkEvents.cc:3
RPCAMCLinkEvents::getEventName
static std::string getEventName(unsigned int event)
Definition: RPCAMCLinkEvents.cc:5
RPCAMCLinkEvents::fed_amc13_block_incomplete_
static unsigned const int fed_amc13_block_incomplete_
Definition: RPCAMCLinkEvents.h:18
RPCAMCLinkEvents::amc_link_invalid_
static unsigned const int amc_link_invalid_
Definition: RPCAMCLinkEvents.h:34
RPCAMCLinkEvents::amc_amc13_size_inconsistent_
static unsigned const int amc_amc13_size_inconsistent_
Definition: RPCAMCLinkEvents.h:27
RPCAMCLinkEvents::amc_amc13_evc_bc_invalid_
static unsigned const int amc_amc13_evc_bc_invalid_
Definition: RPCAMCLinkEvents.h:24
RPCAMCLinkEvents::amc_size_mismatch_
static unsigned const int amc_size_mismatch_
Definition: RPCAMCLinkEvents.h:31
RPCAMCLinkEvent::event_mask_
static unsigned const int event_mask_
Definition: RPCAMCLinkEvent.h:8
RPCAMCLinkEvents::fed_header_id_mismatch_
static unsigned const int fed_header_id_mismatch_
Definition: RPCAMCLinkEvents.h:13
RPCAMCLinkEvents::input_connector_not_used_
static unsigned const int input_connector_not_used_
Definition: RPCAMCLinkEvents.h:42
RPCAMCLinkEvents::input_link_error_
static unsigned const int input_link_error_
Definition: RPCAMCLinkEvents.h:37
RPCAMCLinkEvents::input_eod_
static unsigned const int input_eod_
Definition: RPCAMCLinkEvents.h:39
RPCAMCLinkEvents::amc_amc13_crc_mismatch_
static unsigned const int amc_amc13_crc_mismatch_
Definition: RPCAMCLinkEvents.h:26