#include <IOVSyncValue.h>
Public Member Functions | |
const edm::EventID & | eventID () const |
IOVSyncValue () | |
IOVSyncValue (const edm::EventID &iID, const edm::Timestamp &iTime) | |
IOVSyncValue (const edm::EventID &iID) | |
IOVSyncValue (const edm::Timestamp &iTime) | |
edm::LuminosityBlockNumber_t | luminosityBlockNumber () const |
bool | operator!= (const IOVSyncValue &iRHS) const |
bool | operator< (const IOVSyncValue &iRHS) const |
bool | operator<= (const IOVSyncValue &iRHS) const |
bool | operator== (const IOVSyncValue &iRHS) const |
bool | operator> (const IOVSyncValue &iRHS) const |
bool | operator>= (const IOVSyncValue &iRHS) const |
const edm::Timestamp & | time () const |
Static Public Member Functions | |
static const IOVSyncValue & | beginOfTime () |
static const IOVSyncValue & | endOfTime () |
static const IOVSyncValue & | invalidIOVSyncValue () |
Private Member Functions | |
template<template< typename > class Op> | |
bool | doOp (const IOVSyncValue &iRHS) const |
Private Attributes | |
edm::EventID | eventID_ |
bool | haveID_ |
bool | haveTime_ |
edm::Timestamp | time_ |
Definition at line 31 of file IOVSyncValue.h.
IOVSyncValue::IOVSyncValue | ( | ) |
IOVSyncValue::IOVSyncValue | ( | const edm::EventID & | iID | ) | [explicit] |
IOVSyncValue::IOVSyncValue | ( | const edm::Timestamp & | iTime | ) | [explicit] |
IOVSyncValue::IOVSyncValue | ( | const edm::EventID & | iID, |
const edm::Timestamp & | iTime | ||
) |
const IOVSyncValue & IOVSyncValue::beginOfTime | ( | ) | [static] |
Definition at line 98 of file IOVSyncValue.cc.
References edm::Timestamp::beginOfTime().
{ static IOVSyncValue s_beginOfTime(edm::EventID(1,0,0), edm::Timestamp::beginOfTime()); return s_beginOfTime; }
bool fwlite::IOVSyncValue::doOp | ( | const IOVSyncValue & | iRHS | ) | const [inline, private] |
Definition at line 78 of file IOVSyncValue.h.
References eventID_, haveID_, haveTime_, luminosityBlockNumber(), edm::EventID::run(), and time_.
{ bool returnValue = false; if(haveID_ && iRHS.haveID_) { if(luminosityBlockNumber()==0 || iRHS.luminosityBlockNumber()==0 || luminosityBlockNumber()==iRHS.luminosityBlockNumber()) { Op<edm::EventID> op; returnValue = op(eventID_, iRHS.eventID_); } else { if(iRHS.eventID_.run() == eventID_.run()) { Op<edm::LuminosityBlockNumber_t> op; returnValue = op(luminosityBlockNumber(), iRHS.luminosityBlockNumber()); } else { Op<edm::RunNumber_t> op; returnValue = op(eventID_.run(), iRHS.eventID_.run()); } } } else if (haveTime_ && iRHS.haveTime_) { Op<edm::Timestamp> op; returnValue = op(time_, iRHS.time_); } else { //error } return returnValue; }
const IOVSyncValue & IOVSyncValue::endOfTime | ( | ) | [static] |
Definition at line 92 of file IOVSyncValue.cc.
References edm::Timestamp::endOfTime(), edm::EventID::maxEventNumber(), and edm::LuminosityBlockID::maxLuminosityBlockNumber().
{ static IOVSyncValue s_endOfTime(edm::EventID(0xFFFFFFFFUL, edm::LuminosityBlockID::maxLuminosityBlockNumber(), edm::EventID::maxEventNumber()), edm::Timestamp::endOfTime()); return s_endOfTime; }
const edm::EventID& fwlite::IOVSyncValue::eventID | ( | ) | const [inline] |
const IOVSyncValue & IOVSyncValue::invalidIOVSyncValue | ( | ) | [static] |
Definition at line 87 of file IOVSyncValue.cc.
Referenced by fwlite::Record::syncTo().
{ static IOVSyncValue s_invalid; return s_invalid; }
edm::LuminosityBlockNumber_t fwlite::IOVSyncValue::luminosityBlockNumber | ( | ) | const [inline] |
Definition at line 43 of file IOVSyncValue.h.
References eventID_, and edm::EventID::luminosityBlock().
Referenced by doOp().
{ return eventID_.luminosityBlock();}
bool fwlite::IOVSyncValue::operator!= | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 49 of file IOVSyncValue.h.
{
return doOp<std::not_equal_to>(iRHS);
}
bool fwlite::IOVSyncValue::operator< | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 53 of file IOVSyncValue.h.
{
return doOp<std::less>(iRHS);
}
bool fwlite::IOVSyncValue::operator<= | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 56 of file IOVSyncValue.h.
{
return doOp<std::less_equal>(iRHS);
}
bool fwlite::IOVSyncValue::operator== | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 46 of file IOVSyncValue.h.
{
return doOp<std::equal_to>(iRHS);
}
bool fwlite::IOVSyncValue::operator> | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 59 of file IOVSyncValue.h.
{
return doOp<std::greater>(iRHS);
}
bool fwlite::IOVSyncValue::operator>= | ( | const IOVSyncValue & | iRHS | ) | const [inline] |
Definition at line 62 of file IOVSyncValue.h.
{
return doOp<std::greater_equal>(iRHS);
}
const edm::Timestamp& fwlite::IOVSyncValue::time | ( | ) | const [inline] |
edm::EventID fwlite::IOVSyncValue::eventID_ [private] |
Definition at line 104 of file IOVSyncValue.h.
Referenced by doOp(), eventID(), and luminosityBlockNumber().
bool fwlite::IOVSyncValue::haveID_ [private] |
Definition at line 106 of file IOVSyncValue.h.
Referenced by doOp().
bool fwlite::IOVSyncValue::haveTime_ [private] |
Definition at line 107 of file IOVSyncValue.h.
Referenced by doOp().
edm::Timestamp fwlite::IOVSyncValue::time_ [private] |
Definition at line 105 of file IOVSyncValue.h.