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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
// -*- C++ -*-
//
// Package: FWLite
// Class : IOVSyncValue
//
// Implementation:
// <Notes on implementation>
//
// Original Author: Chris Jones
// Created: Wed Aug 3 18:35:35 EDT 2005
//
// system include files
// user include files
#include "DataFormats/FWLite/interface/IOVSyncValue.h"
#include "DataFormats/Provenance/interface/LuminosityBlockID.h"
//
// constants, enums and typedefs
//
namespace fwlite {
//
// static data member definitions
//
//
// constructors and destructor
//
IOVSyncValue::IOVSyncValue() : eventID_(), time_(), haveID_(true), haveTime_(true) {}
IOVSyncValue::IOVSyncValue(const edm::EventID& iID) : eventID_(iID), time_(), haveID_(true), haveTime_(false) {}
IOVSyncValue::IOVSyncValue(const edm::Timestamp& iTime) : eventID_(), time_(iTime), haveID_(false), haveTime_(true) {}
IOVSyncValue::IOVSyncValue(const edm::EventID& iID, const edm::Timestamp& iTime)
: eventID_(iID), time_(iTime), haveID_(true), haveTime_(true) {}
// IOVSyncValue::IOVSyncValue(const IOVSyncValue& rhs)
// {
// // do actual copying here;
// }
//IOVSyncValue::~IOVSyncValue()
//{
//}
//
// assignment operators
//
// const IOVSyncValue& IOVSyncValue::operator=(const IOVSyncValue& rhs)
// {
// //An exception safe implementation is
// IOVSyncValue temp(rhs);
// swap(rhs);
//
// return *this;
// }
//
// member functions
//
//
// const member functions
//
//
// static member functions
//
const IOVSyncValue& IOVSyncValue::invalidIOVSyncValue() {
static const IOVSyncValue s_invalid;
return s_invalid;
}
const IOVSyncValue& IOVSyncValue::endOfTime() {
static const IOVSyncValue s_endOfTime(
edm::EventID(0xFFFFFFFFUL, edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::EventID::maxEventNumber()),
edm::Timestamp::endOfTime());
return s_endOfTime;
}
const IOVSyncValue& IOVSyncValue::beginOfTime() {
static const IOVSyncValue s_beginOfTime(edm::EventID(1, 0, 0), edm::Timestamp::beginOfTime());
return s_beginOfTime;
}
} // namespace fwlite
|