Typedefs | |
typedef boost::date_time::subsecond_duration < boost::posix_time::time_duration, 1000000000 > | nanoseconds |
typedef cond::Time_t | Time_t |
typedef cond::TimeType | TimeType |
typedef cond::UnpackedTime | UnpackedTime |
Enumerations | |
enum | _timetype { INVALID =cond::invalid, RUNNUMBER =cond::runnumber, TIMESTAMP =cond::timestamp, LUMIID =cond::lumiid, HASH =cond::hash, USERID =cond::userid } |
Functions | |
Time_t | from_boost (boost::posix_time::ptime bt) |
Time_t | from_timeval (::timeval stv) |
Time_t | fromIOVSyncValue (edm::IOVSyncValue const &time, TimeType timetype) |
unsigned int | itsNanoseconds (boost::posix_time::time_duration const &td) |
const Time_t | kLowMask (0xFFFFFFFF) |
edm::IOVSyncValue | limitedIOVSyncValue (Time_t time, TimeType timetype) |
edm::IOVSyncValue | limitedIOVSyncValue (edm::IOVSyncValue const &time, TimeType timetype) |
const Time_t | MAX_VAL (std::numeric_limits< Time_t >::max()) |
const Time_t | MIN_VAL (0) |
Time_t | now () |
cond::Time_t | pack (cond::UnpackedTime iValue) |
Time_t | tillTimeFromNextSince (Time_t nextSince, TimeType timeType) |
TimeType | timeTypeFromName (const std::string &name) |
std::string | timeTypeName (TimeType type) |
boost::posix_time::ptime | to_boost (Time_t iValue) |
inline::timeval | to_timeval (Time_t iValue) |
edm::IOVSyncValue | toIOVSyncValue (cond::Time_t time, TimeType timetype, bool startOrStop) |
cond::UnpackedTime | unpack (cond::Time_t iValue) |
Variables | |
static constexpr const char *const | MAX_TIMESTAMP = "9999-12-31 23:59:59.000" |
static const std::pair< const char *, TimeType > | s_timeTypeMap [] |
static constexpr unsigned int | SINCE_GROUP_SIZE = 1000 |
const boost::posix_time::ptime | time0 |
typedef boost::date_time::subsecond_duration<boost::posix_time::time_duration,1000000000> cond::time::nanoseconds |
Definition at line 18 of file TimeConversions.h.
typedef cond::Time_t cond::time::Time_t |
typedef cond::TimeType cond::time::TimeType |
Enumerator | |
---|---|
INVALID | |
RUNNUMBER | |
TIMESTAMP | |
LUMIID | |
HASH | |
USERID |
Definition at line 30 of file Time.h.
|
inline |
Definition at line 52 of file TimeConversions.h.
References itsNanoseconds(), lumiQTWidget::t, and time0.
Referenced by SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffTrendPlotter::analyze(), SiStripDetVOffBuilder::getCondTime(), and FillInfoPopConSourceHandler::getNewObjects().
|
inline |
Time_t cond::time::fromIOVSyncValue | ( | edm::IOVSyncValue const & | time, |
TimeType | timetype | ||
) |
Definition at line 74 of file Time.cc.
References edm::IOVSyncValue::eventID(), LUMIID, edm::IOVSyncValue::luminosityBlockNumber(), edm::EventID::run(), RUNNUMBER, edm::IOVSyncValue::time(), TIMESTAMP, edm::LuminosityBlockID::value(), and edm::Timestamp::value().
Referenced by CondDBESSource::setIntervalFor().
|
inline |
Definition at line 36 of file TimeConversions.h.
Referenced by from_boost().
const Time_t cond::time::kLowMask | ( | 0xFFFFFFFF | ) |
Referenced by ME::time_low(), to_boost(), to_timeval(), and unpack().
edm::IOVSyncValue cond::time::limitedIOVSyncValue | ( | Time_t | time, |
TimeType | timetype | ||
) |
Definition at line 91 of file Time.cc.
References edm::IOVSyncValue::invalidIOVSyncValue(), cmsLHEtoEOSManager::l, LUMIID, edm::LuminosityBlockID::luminosityBlock(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::run(), RUNNUMBER, and TIMESTAMP.
Referenced by CondDBESSource::setIntervalFor().
edm::IOVSyncValue cond::time::limitedIOVSyncValue | ( | edm::IOVSyncValue const & | time, |
TimeType | timetype | ||
) |
Definition at line 116 of file Time.cc.
References edm::IOVSyncValue::eventID(), edm::IOVSyncValue::invalidIOVSyncValue(), LUMIID, edm::IOVSyncValue::luminosityBlockNumber(), edm::EventID::maxEventNumber(), edm::EventID::run(), RUNNUMBER, and TIMESTAMP.
const Time_t cond::time::MAX_VAL | ( | std::numeric_limits< Time_t >:: | max() | ) |
Referenced by cond::Iov_t::clear(), cond::persistency::IOVProxy::fetchSequence(), cond::persistency::IOVProxy::find(), cond::persistency::IOVProxy::getLast(), cond::Iov_t::isValid(), cond::persistency::IOVProxy::load(), cond::persistency::IOVProxy::loadedGroup(), cond::persistency::IOVProxy::reset(), cond::persistency::IOV::Table::selectLatestByGroup(), and cond::persistency::IOV::Table::selectSnapshotByGroup().
const Time_t cond::time::MIN_VAL | ( | 0 | ) |
Referenced by cond::Iov_t::clear(), cond::Tag_t::clear(), cond::persistency::IOVEditor::endOfValidity(), cond::persistency::IOVProxy::endOfValidity(), cond::persistency::IOVProxy::fetchSequence(), cond::Iov_t::isValid(), cond::persistency::IOVEditor::lastValidatedTime(), cond::persistency::IOVProxy::lastValidatedTime(), cond::persistency::IOVProxy::load(), cond::persistency::IOVProxy::loadedGroup(), cond::persistency::IOVProxy::reset(), cond::persistency::GTEditor::validity(), and cond::persistency::GTProxy::validity().
|
inline |
|
inline |
Definition at line 29 of file TimeConversions.h.
References lumiQTWidget::t.
Referenced by FillInfoPopConSourceHandler::getNewObjects(), and tillTimeFromNextSince().
Time_t cond::time::tillTimeFromNextSince | ( | Time_t | nextSince, |
TimeType | timeType | ||
) |
TimeType cond::time::timeTypeFromName | ( | const std::string & | name | ) |
Definition at line 24 of file Time.cc.
References cond::findSpecs(), i, s_timeTypeMap, and cond::TimeTypeSpecs::type.
Referenced by cond::service::PoolDBOutputService::fillRecord(), and cond::persistency::GetFromRow< cond::TimeType >::operator()().
std::string cond::time::timeTypeName | ( | TimeType | type | ) |
Definition at line 19 of file Time.cc.
References cond::invalid, and s_timeTypeMap.
|
inline |
Definition at line 45 of file TimeConversions.h.
References kLowMask(), seconds(), and time0.
Referenced by SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffTrendPlotter::analyze(), SiStripDetVOffTrendPlotter::dumpCSV(), SiStripDetVOffTkMapPlotter::formatIOV(), SiStripDetVOffTrendPlotter::formatIOV(), SiStripDetVOffBuilder::getCoralTime(), FillInfoPopConSourceHandler::getNewObjects(), and FillInfo::print().
inline ::timeval cond::time::to_timeval | ( | Time_t | iValue | ) |
Definition at line 60 of file TimeConversions.h.
References kLowMask().
edm::IOVSyncValue cond::time::toIOVSyncValue | ( | cond::Time_t | time, |
TimeType | timetype, | ||
bool | startOrStop | ||
) |
Definition at line 52 of file Time.cc.
References edm::IOVSyncValue::invalidIOVSyncValue(), cmsLHEtoEOSManager::l, LUMIID, edm::LuminosityBlockID::luminosityBlock(), edm::EventID::maxEventNumber(), edm::LuminosityBlockID::run(), RUNNUMBER, and TIMESTAMP.
Referenced by CondDBESSource::setIntervalFor().
|
inline |
Definition at line 25 of file TimeConversions.h.
References kLowMask().
Referenced by SiStripDetVOffTrendPlotter::analyze(), FillInfoPopConSourceHandler::getNewObjects(), and tillTimeFromNextSince().
|
static |
Definition at line 23 of file Time.h.
Referenced by CondDBESSource::CondDBESSource().
|
static |
Definition at line 14 of file Time.cc.
Referenced by timeTypeFromName(), and timeTypeName().
|
static |
Definition at line 37 of file Time.h.
Referenced by cond::persistency::IOV::SINCE_GROUP::group().
const boost::posix_time::ptime cond::time::time0 |
Definition at line 42 of file TimeConversions.h.
Referenced by from_boost(), RunInfoRead::readData(), and to_boost().