CMS 3D CMS Logo

L1TriggerError.h
Go to the documentation of this file.
1 #ifndef L1TriggerError_h
2 #define L1TriggerError_h
3 
4 // -*- C++ -*-
5 //
6 // Package: DataFormatsL1Trigger
7 // Class : L1TriggerError
8 //
14 //
15 // Original Author: Jim Brooke
16 // Created:
17 //
18 
20 public:
22  explicit L1TriggerError(unsigned short prodID = 0, unsigned short code = 0);
23 
26 
28  void setCode(int code) { code_ = code; }
29 
31  unsigned code() { return code_; }
32 
34  unsigned prodID();
35 
37  unsigned prodErr();
38 
39 private:
40  unsigned code_;
41 };
42 
43 #include <vector>
44 
45 typedef std::vector<L1TriggerError> L1TriggerErrorCollection;
46 
47 #endif
L1TriggerError::setCode
void setCode(int code)
set error
Definition: L1TriggerError.h:28
L1TriggerError::code_
unsigned code_
Definition: L1TriggerError.h:40
L1TriggerError::code
unsigned code()
get error
Definition: L1TriggerError.h:31
L1TriggerError::prodID
unsigned prodID()
producer ID
Definition: L1TriggerError.cc:7
L1TriggerErrorCollection
std::vector< L1TriggerError > L1TriggerErrorCollection
Definition: L1TriggerError.h:45
L1TriggerError::L1TriggerError
L1TriggerError(unsigned short prodID=0, unsigned short code=0)
construct from an error code
Definition: L1TriggerError.cc:3
L1TriggerError::~L1TriggerError
~L1TriggerError()
dtor
Definition: L1TriggerError.cc:5
L1TriggerError
Definition: L1TriggerError.h:19
L1TriggerError::prodErr
unsigned prodErr()
producer error
Definition: L1TriggerError.cc:9