#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(), DTDigiForNoiseTask::beginLuminosityBlock(), L1TSync::beginLuminosityBlock(), DTEfficiencyTask::beginLuminosityBlock(), DTResolutionAnalysisTask::beginLuminosityBlock(), BOOST_PYTHON_MODULE(), edm::decode(), edm::encode(), edm::LuminosityBlockRange::endLumi(), BeamMonitorBx::endLuminosityBlock(), DTtTrigCalibrationTest::endLuminosityBlock(), DataCertificationJetMET::endLuminosityBlock(), DTBlockedROChannelsTest::endLuminosityBlock(), AlcaBeamMonitorClient::endLuminosityBlock(), DTChamberEfficiencyTest::endLuminosityBlock(), MuonRecoTest::endLuminosityBlock(), EfficiencyPlotter::endLuminosityBlock(), DTSegmentAnalysisTest::endLuminosityBlock(), QualityTester::endLuminosityBlock(), L1TOccupancyClient::endLuminosityBlock(), DTEfficiencyTest::endLuminosityBlock(), TrigResRateMon::endLuminosityBlock(), L1Scalers::endLuminosityBlock(), HLTEventInfoClient::endLuminosityBlock(), L1TTestsSummary::endLuminosityBlock(), BeamMonitor::endLuminosityBlock(), HLTScalers::endLuminosityBlock(), DTDeadChannelTest::endLuminosityBlock(), DTNoiseTest::endLuminosityBlock(), DTResolutionTest::endLuminosityBlock(), TKStatus::endLuminosityBlock(), DTDCSByLumiSummary::endLuminosityBlock(), FourVectorHLTOnline::endLuminosityBlock(), FourVectorHLTOffline::endLuminosityBlock(), L1TRate::endLuminosityBlock(), DTDataIntegrityTest::endLuminosityBlock(), BPhysicsOniaDQM::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 errorMatrix2Lands_multiChannel::id, 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().