CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
edm::Timestamp Class Reference

#include <Timestamp.h>

Public Member Functions

unsigned int microsecondOffset () const
 Microseconds offset within second. More...
 
bool operator!= (Timestamp const &iRHS) const
 
bool operator< (Timestamp const &iRHS) const
 
bool operator<= (Timestamp const &iRHS) const
 
bool operator== (Timestamp const &iRHS) const
 
bool operator> (Timestamp const &iRHS) const
 
bool operator>= (Timestamp const &iRHS) const
 
 Timestamp (TimeValue_t iValue)
 
 Timestamp ()
 
unsigned int unixTime () const
 Time in seconds since January 1, 1970. More...
 
TimeValue_t value () const
 

Static Public Member Functions

static Timestamp beginOfTime ()
 
static Timestamp endOfTime ()
 
static Timestamp invalidTimestamp ()
 

Private Attributes

unsigned int timeHigh_
 
unsigned int timeLow_
 

Static Private Attributes

static const TimeValue_t kLowMask = 0xFFFFFFFF
 

Detailed Description

Definition at line 30 of file Timestamp.h.

Constructor & Destructor Documentation

edm::Timestamp::Timestamp ( TimeValue_t  iValue)
inlineexplicit

Definition at line 34 of file Timestamp.h.

35  : timeLow_(static_cast<unsigned int>(kLowMask & iValue)), timeHigh_(static_cast<unsigned int>(iValue >> 32)) {}
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
static const TimeValue_t kLowMask
Definition: Timestamp.h:31
edm::Timestamp::Timestamp ( )
inline

Definition at line 37 of file Timestamp.h.

Referenced by beginOfTime(), endOfTime(), and invalidTimestamp().

static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96

Member Function Documentation

static Timestamp edm::Timestamp::beginOfTime ( )
inlinestatic
static Timestamp edm::Timestamp::endOfTime ( )
inlinestatic
static Timestamp edm::Timestamp::invalidTimestamp ( )
inlinestatic
unsigned int edm::Timestamp::microsecondOffset ( ) const
inline

Microseconds offset within second.

Definition at line 43 of file Timestamp.h.

References timeLow_.

Referenced by edm::operator<<(), and CosmicRateAnalyzer::stampToReal().

43 { return timeLow_; }
unsigned int timeLow_
Definition: Timestamp.h:96
bool edm::Timestamp::operator!= ( Timestamp const &  iRHS) const
inline

Definition at line 54 of file Timestamp.h.

54 { return !(*this == iRHS); }
bool edm::Timestamp::operator< ( Timestamp const &  iRHS) const
inline

Definition at line 56 of file Timestamp.h.

References timeHigh_, and timeLow_.

56  {
57  if (timeHigh_ == iRHS.timeHigh_) {
58  return timeLow_ < iRHS.timeLow_;
59  }
60  return timeHigh_ < iRHS.timeHigh_;
61  }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
bool edm::Timestamp::operator<= ( Timestamp const &  iRHS) const
inline

Definition at line 62 of file Timestamp.h.

References timeHigh_, and timeLow_.

62  {
63  if (timeHigh_ == iRHS.timeHigh_) {
64  return timeLow_ <= iRHS.timeLow_;
65  }
66  return timeHigh_ <= iRHS.timeHigh_;
67  }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
bool edm::Timestamp::operator== ( Timestamp const &  iRHS) const
inline

Definition at line 53 of file Timestamp.h.

References timeHigh_, and timeLow_.

53 { return timeHigh_ == iRHS.timeHigh_ && timeLow_ == iRHS.timeLow_; }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
bool edm::Timestamp::operator> ( Timestamp const &  iRHS) const
inline

Definition at line 68 of file Timestamp.h.

References timeHigh_, and timeLow_.

68  {
69  if (timeHigh_ == iRHS.timeHigh_) {
70  return timeLow_ > iRHS.timeLow_;
71  }
72  return timeHigh_ > iRHS.timeHigh_;
73  }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
bool edm::Timestamp::operator>= ( Timestamp const &  iRHS) const
inline

Definition at line 74 of file Timestamp.h.

References timeHigh_, and timeLow_.

74  {
75  if (timeHigh_ == iRHS.timeHigh_) {
76  return timeLow_ >= iRHS.timeLow_;
77  }
78  return timeHigh_ >= iRHS.timeHigh_;
79  }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
unsigned int edm::Timestamp::unixTime ( ) const
inline
TimeValue_t edm::Timestamp::value ( ) const
inline

Definition at line 45 of file Timestamp.h.

References timeHigh_, and timeLow_.

