#include <LuminosityBlockID.h>
Definition at line 32 of file LuminosityBlockID.h.
edm::LuminosityBlockID::LuminosityBlockID | ( | ) | [inline] |
Definition at line 34 of file LuminosityBlockID.h.
Referenced by firstValidLuminosityBlock(), next(), nextRun(), nextRunFirstLuminosityBlock(), previous(), and previousRunLastLuminosityBlock().
: run_(0), luminosityBlock_(0) {}
LuminosityBlockID::LuminosityBlockID | ( | boost::uint64_t | id | ) | [explicit] |
Definition at line 11 of file LuminosityBlockID.cc.
: run_(static_cast<RunNumber_t>(id >> shift)), luminosityBlock_(static_cast<LuminosityBlockNumber_t>(std::numeric_limits<unsigned int>::max() & id)) { }
edm::LuminosityBlockID::LuminosityBlockID | ( | RunNumber_t | iRun, |
LuminosityBlockNumber_t | iLuminosityBlock | ||
) | [inline] |
Definition at line 36 of file LuminosityBlockID.h.
: run_(iRun), luminosityBlock_(iLuminosityBlock) {}
bool edm::LuminosityBlockID::doOp | ( | LuminosityBlockID const & | iRHS | ) | const [inline, private] |
Definition at line 110 of file LuminosityBlockID.h.
References luminosityBlock_, and run_.
{ //Run takes presidence for comparisions if(run_ == iRHS.run_) { Op<LuminosityBlockNumber_t> op_e; return op_e(luminosityBlock_, iRHS.luminosityBlock_); } Op<RunNumber_t> op; return op(run_, iRHS.run_) ; }
static LuminosityBlockID edm::LuminosityBlockID::firstValidLuminosityBlock | ( | ) | [inline, static] |
Definition at line 103 of file LuminosityBlockID.h.
References LuminosityBlockID().
{ return LuminosityBlockID(1, 1); }
LuminosityBlockNumber_t edm::LuminosityBlockID::luminosityBlock | ( | ) | const [inline] |
Definition at line 43 of file LuminosityBlockID.h.
References luminosityBlock_.
Referenced by DTDigiTask::beginLuminosityBlock(), DTLocalTriggerTask::beginLuminosityBlock(), L1TRate::beginLuminosityBlock(), DTChamberEfficiencyTask::beginLuminosityBlock(), DTDCSByLumiTask::beginLuminosityBlock(), DataCertificationJetMET::beginLuminosityBlock(), AlcaBeamMonitor::beginLuminosityBlock(), L1TSync::beginLuminosityBlock(), DTDigiForNoiseTask::beginLuminosityBlock(), DTEfficiencyTask::beginLuminosityBlock(), DTResolutionAnalysisTask::beginLuminosityBlock(), BOOST_PYTHON_MODULE(), edm::decode(), edm::encode(), edm::LuminosityBlockRange::endLumi(), DataCertificationJetMET::endLuminosityBlock(), DTtTrigCalibrationTest::endLuminosityBlock(), BeamMonitorBx::endLuminosityBlock(), DTBlockedROChannelsTest::endLuminosityBlock(), MuonRecoTest::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), AlcaBeamMonitorClient::endLuminosityBlock(), EfficiencyPlotter::endLuminosityBlock(), QualityTester::endLuminosityBlock(), DTSegmentAnalysisTest::endLuminosityBlock(), L1TOccupancyClient::endLuminosityBlock(), L1Scalers::endLuminosityBlock(), TrigResRateMon::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), L1TTestsSummary::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), FourVectorHLTOffline::endLuminosityBlock(), FourVectorHLTOnline::endLuminosityBlock(), DTDCSByLumiSummary::endLuminosityBlock(), TKStatus::endLuminosityBlock(), L1TRate::endLuminosityBlock(), BPhysicsOniaDQM::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), MuonTrackResidualsTest::endLuminosityBlock(), cond::limitedIOVSyncValue(), edm::LuminosityBlockAuxiliary::luminosityBlock(), edm::operator<<(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preEndLumi(), DTDataIntegrityTask::preEndLumi(), edm::RootFile::readLuminosityBlockAuxiliary_(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startLumi(), cond::toIOVSyncValue(), and edm::PoolOutputModule::writeLuminosityBlock().
{ return luminosityBlock_; }
static LuminosityBlockNumber_t edm::LuminosityBlockID::maxLuminosityBlockNumber | ( | ) | [inline, static] |
Definition at line 99 of file LuminosityBlockID.h.
Referenced by edm::IOVSyncValue::endOfTime(), fwlite::IOVSyncValue::endOfTime(), next(), previous(), and previousRunLastLuminosityBlock().
{
return 0xFFFFFFFFU;
}
LuminosityBlockID edm::LuminosityBlockID::next | ( | void | ) | const [inline] |
Definition at line 48 of file LuminosityBlockID.h.
References luminosityBlock_, LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.
{ if(luminosityBlock_ != maxLuminosityBlockNumber()) { return LuminosityBlockID(run_, luminosityBlock_+1); } return LuminosityBlockID(run_+1, 1); }
LuminosityBlockID edm::LuminosityBlockID::nextRun | ( | ) | const [inline] |
Definition at line 54 of file LuminosityBlockID.h.
References LuminosityBlockID(), and run_.
{ return LuminosityBlockID(run_+1, 0); }
LuminosityBlockID edm::LuminosityBlockID::nextRunFirstLuminosityBlock | ( | ) | const [inline] |
Definition at line 57 of file LuminosityBlockID.h.
References LuminosityBlockID(), and run_.
{ return LuminosityBlockID(run_+1, 1); }
bool edm::LuminosityBlockID::operator!= | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 80 of file LuminosityBlockID.h.
{ return ! (*this == iRHS); }
bool edm::LuminosityBlockID::operator< | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 84 of file LuminosityBlockID.h.
{
return doOp<std::less>(iRHS);
}
bool edm::LuminosityBlockID::operator<= | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 87 of file LuminosityBlockID.h.
{
return doOp<std::less_equal>(iRHS);
}
bool edm::LuminosityBlockID::operator== | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 77 of file LuminosityBlockID.h.
References luminosityBlock_, and run_.
{ return iRHS.run_ == run_ && iRHS.luminosityBlock_ == luminosityBlock_; }
bool edm::LuminosityBlockID::operator> | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 90 of file LuminosityBlockID.h.
{
return doOp<std::greater>(iRHS);
}
bool edm::LuminosityBlockID::operator>= | ( | LuminosityBlockID const & | iRHS | ) | const [inline] |
Definition at line 93 of file LuminosityBlockID.h.
{
return doOp<std::greater_equal>(iRHS);
}
LuminosityBlockID edm::LuminosityBlockID::previous | ( | ) | const [inline] |
Definition at line 67 of file LuminosityBlockID.h.
References luminosityBlock_, LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.
{ if(luminosityBlock_ > 1) { return LuminosityBlockID(run_, luminosityBlock_-1); } if(run_ != 0) { return LuminosityBlockID(run_ -1, maxLuminosityBlockNumber()); } return LuminosityBlockID(0,0); }
LuminosityBlockID edm::LuminosityBlockID::previousRunLastLuminosityBlock | ( | ) | const [inline] |
Definition at line 60 of file LuminosityBlockID.h.
References LuminosityBlockID(), maxLuminosityBlockNumber(), and run_.
{ if(run_ > 1) { return LuminosityBlockID(run_-1, maxLuminosityBlockNumber()); } return LuminosityBlockID(0,0); }
RunNumber_t edm::LuminosityBlockID::run | ( | ) | const [inline] |
Definition at line 42 of file LuminosityBlockID.h.
References run_.
Referenced by DataCertificationJetMET::beginLuminosityBlock(), BOOST_PYTHON_MODULE(), edm::decode(), edm::encode(), DataCertificationJetMET::endLuminosityBlock(), edm::LuminosityBlockRange::endRun(), cond::limitedIOVSyncValue(), edm::operator<<(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preEndLumi(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::LuminosityBlockAuxiliary::run(), cond::EmptyIOVSource::setRunAndEventInfo(), edm::LuminosityBlockRange::startRun(), cond::toIOVSyncValue(), and edm::PoolOutputModule::writeLuminosityBlock().
{ return run_; }
boost::uint64_t LuminosityBlockID::value | ( | ) | const |
Definition at line 18 of file LuminosityBlockID.cc.
References luminosityBlock_, run_, and edm::shift.
Referenced by cond::fromIOVSyncValue(), and cond::service::PoolDBOutputService::preBeginLumi().
{ boost::uint64_t id = run_; id = id << shift; id += luminosityBlock_; return id; }
Definition at line 125 of file LuminosityBlockID.h.
Referenced by doOp(), luminosityBlock(), next(), operator==(), previous(), and value().
RunNumber_t edm::LuminosityBlockID::run_ [private] |
Definition at line 124 of file LuminosityBlockID.h.
Referenced by doOp(), next(), nextRun(), nextRunFirstLuminosityBlock(), operator==(), previous(), previousRunLastLuminosityBlock(), run(), and value().