1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef L1TriggerError_h
#define L1TriggerError_h
// -*- C++ -*-
//
// Package: DataFormatsL1Trigger
// Class : L1TriggerError
//
/**\class L1TriggerError \file L1TriggerError.h DataFormats/L1Trigger/interface/L1TriggerError.h \author Jim Brooke
Description: Class for communicating errors between modules.
Intended to be transient *only*
*/
//
// Original Author: Jim Brooke
// Created:
//
class L1TriggerError {
public:
/// construct from an error code
explicit L1TriggerError(unsigned short prodID = 0, unsigned short code = 0);
/// dtor
~L1TriggerError();
/// set error
void setCode(int code) { code_ = code; }
/// get error
unsigned code() { return code_; }
/// producer ID
unsigned prodID();
/// producer error
unsigned prodErr();
private:
unsigned code_;
};
#include <vector>
typedef std::vector<L1TriggerError> L1TriggerErrorCollection;
#endif
|