#include <L1TriggerError.h>
Public Member Functions | |
unsigned | code () |
get error | |
L1TriggerError (unsigned short prodID=0, unsigned short code=0) | |
construct from an error code | |
unsigned | prodErr () |
producer error | |
unsigned | prodID () |
producer ID | |
void | setCode (int code) |
set error | |
~L1TriggerError () | |
dtor | |
Private Attributes | |
unsigned | code_ |
DataFormats/L1Trigger/interface/L1TriggerError.h
Description: Class for communicating errors between modules. Intended to be transient *only*
Definition at line 21 of file L1TriggerError.h.
L1TriggerError::L1TriggerError | ( | unsigned short | prodID = 0 , |
unsigned short | code = 0 |
||
) | [explicit] |
construct from an error code
Definition at line 4 of file L1TriggerError.cc.
L1TriggerError::~L1TriggerError | ( | ) |
unsigned L1TriggerError::code | ( | ) | [inline] |
get error
Definition at line 34 of file L1TriggerError.h.
References code_.
Referenced by setCode().
{ return code_; }
unsigned L1TriggerError::prodErr | ( | ) |
producer error
Definition at line 20 of file L1TriggerError.cc.
References code_.
{ return code_ & 0xffff; }
unsigned L1TriggerError::prodID | ( | ) |
producer ID
Definition at line 15 of file L1TriggerError.cc.
References code_.
{ return (code_>>16) & 0xffff; }
void L1TriggerError::setCode | ( | int | code | ) | [inline] |
unsigned L1TriggerError::code_ [private] |