CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

edm::LuminosityBlockID Class Reference

#include <LuminosityBlockID.h>

List of all members.

Public Member Functions

LuminosityBlockNumber_t luminosityBlock () const
 LuminosityBlockID ()
 LuminosityBlockID (boost::uint64_t id)
 LuminosityBlockID (RunNumber_t iRun, LuminosityBlockNumber_t iLuminosityBlock)
LuminosityBlockID next () const
LuminosityBlockID nextRun () const
LuminosityBlockID nextRunFirstLuminosityBlock () const
bool operator!= (LuminosityBlockID const &iRHS) const
bool operator< (LuminosityBlockID const &iRHS) const
bool operator<= (LuminosityBlockID const &iRHS) const
bool operator== (LuminosityBlockID const &iRHS) const
bool operator> (LuminosityBlockID const &iRHS) const
bool operator>= (LuminosityBlockID const &iRHS) const
LuminosityBlockID previous () const
LuminosityBlockID previousRunLastLuminosityBlock () const
RunNumber_t run () const
boost::uint64_t value () const

Static Public Member Functions

static LuminosityBlockID firstValidLuminosityBlock ()
static LuminosityBlockNumber_t maxLuminosityBlockNumber ()

Private Member Functions

template<template< typename > class Op>
bool doOp (LuminosityBlockID const &iRHS) const

Private Attributes

LuminosityBlockNumber_t luminosityBlock_
RunNumber_t run_

Detailed Description

Definition at line 32 of file LuminosityBlockID.h.


Constructor & Destructor Documentation

edm::LuminosityBlockID::LuminosityBlockID ( ) [inline]
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) {}

Member Function Documentation

template<template< typename > class Op>
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]
LuminosityBlockID edm::LuminosityBlockID::next ( void  ) const [inline]
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]
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]
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;
  }

Member Data Documentation

Definition at line 125 of file LuminosityBlockID.h.

Referenced by doOp(), luminosityBlock(), next(), operator==(), previous(), and value().