CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
IOVSyncValue.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FWLite
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
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 namespace fwlite {
24 
25 //
26 // static data member definitions
27 //
28 
29 
30 //
31 // constructors and destructor
32 //
33 IOVSyncValue::IOVSyncValue(): eventID_(), time_(),
34 haveID_(true), haveTime_(true)
35 {
36 }
37 
38 IOVSyncValue::IOVSyncValue(const edm::EventID& iID) : eventID_(iID), time_(),
39 haveID_(true), haveTime_(false)
40 {
41 }
42 
43 IOVSyncValue::IOVSyncValue(const edm::Timestamp& iTime) : eventID_(), time_(iTime),
44 haveID_(false), haveTime_(true)
45 {
46 }
47 
49 eventID_(iID), time_(iTime),
50 haveID_(true), haveTime_(true)
51 {
52 }
53 
54 // IOVSyncValue::IOVSyncValue(const IOVSyncValue& rhs)
55 // {
56 // // do actual copying here;
57 // }
58 
59 //IOVSyncValue::~IOVSyncValue()
60 //{
61 //}
62 
63 //
64 // assignment operators
65 //
66 // const IOVSyncValue& IOVSyncValue::operator=(const IOVSyncValue& rhs)
67 // {
68 // //An exception safe implementation is
69 // IOVSyncValue temp(rhs);
70 // swap(rhs);
71 //
72 // return *this;
73 // }
74 
75 //
76 // member functions
77 //
78 
79 //
80 // const member functions
81 //
82 
83 //
84 // static member functions
85 //
86 const IOVSyncValue&
88  static IOVSyncValue s_invalid;
89  return s_invalid;
90 }
91 const IOVSyncValue&
95  return s_endOfTime;
96 }
97 const IOVSyncValue&
99  static IOVSyncValue s_beginOfTime(edm::EventID(1,0,0), edm::Timestamp::beginOfTime());
100  return s_beginOfTime;
101 }
102 }
static const IOVSyncValue & beginOfTime()
Definition: IOVSyncValue.cc:98
static LuminosityBlockNumber_t maxLuminosityBlockNumber()
static const IOVSyncValue & endOfTime()
Definition: IOVSyncValue.cc:92
static EventNumber_t maxEventNumber()
Definition: EventID.h:106
static Timestamp const & beginOfTime()
Definition: Timestamp.cc:96
static Timestamp const & endOfTime()
Definition: Timestamp.cc:88
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:87