CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 35 of file Timestamp.h.

35  :
36  timeLow_(static_cast<unsigned int>(kLowMask & iValue)),
37  timeHigh_(static_cast<unsigned int>(iValue >> 32)){}
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
static const TimeValue_t kLowMask
Definition: Timestamp.h:32
edm::Timestamp::Timestamp ( )
inline

Definition at line 40 of file Timestamp.h.

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

static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115

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 52 of file Timestamp.h.

References timeLow_.

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

52  {
53  return timeLow_;
54  }
unsigned int timeLow_
Definition: Timestamp.h:115
bool edm::Timestamp::operator!= ( Timestamp const &  iRHS) const
inline

Definition at line 71 of file Timestamp.h.

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

Definition at line 75 of file Timestamp.h.

References timeHigh_, and timeLow_.

75  {
76  if(timeHigh_ == iRHS.timeHigh_) {
77  return timeLow_ < iRHS.timeLow_;
78  }
79  return timeHigh_ < iRHS.timeHigh_;
80  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
bool edm::Timestamp::operator<= ( Timestamp const &  iRHS) const
inline

Definition at line 81 of file Timestamp.h.

References timeHigh_, and timeLow_.

81  {
82  if(timeHigh_ == iRHS.timeHigh_) {
83  return timeLow_ <= iRHS.timeLow_;
84  }
85  return timeHigh_ <= iRHS.timeHigh_;
86  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
bool edm::Timestamp::operator== ( Timestamp const &  iRHS) const
inline

Definition at line 67 of file Timestamp.h.

References timeHigh_, and timeLow_.

67  {
68  return timeHigh_ == iRHS.timeHigh_ &&
69  timeLow_ == iRHS.timeLow_;
70  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
bool edm::Timestamp::operator> ( Timestamp const &  iRHS) const
inline

Definition at line 87 of file Timestamp.h.

References timeHigh_, and timeLow_.

87  {
88  if(timeHigh_ == iRHS.timeHigh_) {
89  return timeLow_ > iRHS.timeLow_;
90  }
91  return timeHigh_ > iRHS.timeHigh_;
92  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
bool edm::Timestamp::operator>= ( Timestamp const &  iRHS) const
inline

Definition at line 93 of file Timestamp.h.

References timeHigh_, and timeLow_.

93  {
94  if(timeHigh_ == iRHS.timeHigh_) {
95  return timeLow_ >= iRHS.timeLow_;
96  }
97  return timeHigh_ >= iRHS.timeHigh_;
98  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
unsigned int edm::Timestamp::unixTime ( ) const
inline
TimeValue_t edm::Timestamp::value ( ) const
inline

Definition at line 56 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(), SiStripHitEffFromCalibTree::algoAnalyze(), EcalStatusAnalyzer::analyze(), evf::EvFRecordUnpacker::analyze(), SiStripQualityStatistics::analyze(), DTNoiseCalibration::analyze(), EcalGetLaserData::analyze(), ZDCMonitorModule::analyze(), EcalCosmicsHists::analyze(), DTDigiTask::analyze(), TrackerDpgAnalysis::analyze(), EcnaAnalyzer::analyze(), average.Average::average(), AlcaBeamSpotProducer::beginLuminosityBlock(), BeamSpotAnalyzer::beginLuminosityBlock(), BeamMonitorBx::beginLuminosityBlock(), BeamMonitor::beginLuminosityBlock(), Vx3DHLTAnalyzer::beginLuminosityBlock(), TimeValidityInterval::BeginOfTime(), DTNoiseCalibration::beginRun(), BeamMonitorBx::beginRun(), BeamMonitor::beginRun(), Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), BeamSpotAnalyzer::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), PhiSymmetryCalibration::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), Vx3DHLTAnalyzer::endLuminosityBlock(), AlcaBeamSpotProducer::endLuminosityBlockProduce(), TimeValidityInterval::EndOfTime(), PhiSymmetryCalibration::endRun(), HLTPrescaleRecorder::endRun(), HLXMonitor::FillEventInfo(), HSCPTreeBuilder::filter(), cond::time::fromIOVSyncValue(), EcalLaserDbService::getLaserCorrection(), fireworks::getLocalTime(), popcon::RPCObPVSSmapData::getNewObjects(), popcon::RpcDataI::getNewObjects(), popcon::RpcDataS::getNewObjects(), popcon::RpcDataT::getNewObjects(), popcon::RpcDataUXC::getNewObjects(), popcon::RpcDataV::getNewObjects(), popcon::RpcDataFebmap::getNewObjects(), popcon::RpcDataGasMix::getNewObjects(), popcon::RpcObGasData::getNewObjects(), popcon::EcalLaserHandler::getNewObjects(), popcon::EcalLaser_weekly_Handler::getNewObjects(), fireworks::getTimeGMT(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::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(), Vispa.Views.PropertyView.FileProperty::labelDoubleClicked(), boost::serialization::load(), edm::eventsetup::no_record_exception_message_builder(), edm::service::Tracer::postEvent(), edm::service::Tracer::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginRun(), edm::service::Tracer::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndRun(), 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::preStreamBeginLumi(), edm::service::Tracer::preStreamBeginRun(), edm::service::Tracer::preStreamEndLumi(), edm::service::Tracer::preStreamEndRun(), edm::PrintEventSetupContent::print(), L1GlobalTrigger::produce(), publishObjects(), BeamFitter::readEvent(), boost::serialization::save(), L1Analysis::L1AnalysisEvent::Set(), CastorHardcodeCalibrations::setIntervalFor(), HiTrivialConditionRetriever::setIntervalFor(), CondDBESSource::setIntervalFor(), TotemRPIncludeAlignments::setIntervalFor(), edm::eventsetup::DependentRecordIntervalFinder::setIntervalFor(), HcalHardcodeCalibrations::setIntervalFor(), ESTrivialConditionRetriever::setIntervalFor(), FWLiteESSource::setIntervalFor(), EcalTrivialConditionRetriever::setIntervalFor(), stampToReal(), RPCRunIOV::toDAQ(), edm::service::Tracer::Tracer(), edm::AsciiOutputModule::write(), LaserSorter::writeEventHeader(), DQMRootOutputModule::writeLuminosityBlock(), and DQMRootOutputModule::writeRun().

56  {
57  TimeValue_t returnValue = timeHigh_;
58  returnValue = returnValue << 32;
59  returnValue += timeLow_;
60  return returnValue;
61  }
unsigned int timeHigh_
Definition: Timestamp.h:116
unsigned int timeLow_
Definition: Timestamp.h:115
unsigned long long TimeValue_t

Member Data Documentation

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

Definition at line 32 of file Timestamp.h.

unsigned int edm::Timestamp::timeHigh_
private

Definition at line 116 of file Timestamp.h.

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

unsigned int edm::Timestamp::timeLow_
private