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
|
#ifndef DataFormats_Provenance_RunLumiEntryInfo_h
#define DataFormats_Provenance_RunLumiEntryInfo_h
/*----------------------------------------------------------------------
RunLumiEntryInfo: The event dependent portion of the description of a product
and how it came into existence, plus the product identifier.
----------------------------------------------------------------------*/
#include <iosfwd>
#include <vector>
#include "DataFormats/Provenance/interface/BranchID.h"
/*
RunLumiEntryInfo
*/
namespace edm {
class RunLumiEntryInfo {
public:
RunLumiEntryInfo();
~RunLumiEntryInfo();
void write(std::ostream& os) const;
BranchID const& branchID() const { return branchID_; }
private:
BranchID branchID_;
};
inline bool operator<(RunLumiEntryInfo const& a, RunLumiEntryInfo const& b) { return a.branchID() < b.branchID(); }
inline std::ostream& operator<<(std::ostream& os, RunLumiEntryInfo const& p) {
p.write(os);
return os;
}
// Only the 'salient attributes' are testing in equality comparison.
bool operator==(RunLumiEntryInfo const& a, RunLumiEntryInfo const& b);
inline bool operator!=(RunLumiEntryInfo const& a, RunLumiEntryInfo const& b) { return !(a == b); }
typedef RunLumiEntryInfo LumiEntryInfo;
typedef RunLumiEntryInfo RunEntryInfo;
} // namespace edm
#endif
|