CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1TriggerError Class Reference

#include <L1TriggerError.h>

List of all members.

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_

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 21 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.

                                                                       :
  code_(prod<<16 & code)
{
}
L1TriggerError::~L1TriggerError ( )

dtor

Definition at line 10 of file L1TriggerError.cc.

{
}

Member Function Documentation

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]

set error

Definition at line 31 of file L1TriggerError.h.

References code(), and code_.

{ code_ = code; }

Member Data Documentation

unsigned L1TriggerError::code_ [private]

Definition at line 44 of file L1TriggerError.h.

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