CMS 3D CMS Logo

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

Detailed Description

Definition at line 8 of file RPCAMCLinkEvents.h.

Constructor & Destructor Documentation

◆ RPCAMCLinkEvents()

RPCAMCLinkEvents::RPCAMCLinkEvents ( )

Definition at line 3 of file RPCAMCLinkEvents.cc.

3 {}

Member Function Documentation

◆ getEventName()

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

Definition at line 5 of file RPCAMCLinkEvents.cc.

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 }

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.

Member Data Documentation

◆ amc_amc13_block_incomplete_

unsigned const int 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().

◆ amc_amc13_crc_mismatch_

unsigned const int 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().

◆ amc_amc13_evc_bc_invalid_

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

◆ amc_amc13_length_incorrect_

unsigned const int 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().

◆ amc_amc13_size_inconsistent_

unsigned const int 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().

◆ amc_event_

unsigned const int RPCAMCLinkEvents::amc_event_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::debug_ | 0
static

◆ amc_link_invalid_

unsigned const int RPCAMCLinkEvents::amc_link_invalid_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 9
static

◆ amc_max_

unsigned const int RPCAMCLinkEvents::amc_max_ = 10
static

Definition at line 47 of file RPCAMCLinkEvents.h.

◆ amc_min_

unsigned const int RPCAMCLinkEvents::amc_min_ = 0
static

Definition at line 46 of file RPCAMCLinkEvents.h.

◆ amc_number_mismatch_

unsigned const int RPCAMCLinkEvents::amc_number_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 7
static

◆ amc_payload_incomplete_

unsigned const int RPCAMCLinkEvents::amc_payload_incomplete_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 6
static

◆ amc_size_mismatch_

unsigned const int RPCAMCLinkEvents::amc_size_mismatch_ = RPCAMCLinkEvent::amc_ | RPCAMCLinkEvent::warn_ | 8
static

Definition at line 31 of file RPCAMCLinkEvents.h.

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

◆ fed_amc13_amc_number_invalid_

unsigned const int RPCAMCLinkEvents::fed_amc13_amc_number_invalid_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 7
static

◆ fed_amc13_block_incomplete_

unsigned const int RPCAMCLinkEvents::fed_amc13_block_incomplete_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 6
static

◆ fed_event_

unsigned const int RPCAMCLinkEvents::fed_event_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::debug_ | 0
static

◆ fed_header_check_fail_

unsigned const int RPCAMCLinkEvents::fed_header_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 1
static

◆ fed_header_id_mismatch_

unsigned const int RPCAMCLinkEvents::fed_header_id_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 2
static

◆ fed_max_

unsigned const int RPCAMCLinkEvents::fed_max_ = 8
static

Definition at line 45 of file RPCAMCLinkEvents.h.

◆ fed_min_

unsigned const int RPCAMCLinkEvents::fed_min_ = 0
static

Definition at line 44 of file RPCAMCLinkEvents.h.

◆ fed_trailer_check_fail_

unsigned const int RPCAMCLinkEvents::fed_trailer_check_fail_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 3
static

◆ fed_trailer_crc_mismatch_

unsigned const int RPCAMCLinkEvents::fed_trailer_crc_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 5
static

◆ fed_trailer_length_mismatch_

unsigned const int RPCAMCLinkEvents::fed_trailer_length_mismatch_ = RPCAMCLinkEvent::fed_ | RPCAMCLinkEvent::warn_ | 4
static

◆ input_connector_invalid_

unsigned const int RPCAMCLinkEvents::input_connector_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 5
static

◆ input_connector_not_used_

unsigned const int RPCAMCLinkEvents::input_connector_not_used_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 6
static

◆ input_eod_

unsigned const int RPCAMCLinkEvents::input_eod_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::info_ | 3
static

◆ input_event_

unsigned const int RPCAMCLinkEvents::input_event_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::debug_ | 0
static

◆ input_lb_invalid_

unsigned const int RPCAMCLinkEvents::input_lb_invalid_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 4
static

◆ input_link_ack_fail_

unsigned const int RPCAMCLinkEvents::input_link_ack_fail_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 2
static

◆ input_link_error_

unsigned const int RPCAMCLinkEvents::input_link_error_ = RPCAMCLinkEvent::input_ | RPCAMCLinkEvent::warn_ | 1
static

◆ input_max_

unsigned const int RPCAMCLinkEvents::input_max_ = 7
static

Definition at line 49 of file RPCAMCLinkEvents.h.

◆ input_min_

unsigned const int RPCAMCLinkEvents::input_min_ = 0
static

Definition at line 48 of file RPCAMCLinkEvents.h.

RPCAMCLinkEvents::fed_amc13_amc_number_invalid_
static unsigned const int fed_amc13_amc_number_invalid_
Definition: RPCAMCLinkEvents.h:20
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
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::fed_amc13_block_incomplete_
static unsigned const int fed_amc13_block_incomplete_
Definition: RPCAMCLinkEvents.h:18
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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