Referenced by Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), SiStripGainFromData::algoAnalyze(), EcalStatusAnalyzer::analyze(), EcalGetLaserData::analyze(), DTNoiseCalibration::analyze(), TotemTimingDQMSource::analyze(), DTDigiTask::analyze(), EcalCosmicsHists::analyze(), EcnaAnalyzer::analyze(), TrackerDpgAnalysis::analyze(), average.Average::average(), ecaldqm::OccupancyTask::beginEvent(), AlcaBeamSpotProducer::beginLuminosityBlock(), BeamSpotAnalyzer::beginLuminosityBlock(), BeamMonitorBx::beginLuminosityBlock(), FakeBeamMonitor::beginLuminosityBlock(), BeamMonitor::beginLuminosityBlock(), BeamMonitorBx::beginRun(), DTNoiseCalibration::beginRun(), FakeBeamMonitor::bookHistograms(), BeamMonitor::bookHistograms(), Types.string::configValue(), Types.FileInPath::configValue(), Vx3DHLTAnalyzer::dqmBeginLuminosityBlock(), Vx3DHLTAnalyzer::dqmEndLuminosityBlock(), Mixins.UsingBlock::dumpPython(), BeamSpotAnalyzer::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), FakeBeamMonitor::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), AlcaBeamSpotProducer::endLuminosityBlockProduce(), HLTPrescaleRecorder::endRun(), HLXMonitor::FillEventInfo(), cond::time::fromIOVSyncValue(), EcalLaserDbService::getLaserCorrection(), fireworks::getLocalTime(), popcon::RpcDataUXC::getNewObjects(), popcon::RpcDataV::getNewObjects(), popcon::RpcDataFebmap::getNewObjects(), popcon::RpcDataGasMix::getNewObjects(), popcon::RpcObGasData::getNewObjects(), popcon::RPCObPVSSmapData::getNewObjects(), popcon::RpcDataI::getNewObjects(), popcon::RpcDataS::getNewObjects(), popcon::RpcDataT::getNewObjects(), popcon::EcalLaser_weekly_Handler::getNewObjects(), popcon::EcalLaserHandler::getNewObjects(), fireworks::getTimeGMT(), EcalSignalGenerator< EEDigitizerTraits >::initializeEvent(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), boost::serialization::load(), edm::service::Tracer::postEvent(), edm::service::Tracer::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginRun(), edm::service::Tracer::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndRun(), edm::service::Tracer::postGlobalWriteLumi(), edm::service::Tracer::postGlobalWriteRun(), edm::service::Tracer::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginRun(), edm::service::Tracer::postStreamEndLumi(), edm::service::Tracer::postStreamEndRun(), edm::service::Tracer::preEvent(), cond::service::PoolDBOutputService::preEventProcessing(), edm::service::Tracer::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginRun(), edm::service::Tracer::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndRun(), edm::service::Tracer::preGlobalWriteLumi(), edm::service::Tracer::preGlobalWriteRun(), edm::service::Tracer::preStreamBeginLumi(), edm::service::Tracer::preStreamBeginRun(), edm::service::Tracer::preStreamEndLumi(), edm::service::Tracer::preStreamEndRun(), EcalPhiSymRecHitProducerBase::processEvent(), L1GlobalTrigger::produce(), publishObjects(), BeamFitter::readEvent(), boost::serialization::save(), L1Analysis::L1AnalysisEvent::Set(), HiTrivialConditionRetriever::setIntervalFor(), CastorHardcodeCalibrations::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), ESTrivialConditionRetriever::setIntervalFor(), HcalHardcodeCalibrations::setIntervalFor(), CondDBESSource::setIntervalFor(), FWLiteESSource::setIntervalFor(), EcalTrivialConditionRetriever::setIntervalFor(), stampToReal(), edm::service::Tracer::Tracer(), edm::AsciiOutputModule::write(), LaserSorter::writeEventHeader(), DQMRootOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeRun().

45  {
46  TimeValue_t returnValue = timeHigh_;
47  returnValue = returnValue << 32;
48  returnValue += timeLow_;
49  return returnValue;
50  }
unsigned int timeHigh_
Definition: Timestamp.h:97
unsigned int timeLow_
Definition: Timestamp.h:96
unsigned long long TimeValue_t

Member Data Documentation

const TimeValue_t edm::Timestamp::kLowMask = 0xFFFFFFFF
staticprivate

Definition at line 31 of file Timestamp.h.

unsigned int edm::Timestamp::timeHigh_
private

Definition at line 97 of file Timestamp.h.

Referenced by operator<(), operator<=(), operator==(), operator>(), operator>=(), unixTime(), and value().

unsigned int edm::Timestamp::timeLow_
private