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 |
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) |
Time_t | lumiTime (unsigned int run, unsigned int lumiId) |
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) |
const unsigned int | SECONDS_PER_LUMI (23) |
Time_t | sinceGroupSize (TimeType tp) |
Time_t | tillTimeForIOV (Time_t since, unsigned int iovSize, TimeType timeType) |
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) |
std::string | transactionIdForLumiTime (Time_t time, unsigned int iovSize, const std::string &secretKey) |
cond::UnpackedTime | unpack (cond::Time_t iValue) |
Variables | |
static constexpr TimeType | HASH = cond::hash |
static constexpr TimeType | INVALID = cond::invalid |
static constexpr TimeType | LUMIID = cond::lumiid |
static constexpr const char *const | MAX_TIMESTAMP = "9999-12-31 23:59:59.000" |
static constexpr TimeType | RUNNUMBER = cond::runnumber |
static const std::pair< const char *, TimeType > | s_timeTypeMap [] |
static constexpr unsigned int | SINCE_HASH_GROUP_SIZE = SINCE_RUN_GROUP_SIZE |
static constexpr unsigned int | SINCE_LUMI_GROUP_SIZE = SINCE_RUN_GROUP_SIZE |
static constexpr unsigned int | SINCE_RUN_GROUP_SIZE = 1000 |
static constexpr unsigned long | SINCE_TIME_GROUP_SIZE = 154618822656000 |
const boost::posix_time::ptime | time0 = boost::posix_time::from_time_t(0) |
static constexpr TimeType | TIMESTAMP = cond::timestamp |
static constexpr TimeType | USERID = cond::userid |
typedef boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000000> cond::time::nanoseconds |
Definition at line 16 of file TimeConversions.h.
typedef cond::Time_t cond::time::Time_t |
typedef cond::TimeType cond::time::TimeType |
|
inline |
Definition at line 43 of file TimeConversions.h.
References itsNanoseconds(), submitPVValidationJobs::t, and time0.
Referenced by LHCInfoPerLSPopConSourceHandler::addPayloadToBuffer(), LHCInfoPerFillPopConSourceHandler::addPayloadToBuffer(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > >::fill(), SiStripDetVOffBuilder::getCondTime(), LHCInfoPopConSourceHandler::getCTPPSData(), LHCInfoPerFillPopConSourceHandler::getCTPPSData(), LHCInfoPopConSourceHandler::getEcalData(), LHCInfoPerFillPopConSourceHandler::getEcalData(), LHCInfoPopConSourceHandler::getLumiData(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), cond::FileBasedEmptySource::initialize(), theLHCInfoPerFillImpl::makeFillPayload(), theLHCInfoImpl::makeFillPayload(), LHCInfoPerLSPopConSourceHandler::makeFillPayload(), and cond::FileBasedEmptySource::setRunAndEventInfo().
|
inline |
Definition at line 58 of file TimeConversions.h.
References submitPVValidationJobs::t.
Referenced by now().
Time_t cond::time::fromIOVSyncValue | ( | edm::IOVSyncValue const & | time, |
TimeType | timetype | ||
) |
Definition at line 97 of file Time.cc.
References LUMIID, RUNNUMBER, hcalRecHitTable_cff::time, TIMESTAMP, AlCaHarvesting_cff::timetype, and edm::LuminosityBlockID::value().
Referenced by CondDBESSource::setIntervalFor().
|
inline |
Definition at line 32 of file TimeConversions.h.
Referenced by from_boost().
const Time_t cond::time::kLowMask | ( | 0xFFFFFFFF | ) |
edm::IOVSyncValue cond::time::limitedIOVSyncValue | ( | Time_t | time, |
TimeType | timetype | ||
) |
Definition at line 113 of file Time.cc.
References edm::IOVSyncValue::invalidIOVSyncValue(), MainPageGenerator::l, LUMIID, edm::EventID::maxEventNumber(), RUNNUMBER, hcalRecHitTable_cff::time, TIMESTAMP, and AlCaHarvesting_cff::timetype.
Referenced by CondDBESSource::setIntervalFor().
edm::IOVSyncValue cond::time::limitedIOVSyncValue | ( | edm::IOVSyncValue const & | time, |
TimeType | timetype | ||
) |
Definition at line 131 of file Time.cc.
References edm::IOVSyncValue::invalidIOVSyncValue(), LUMIID, edm::EventID::maxEventNumber(), RUNNUMBER, hcalRecHitTable_cff::time, TIMESTAMP, and AlCaHarvesting_cff::timetype.
Time_t cond::time::lumiTime | ( | unsigned int | run, |
unsigned int | lumiId | ||
) |
Definition at line 66 of file Time.cc.
References pack(), and writedatasetfile::run.
Referenced by LHCInfoPerLSPopConSourceHandler::addPayloadToBuffer(), LHCInfoPerFillPopConSourceHandler::addPayloadToBuffer(), cond::lhcInfoHelper::getFillLastLumiIOV(), cond::getLastLumiFromOMS(), cond::service::OnlineDBOutputService::getLastLumiProcessed(), LHCInfoPopConSourceHandler::getLumiData(), BeamSpotOnlinePopConSourceHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), transactionIdForLumiTime(), and cond::service::OnlineDBOutputService::writeIOVForNextLumisection().
Referenced by FastSiPixelFEDChannelContainerFromQuality::analyze(), cond::Iov_t::clear(), cond::persistency::IOVProxy::fetchSequence(), cond::persistency::IOVProxy::getInterval(), MillePedeAlignmentAlgorithm::initialize(), cond::TagInfo_t::isEmpty(), cond::Iov_t::isValid(), cond::persistency::IOVProxy::loadedGroup(), cond::persistency::IOVArray::Iterator::operator*(), LumiSectionFilter< T >::process(), cond::persistency::IOVProxy::resetIOVCache(), cond::persistency::IOV::Table::select(), cond::persistency::IOVProxy::selectAll(), CondDBESSource::setIntervalFor(), cond::persistency::setTillToLastIov(), tillTimeForIOV(), tillTimeFromNextSince(), cond::service::PoolDBOutputService::writeMany(), and cond::service::PoolDBOutputService::writeOneIOV().
const Time_t cond::time::MIN_VAL | ( | 0 | ) |
Referenced by FastSiPixelFEDChannelContainerFromQuality::analyze(), cond::Iov_t::clear(), cond::Tag_t::clear(), cond::persistency::IOVEditor::endOfValidity(), cond::persistency::IOVProxy::fetchSequence(), cond::persistency::RunInfoEditor::getLastInserted(), cond::persistency::RUN_INFO::Table::getLastInserted(), cond::getLastLumiFromOMS(), cond::service::OnlineDBOutputService::getLastLumiProcessed(), cond::getLatestLumiFromFile(), cond::FileBasedEmptySource::initialize(), MillePedeAlignmentAlgorithm::initialize(), cond::Iov_t::isValid(), cond::persistency::IOVEditor::lastValidatedTime(), cond::persistency::IOVProxy::loadedGroup(), cond::persistency::IOVProxy::resetIOVCache(), cond::persistency::IOVProxy::selectAll(), cond::FileBasedEmptySource::setRunAndEventInfo(), cond::persistency::GTEditor::validity(), and cond::persistency::GTProxy::validity().
|
inline |
|
inline |
Definition at line 26 of file TimeConversions.h.
References submitPVValidationJobs::t.
Referenced by SiPixelQualityPlotter::analyze(), FillInfoPopConSourceHandler::getNewObjects(), lumiTime(), tillTimeForIOV(), and tillTimeFromNextSince().
const unsigned int cond::time::SECONDS_PER_LUMI | ( | 23 | ) |
Definition at line 68 of file Time.cc.
References HASH, LUMIID, SINCE_HASH_GROUP_SIZE, SINCE_LUMI_GROUP_SIZE, SINCE_RUN_GROUP_SIZE, SINCE_TIME_GROUP_SIZE, TIMESTAMP, and cmsswSequenceInfo::tp.
Referenced by cond::persistency::IOVProxy::loadGroups().
Definition at line 54 of file Time.cc.
References MAX_VAL(), pack(), SiStripBadComponentsDQMServiceTemplate_cfg::since, tillTimeFromNextSince(), TIMESTAMP, and unpack().
Referenced by CondDBESSource::setIntervalFor().
Definition at line 34 of file Time.cc.
References createfilelist::int, MAX_VAL(), pack(), TIMESTAMP, and unpack().
Referenced by cond::persistency::IOVProxy::fetchSequence(), cond::persistency::IOVProxy::getInterval(), cond::persistency::IOVArray::Iterator::operator*(), and tillTimeForIOV().
TimeType cond::time::timeTypeFromName | ( | const std::string & | name | ) |
Definition at line 25 of file Time.cc.
References cond::findSpecs(), mps_fire::i, Skims_PA_cff::name, 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 s_timeTypeMap.
Referenced by cond::persistency::f_add_attribute().
|
inline |
Definition at line 39 of file TimeConversions.h.
References kLowMask(), seconds(), and time0.
Referenced by LHCInfoPerLSPopConSourceHandler::addEmptyPayload(), LHCInfoPerFillPopConSourceHandler::addEmptyPayload(), SiStripDetVOffHandler::analyze(), SiStripDetVOffTkMapPlotter::analyze(), SiStripDetVOffPrinter::analyze(), SiStripDetVOffTrendPlotter::analyze(), WriteCTPPSBeamParameters::analyze(), SiStripDetVOffTrendPlotter::dumpCSV(), cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >::fill(), cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > >::fill(), SiStripDetVOffTkMapPlotter::formatIOV(), SiStripDetVOffTrendPlotter::formatIOV(), SiStripDetVOffBuilder::getCoralTime(), LHCInfoPopConSourceHandler::getEcalData(), LHCInfoPerFillPopConSourceHandler::getEcalData(), FillInfoPopConSourceHandler::getNewObjects(), LHCInfoPopConSourceHandler::getNewObjects(), LHCInfoPerLSPopConSourceHandler::getNewObjects(), LHCInfoPerFillPopConSourceHandler::getNewObjects(), FillInfo::print(), LHCInfoPerFill::print(), LHCInfo::print(), and theLHCInfoPerFillImpl::transferPayloads().
inline ::timeval cond::time::to_timeval | ( | Time_t | iValue | ) |
Definition at line 49 of file TimeConversions.h.
References kLowMask().
edm::IOVSyncValue cond::time::toIOVSyncValue | ( | cond::Time_t | time, |
TimeType | timetype, | ||
bool | startOrStop | ||
) |
Definition at line 79 of file Time.cc.
References edm::IOVSyncValue::invalidIOVSyncValue(), MainPageGenerator::l, LUMIID, edm::EventID::maxEventNumber(), RUNNUMBER, hcalRecHitTable_cff::time, TIMESTAMP, and AlCaHarvesting_cff::timetype.
Referenced by CondDBESSource::setIntervalFor().
std::string cond::time::transactionIdForLumiTime | ( | Time_t | time, |
unsigned int | iovSize, | ||
const std::string & | secretKey | ||
) |
Definition at line 150 of file Time.cc.
References l1ctLayer2EG_cff::id, lumiTime(), hltrates_dqm_sourceclient-live_cfg::offset, hcalRecHitTable_cff::time, and unpack().
Referenced by cond::service::OnlineDBOutputService::preLoadIov(), and CondDBESSource::setIntervalFor().
|
inline |
Definition at line 22 of file TimeConversions.h.
References kLowMask().
Referenced by SiStripDetVOffTrendPlotter::analyze(), SiPixelQualityPlotter::endJob(), cond::service::OnlineDBOutputService::getLastLumiProcessed(), FillInfoPopConSourceHandler::getNewObjects(), cond::FileBasedEmptySource::initialize(), cond::FileBasedEmptySource::setRunAndEventInfo(), tillTimeForIOV(), tillTimeFromNextSince(), transactionIdForLumiTime(), and cond::service::OnlineDBOutputService::writeIOVForNextLumisection().
|
static |
Definition at line 37 of file Time.h.
Referenced by sinceGroupSize().
|
static |
|
static |
Definition at line 36 of file Time.h.
Referenced by fromIOVSyncValue(), limitedIOVSyncValue(), sinceGroupSize(), and toIOVSyncValue().
|
static |
Definition at line 26 of file Time.h.
Referenced by CondDBESSource::CondDBESSource().
|
static |
Definition at line 34 of file Time.h.
Referenced by fromIOVSyncValue(), limitedIOVSyncValue(), and toIOVSyncValue().
|
static |
Definition at line 14 of file Time.cc.
Referenced by timeTypeFromName(), and timeTypeName().
|
static |
Definition at line 49 of file Time.h.
Referenced by sinceGroupSize().
|
static |
Definition at line 48 of file Time.h.
Referenced by sinceGroupSize().
|
static |
Definition at line 45 of file Time.h.
Referenced by sinceGroupSize().
|
static |
Definition at line 47 of file Time.h.
Referenced by sinceGroupSize().
const boost::posix_time::ptime cond::time::time0 = boost::posix_time::from_time_t(0) |
Definition at line 37 of file TimeConversions.h.
Referenced by from_boost(), main(), RunInfoRead::readData(), and to_boost().
|
static |
Definition at line 35 of file Time.h.
Referenced by fromIOVSyncValue(), limitedIOVSyncValue(), sinceGroupSize(), tillTimeForIOV(), tillTimeFromNextSince(), and toIOVSyncValue().
|
static |