CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
L1TriggerError Class Reference

#include <L1TriggerError.h>

Public Member Functions

unsigned code ()
 get error More...
 
 L1TriggerError (unsigned short prodID=0, unsigned short code=0)
 construct from an error code More...
 
unsigned prodErr ()
 producer error More...
 
unsigned prodID ()
 producer ID More...
 
void setCode (int code)
 set error More...
 
 ~L1TriggerError ()
 dtor More...
 

Private Attributes

unsigned code_
 

Detailed Description

DataFormats/L1Trigger/interface/L1TriggerError.h

Author
Jim Brooke

Description: Class for communicating errors between modules. Intended to be transient only

Definition at line 20 of file L1TriggerError.h.

Constructor & Destructor Documentation

L1TriggerError::L1TriggerError ( unsigned short  prodID = 0,
unsigned short  code = 0 
)
explicit

construct from an error code

Definition at line 4 of file L1TriggerError.cc.

4  :
5  code_(prod<<16 & code)
6 {
7 }
unsigned code()
get error
L1TriggerError::~L1TriggerError ( )

dtor

Definition at line 10 of file L1TriggerError.cc.

11 {
12 }

Member Function Documentation

unsigned L1TriggerError::code ( )
inline

get error

Definition at line 33 of file L1TriggerError.h.

References code_.

Referenced by setCode().

33 { return code_; }
unsigned L1TriggerError::prodErr ( )

producer error

Definition at line 20 of file L1TriggerError.cc.

References code_.

20  {
21  return code_ & 0xffff;
22 }
unsigned L1TriggerError::prodID ( )

producer ID

Definition at line 15 of file L1TriggerError.cc.

References code_.

15  {
16  return (code_>>16) & 0xffff;
17 }
void L1TriggerError::setCode ( int  code)
inline

set error

Definition at line 30 of file L1TriggerError.h.

References code(), and code_.

30 { code_ = code; }
unsigned code()
get error

Member Data Documentation

unsigned L1TriggerError::code_
private

Definition at line 43 of file L1TriggerError.h.

Referenced by code(), prodErr(), prodID(), and setCode().