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 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.

4 {}

Member Function Documentation

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

Definition at line 6 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_, constexpr, 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_, RecoTauDiscriminantConfiguration::mask, and AlCaHLTBitMon_QueryRunRegistry::string.

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 unsigned int const fed_trailer_check_fail_
#define constexpr
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 22 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 27 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 26 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 28 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 48 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::amc_min_ = 0
static

Definition at line 47 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 32 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 46 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::fed_min_ = 0
static

Definition at line 45 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 50 of file RPCAMCLinkEvents.h.

unsigned int const RPCAMCLinkEvents::input_min_ = 0
static

Definition at line 49 of file RPCAMCLinkEvents.h.