CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
static unsigned int const group_mask_
static unsigned int getId(unsigned int event, unsigned int group=not_set_, unsigned int level=not_set_)
static unsigned int const amc_
static unsigned int const warn_
static unsigned int const event_mask_
static unsigned int const not_set_
static unsigned int const error_
static unsigned int const debug_
static unsigned int const fatal_
static unsigned int const input_
static unsigned int const level_mask_
static unsigned int getEvent(unsigned int id)
tuple group
Definition: watchdog.py:82
static unsigned int getLevel(unsigned int id)
static unsigned int const fed_
static unsigned int getGroup(unsigned int id)
tuple level
Definition: testEve_cfg.py:47
static unsigned int const info_