CMS 3D CMS Logo

IOVSyncValue.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Framework
00004 // Class  :     IOVSyncValue
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Wed Aug  3 18:35:35 EDT 2005
00011 // $Id: IOVSyncValue.cc,v 1.6 2008/08/11 22:51:49 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "FWCore/Framework/interface/IOVSyncValue.h"
00018 
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 namespace edm {
00024 
00025 //
00026 // static data member definitions
00027 //
00028 
00029 
00030 //
00031 // constructors and destructor
00032 //
00033 IOVSyncValue::IOVSyncValue(): eventID_(), lumiID_(0), time_(),
00034 haveID_(true), haveTime_(true)
00035 {
00036 }
00037 
00038 IOVSyncValue::IOVSyncValue(const EventID& iID, LuminosityBlockNumber_t iLumi) : eventID_(iID), lumiID_(iLumi), time_(),
00039 haveID_(true), haveTime_(false)
00040 {
00041 }
00042 
00043 IOVSyncValue::IOVSyncValue(const Timestamp& iTime) : eventID_(), lumiID_(0),time_(iTime),
00044 haveID_(false), haveTime_(true)
00045 {
00046 }
00047 
00048 IOVSyncValue::IOVSyncValue(const EventID& iID, LuminosityBlockNumber_t iLumi, const Timestamp& iTime) :
00049 eventID_(iID), lumiID_(iLumi), time_(iTime),
00050 haveID_(true), haveTime_(true)
00051 {
00052 }
00053 
00054 // IOVSyncValue::IOVSyncValue(const IOVSyncValue& rhs)
00055 // {
00056 //    // do actual copying here;
00057 // }
00058 
00059 //IOVSyncValue::~IOVSyncValue()
00060 //{
00061 //}
00062 
00063 //
00064 // assignment operators
00065 //
00066 // const IOVSyncValue& IOVSyncValue::operator=(const IOVSyncValue& rhs)
00067 // {
00068 //   //An exception safe implementation is
00069 //   IOVSyncValue temp(rhs);
00070 //   swap(rhs);
00071 //
00072 //   return *this;
00073 // }
00074 
00075 //
00076 // member functions
00077 //
00078 
00079 //
00080 // const member functions
00081 //
00082 
00083 //
00084 // static member functions
00085 //
00086 const IOVSyncValue&
00087 IOVSyncValue::invalidIOVSyncValue() {
00088    static IOVSyncValue s_invalid;
00089    return s_invalid;
00090 }
00091 const IOVSyncValue&
00092 IOVSyncValue::endOfTime() {
00093    static IOVSyncValue s_endOfTime(EventID(0xFFFFFFFFUL, EventID::maxEventNumber()),
00094                                    LuminosityBlockID::maxLuminosityBlockNumber(),
00095                                    Timestamp::endOfTime());
00096    return s_endOfTime;
00097 }
00098 const IOVSyncValue&
00099 IOVSyncValue::beginOfTime() {
00100    static IOVSyncValue s_beginOfTime(EventID(1,0), 0, Timestamp::beginOfTime());
00101    return s_beginOfTime;
00102 }
00103 }

Generated on Tue Jun 9 17:36:10 2009 for CMSSW by  doxygen 1.5.4