CMS 3D CMS Logo

RPCAMCLinkEvent.h
Go to the documentation of this file.
1 #ifndef EventFilter_RPCRawToDigi_RPCAMCLinkEvent_h
2 #define EventFilter_RPCRawToDigi_RPCAMCLinkEvent_h
3 
5 public:
6  static unsigned int const group_mask_ = 0x7000;
7  static unsigned int const level_mask_ = 0x0700;
8  static unsigned int const event_mask_ = 0x00ff;
9 
10  static unsigned int const not_set_ = 0x0000;
11 
12  static unsigned int const fed_ = 0x1000;
13  static unsigned int const amc_ = 0x2000;
14  static unsigned int const input_ = 0x3000;
15 
16  static unsigned int const debug_ = 0x0100;
17  static unsigned int const info_ = 0x0200;
18  static unsigned int const warn_ = 0x0300;
19  static unsigned int const error_ = 0x0400;
20  static unsigned int const fatal_ = 0x0500;
21 
22 public:
23  static unsigned int getGroup(unsigned int id);
24  static unsigned int getLevel(unsigned int id);
25  static unsigned int getEvent(unsigned int id);
26 
27  static unsigned int getId(unsigned int event, unsigned int group = not_set_, unsigned int level = not_set_);
28 };
29 
30 inline unsigned int RPCAMCLinkEvent::getGroup(unsigned int id) { return (id & group_mask_); }
31 
32 inline unsigned int RPCAMCLinkEvent::getLevel(unsigned int id) { return (id & level_mask_); }
33 
34 inline unsigned int RPCAMCLinkEvent::getEvent(unsigned int id) { return (id & event_mask_); }
35 
36 inline unsigned int RPCAMCLinkEvent::getId(unsigned int event, unsigned int group, unsigned int level) {
37  return ((event & event_mask_) | (group & group_mask_) | (level & level_mask_));
38 }
39 
40 #endif // EventFilter_RPCRawToDigi_RPCAMCLinkEvent_h
personalPlayback.level
level
Definition: personalPlayback.py:22
RPCAMCLinkEvent::fatal_
static unsigned const int fatal_
Definition: RPCAMCLinkEvent.h:20
RPCAMCLinkEvent::getGroup
static unsigned int getGroup(unsigned int id)
Definition: RPCAMCLinkEvent.h:30
RPCAMCLinkEvent::not_set_
static unsigned const int not_set_
Definition: RPCAMCLinkEvent.h:10
RPCAMCLinkEvent::debug_
static unsigned const int debug_
Definition: RPCAMCLinkEvent.h:16
RPCAMCLinkEvent::getLevel
static unsigned int getLevel(unsigned int id)
Definition: RPCAMCLinkEvent.h:32
RPCAMCLinkEvent::group_mask_
static unsigned const int group_mask_
Definition: RPCAMCLinkEvent.h:6
RPCAMCLinkEvent::error_
static unsigned const int error_
Definition: RPCAMCLinkEvent.h:19
RPCAMCLinkEvent::amc_
static unsigned const int amc_
Definition: RPCAMCLinkEvent.h:13
RPCAMCLinkEvent::fed_
static unsigned const int fed_
Definition: RPCAMCLinkEvent.h:12
RPCAMCLinkEvent::level_mask_
static unsigned const int level_mask_
Definition: RPCAMCLinkEvent.h:7
RPCAMCLinkEvent::info_
static unsigned const int info_
Definition: RPCAMCLinkEvent.h:17
RPCAMCLinkEvent
Definition: RPCAMCLinkEvent.h:4
RPCAMCLinkEvent::getEvent
static unsigned int getEvent(unsigned int id)
Definition: RPCAMCLinkEvent.h:34
RPCAMCLinkEvent::warn_
static unsigned const int warn_
Definition: RPCAMCLinkEvent.h:18
RPCAMCLinkEvent::getId
static unsigned int getId(unsigned int event, unsigned int group=not_set_, unsigned int level=not_set_)
Definition: RPCAMCLinkEvent.h:36
RPCAMCLinkEvent::event_mask_
static unsigned const int event_mask_
Definition: RPCAMCLinkEvent.h:8
RPCAMCLinkEvent::input_
static unsigned const int input_
Definition: RPCAMCLinkEvent.h:14
event
Definition: event.py:1
watchdog.group
group
Definition: watchdog.py:82