CMS 3D CMS Logo

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::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) {}

◆ ~L1TriggerError()

L1TriggerError::~L1TriggerError ( )

dtor

Definition at line 5 of file L1TriggerError.cc.

5 {}

Member Function Documentation

◆ code()

unsigned L1TriggerError::code ( )
inline

get error

Definition at line 31 of file L1TriggerError.h.

31 { return code_; }

References code_.

Referenced by setCode().

◆ prodErr()

unsigned L1TriggerError::prodErr ( )

producer error

Definition at line 9 of file L1TriggerError.cc.

9 { return code_ & 0xffff; }

References code_.

◆ prodID()

unsigned L1TriggerError::prodID ( )

producer ID

Definition at line 7 of file L1TriggerError.cc.

7 { return (code_ >> 16) & 0xffff; }

References code_.

◆ setCode()

void L1TriggerError::setCode ( int  code)
inline

set error

Definition at line 28 of file L1TriggerError.h.

28 { code_ = code; }

References code(), and code_.

Member Data Documentation

◆ code_

unsigned L1TriggerError::code_
private

Definition at line 40 of file L1TriggerError.h.

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

L1TriggerError::code_
unsigned code_
Definition: L1TriggerError.h:40
L1TriggerError::code
unsigned code()
get error
Definition: L1TriggerError.h:31
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24