CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 19 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 3 of file L1TriggerError.cc.

3 : code_(prod << 16 & code) {}
unsigned code()
get error
L1TriggerError::~L1TriggerError ( )

dtor

Definition at line 5 of file L1TriggerError.cc.

5 {}

Member Function Documentation

unsigned L1TriggerError::code ( )
inline

get error

Definition at line 31 of file L1TriggerError.h.

References code_.

Referenced by setCode().

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

producer error

Definition at line 9 of file L1TriggerError.cc.

References code_.

9 { return code_ & 0xffff; }
unsigned L1TriggerError::prodID ( )

producer ID

Definition at line 7 of file L1TriggerError.cc.

References code_.

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

set error

Definition at line 28 of file L1TriggerError.h.

References code(), and code_.

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

Member Data Documentation

unsigned L1TriggerError::code_
private

Definition at line 40 of file L1TriggerError.h.

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