CMS 3D CMS Logo

List of all members | Static Public Member Functions | Static Public Attributes
RPCAMCLinkEvent Class Reference

#include <RPCAMCLinkEvent.h>

Static Public Member Functions

static unsigned int getEvent (unsigned int id)
 
static unsigned int getGroup (unsigned int id)
 
static unsigned int getId (unsigned int event, unsigned int group=not_set_, unsigned int level=not_set_)
 
static unsigned int getLevel (unsigned int id)
 

Static Public Attributes

static unsigned int const amc_ = 0x2000
 
static unsigned int const debug_ = 0x0100
 
static unsigned int const error_ = 0x0400
 
static unsigned int const event_mask_ = 0x00ff
 
static unsigned int const fatal_ = 0x0500
 
static unsigned int const fed_ = 0x1000
 
static unsigned int const group_mask_ = 0x7000
 
static unsigned int const info_ = 0x0200
 
static unsigned int const input_ = 0x3000
 
static unsigned int const level_mask_ = 0x0700
 
static unsigned int const not_set_ = 0x0000
 
static unsigned int const warn_ = 0x0300
 

Detailed Description

Definition at line 4 of file RPCAMCLinkEvent.h.

Member Function Documentation

unsigned int RPCAMCLinkEvent::getEvent ( unsigned int  id)
inlinestatic

Definition at line 41 of file RPCAMCLinkEvent.h.

References event_mask_.

42 {
43  return (id & event_mask_);
44 }
static unsigned int const event_mask_
unsigned int RPCAMCLinkEvent::getGroup ( unsigned int  id)
inlinestatic

Definition at line 31 of file RPCAMCLinkEvent.h.

References group_mask_.

32 {
33  return (id & group_mask_);
34 }
static unsigned int const group_mask_
unsigned int RPCAMCLinkEvent::getId ( unsigned int  event,
unsigned int  group = not_set_,
unsigned int  level = not_set_ 
)
inlinestatic

Definition at line 46 of file RPCAMCLinkEvent.h.

References event_mask_, group_mask_, and level_mask_.

47 {
48  return ((event & event_mask_) | (group & group_mask_) | (level & level_mask_));
49 }
static unsigned int const group_mask_
static unsigned int const event_mask_
static unsigned int const level_mask_
Definition: event.py:1
unsigned int RPCAMCLinkEvent::getLevel ( unsigned int  id)
inlinestatic

Definition at line 36 of file RPCAMCLinkEvent.h.

References level_mask_.

37 {
38  return (id & level_mask_);
39 }
static unsigned int const level_mask_

Member Data Documentation

unsigned int const RPCAMCLinkEvent::amc_ = 0x2000
static

Definition at line 14 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::debug_ = 0x0100
static

Definition at line 17 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::error_ = 0x0400
static

Definition at line 20 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::event_mask_ = 0x00ff
static

Definition at line 9 of file RPCAMCLinkEvent.h.

Referenced by getEvent(), RPCAMCLinkEvents::getEventName(), and getId().

unsigned int const RPCAMCLinkEvent::fatal_ = 0x0500
static

Definition at line 21 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::fed_ = 0x1000
static

Definition at line 13 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::group_mask_ = 0x7000
static

Definition at line 7 of file RPCAMCLinkEvent.h.

Referenced by RPCAMCLinkEvents::getEventName(), getGroup(), and getId().

unsigned int const RPCAMCLinkEvent::info_ = 0x0200
static

Definition at line 18 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::input_ = 0x3000
static

Definition at line 15 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::level_mask_ = 0x0700
static

Definition at line 8 of file RPCAMCLinkEvent.h.

Referenced by getId(), and getLevel().

unsigned int const RPCAMCLinkEvent::not_set_ = 0x0000
static

Definition at line 11 of file RPCAMCLinkEvent.h.

unsigned int const RPCAMCLinkEvent::warn_ = 0x0300
static

Definition at line 19 of file RPCAMCLinkEvent.h.