CMS 3D CMS Logo

IOVSyncValue.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : IOVSyncValue
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Wed Aug 3 18:35:35 EDT 2005
11 //
12 
13 // system include files
14 
15 // user include files
19 
20 //
21 // constants, enums and typedefs
22 //
23 namespace edm {
24 
25  //
26  // static data member definitions
27  //
28 
29  //
30  // constructors and destructor
31  //
32  IOVSyncValue::IOVSyncValue() : eventID_(), time_(), haveID_(true), haveTime_(true) {}
33 
35 
37 
38  IOVSyncValue::IOVSyncValue(const EventID& iID, const Timestamp& iTime)
39  : eventID_(iID), time_(iTime), haveID_(true), haveTime_(true) {}
40 
41  // IOVSyncValue::IOVSyncValue(const IOVSyncValue& rhs)
42  // {
43  // // do actual copying here;
44  // }
45 
46  //IOVSyncValue::~IOVSyncValue()
47  //{
48  //}
49 
50  //
51  // assignment operators
52  //
53  // const IOVSyncValue& IOVSyncValue::operator=(const IOVSyncValue& rhs)
54  // {
55  // //An exception safe implementation is
56  // IOVSyncValue temp(rhs);
57  // swap(rhs);
58  //
59  // return *this;
60  // }
61 
62  //
63  // member functions
64  //
65 
66  //
67  // const member functions
68  //
70  throw cms::Exception("InvalidIOVSyncValueComparison")
71  << "Attempted to compare a time-only and a run/lumi/event-only IOVSyncValue. Please report this error to the "
72  "framework experts.";
73  }
74 
75  //
76  // static member functions
77  //
79  static const IOVSyncValue s_invalid;
80  return s_invalid;
81  }
83  static const IOVSyncValue s_endOfTime(
86  return s_endOfTime;
87  }
89  static const IOVSyncValue s_beginOfTime(EventID(1, 0, 0), Timestamp::beginOfTime());
90  return s_beginOfTime;
91  }
92 } // namespace edm
static Timestamp endOfTime()
Definition: Timestamp.h:102
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:82
void throwInvalidComparison() const
Definition: IOVSyncValue.cc:69
static Timestamp beginOfTime()
Definition: Timestamp.h:103
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:88
static EventNumber_t maxEventNumber()
Definition: EventID.h:111
HLT enums.
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:78