CMS 3D CMS Logo

edm::IOVSyncValue Class Reference

#include <FWCore/Framework/interface/IOVSyncValue.h>

List of all members.

Public Member Functions

const EventIDeventID () const
 IOVSyncValue (const EventID &iID, LuminosityBlockNumber_t iLumi, const Timestamp &iID)
 IOVSyncValue (const Timestamp &iTime)
 IOVSyncValue (const EventID &iID, LuminosityBlockNumber_t iLumi=0)
 IOVSyncValue ()
LuminosityBlockNumber_t luminosityBlockNumber () const
bool operator!= (const IOVSyncValue &iRHS) const
bool operator< (const IOVSyncValue &iRHS) const
bool operator<= (const IOVSyncValue &iRHS) const
bool operator== (const IOVSyncValue &iRHS) const
bool operator> (const IOVSyncValue &iRHS) const
bool operator>= (const IOVSyncValue &iRHS) const
const Timestamptime () const

Static Public Member Functions

static const IOVSyncValuebeginOfTime ()
static const IOVSyncValueendOfTime ()
static const IOVSyncValueinvalidIOVSyncValue ()

Private Member Functions

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

Private Attributes

EventID eventID_
bool haveID_
bool haveTime_
LuminosityBlockNumber_t lumiID_
Timestamp time_


Detailed Description

Definition at line 33 of file IOVSyncValue.h.


Constructor & Destructor Documentation

IOVSyncValue::IOVSyncValue (  ) 

Definition at line 33 of file IOVSyncValue.cc.

00033                           : eventID_(), lumiID_(0), time_(),
00034 haveID_(true), haveTime_(true)
00035 {
00036 }

IOVSyncValue::IOVSyncValue ( const EventID iID,
LuminosityBlockNumber_t  iLumi = 0 
) [explicit]

Definition at line 38 of file IOVSyncValue.cc.

00038                                                                             : eventID_(iID), lumiID_(iLumi), time_(),
00039 haveID_(true), haveTime_(false)
00040 {
00041 }

IOVSyncValue::IOVSyncValue ( const Timestamp iTime  )  [explicit]

Definition at line 43 of file IOVSyncValue.cc.

00043                                                  : eventID_(), lumiID_(0),time_(iTime),
00044 haveID_(false), haveTime_(true)
00045 {
00046 }

IOVSyncValue::IOVSyncValue ( const EventID iID,
LuminosityBlockNumber_t  iLumi,
const Timestamp iID 
)

Definition at line 48 of file IOVSyncValue.cc.

00048                                                                                                     :
00049 eventID_(iID), lumiID_(iLumi), time_(iTime),
00050 haveID_(true), haveTime_(true)
00051 {
00052 }


Member Function Documentation

const IOVSyncValue & IOVSyncValue::beginOfTime (  )  [static]

Definition at line 99 of file IOVSyncValue.cc.

Referenced by edm::EventProcessor::beginJob(), SiPixelFakeGainESSource::setIntervalFor(), CSCNoiseMatrixDBConditions::setIntervalFor(), SiStripNoiseESSource::setIntervalFor(), SiPixelFakeLorentzAngleESSource::setIntervalFor(), CSCFakeDBNoiseMatrix::setIntervalFor(), XMLIdealGeometryESSource::setIntervalFor(), CSCCrateMapValues::setIntervalFor(), ElectronLikelihoodESSource::setIntervalFor(), SiStripQualityConfigurableFakeESSource::setIntervalFor(), RingESSource::setIntervalFor(), CSCChamberIndexValues::setIntervalFor(), SiStripFedCablingBuilderFromDb::setIntervalFor(), SiStripBadFiberFakeESSource::setIntervalFor(), DTFakeT0ESProducer::setIntervalFor(), CSCCrosstalkDBConditions::setIntervalFor(), CastorHardcodeCalibrations::setIntervalFor(), HepPDTESSource::setIntervalFor(), SiStripFedCablingESSource::setIntervalFor(), SiPixelFakeGainOfflineESSource::setIntervalFor(), CSCFakeCrosstalkConditions::setIntervalFor(), SiPixelFakeGainForHLTESSource::setIntervalFor(), CSCL1TPParametersConditions::setIntervalFor(), CaloTPGTranscoderULUTs::setIntervalFor(), TrackerGeometricDetESModule::setIntervalFor(), CSCDDUMapValues::setIntervalFor(), SiStripLAFakeESSource::setIntervalFor(), CSCGainsConditions::setIntervalFor(), CSCFakeGainsConditions::setIntervalFor(), CSCBadStripsConditions::setIntervalFor(), CSCBadChambersConditions::setIntervalFor(), RoadMapESSource::setIntervalFor(), CaloMiscalibTools::setIntervalFor(), SiStripHashedDetIdFakeESSource::setIntervalFor(), SiStripBadStripFakeESSource::setIntervalFor(), HcalTextCalibrations::setIntervalFor(), SiStripBadModuleFakeESSource::setIntervalFor(), RPCPerformanceESSource::setIntervalFor(), CSCCrosstalkConditions::setIntervalFor(), CSCBadWiresConditions::setIntervalFor(), BeamSpotFakeConditions::setIntervalFor(), SiStripThresholdFakeESSource::setIntervalFor(), CSCGainsDBConditions::setIntervalFor(), CSCFakePedestalsConditions::setIntervalFor(), CSCFakeDBGains::setIntervalFor(), CastorTextCalibrations::setIntervalFor(), SiStripQualityFakeESSource::setIntervalFor(), SiStripFedCablingFakeESSource::setIntervalFor(), DTFakeVDriftESProducer::setIntervalFor(), CSCPedestalsDBConditions::setIntervalFor(), CSCFakeNoiseMatrixConditions::setIntervalFor(), JetCorrectionServiceChain::setIntervalFor(), SiStripGainFakeESSource::setIntervalFor(), SiStripBadChannelFakeESSource::setIntervalFor(), DTFakeTTrigESProducer::setIntervalFor(), EcalTrivialConditionRetriever::setIntervalFor(), CSCChamberMapValues::setIntervalFor(), PhysicsTools::MVAComputerESSourceImpl< RecordType >::setIntervalFor(), edm::ESProducerLooper::setIntervalFor(), SiStripPedestalsESSource::setIntervalFor(), CSCNoiseMatrixConditions::setIntervalFor(), HcalHardcodeCalibrations::setIntervalFor(), CSCFakeDBPedestals::setIntervalFor(), CSCFakeDBCrosstalk::setIntervalFor(), and FakeAlignmentSource::setIntervalFor().

00099                           {
00100    static IOVSyncValue s_beginOfTime(EventID(1,0), 0, Timestamp::beginOfTime());
00101    return s_beginOfTime;
00102 }

template<template< typename > class Op>
bool edm::IOVSyncValue::doOp ( const IOVSyncValue iRHS  )  const [inline, private]

Definition at line 80 of file IOVSyncValue.h.

References eventID_, haveID_, haveTime_, lumiID_, edm::EventID::run(), and time_.

00080                                                    {
00081             bool returnValue = false;
00082             if(haveID_ && iRHS.haveID_) {
00083                if(lumiID_==0 || iRHS.lumiID_==0 || lumiID_==iRHS.lumiID_) {
00084                   Op<EventID> op;
00085                   returnValue = op(eventID_, iRHS.eventID_);
00086                } else {
00087                   if(iRHS.eventID_.run() == eventID_.run()) {
00088                      Op<LuminosityBlockNumber_t> op;
00089                      returnValue = op(lumiID_, iRHS.lumiID_);
00090                   } else {
00091                      Op<RunNumber_t> op;
00092                      returnValue = op(eventID_.run(), iRHS.eventID_.run());
00093                   }
00094                }
00095 
00096             } else if (haveTime_ && iRHS.haveTime_) {
00097                Op<Timestamp> op;
00098                returnValue = op(time_, iRHS.time_);
00099             } else {
00100                //error
00101             }
00102             return returnValue;
00103          }

const IOVSyncValue & IOVSyncValue::endOfTime (  )  [static]

Definition at line 92 of file IOVSyncValue.cc.

Referenced by EcalTestDevDB::analyze(), SiPixelFakeGainESSource::setIntervalFor(), CSCNoiseMatrixDBConditions::setIntervalFor(), SiStripNoiseESSource::setIntervalFor(), SiPixelFakeLorentzAngleESSource::setIntervalFor(), CSCFakeDBNoiseMatrix::setIntervalFor(), XMLIdealGeometryESSource::setIntervalFor(), CSCCrateMapValues::setIntervalFor(), ElectronLikelihoodESSource::setIntervalFor(), SiStripQualityConfigurableFakeESSource::setIntervalFor(), RingESSource::setIntervalFor(), CSCChamberIndexValues::setIntervalFor(), SiStripFedCablingBuilderFromDb::setIntervalFor(), SiStripBadFiberFakeESSource::setIntervalFor(), DTFakeT0ESProducer::setIntervalFor(), CSCCrosstalkDBConditions::setIntervalFor(), CastorHardcodeCalibrations::setIntervalFor(), HepPDTESSource::setIntervalFor(), SiStripFedCablingESSource::setIntervalFor(), SiPixelFakeGainOfflineESSource::setIntervalFor(), CSCFakeCrosstalkConditions::setIntervalFor(), SiPixelFakeGainForHLTESSource::setIntervalFor(), CSCL1TPParametersConditions::setIntervalFor(), CaloTPGTranscoderULUTs::setIntervalFor(), TrackerGeometricDetESModule::setIntervalFor(), CSCDDUMapValues::setIntervalFor(), edm::EmptyESSource::setIntervalFor(), SiStripLAFakeESSource::setIntervalFor(), CSCGainsConditions::setIntervalFor(), CSCFakeGainsConditions::setIntervalFor(), CSCBadStripsConditions::setIntervalFor(), CSCBadChambersConditions::setIntervalFor(), RoadMapESSource::setIntervalFor(), CaloMiscalibTools::setIntervalFor(), SiStripHashedDetIdFakeESSource::setIntervalFor(), SiStripBadStripFakeESSource::setIntervalFor(), HcalTextCalibrations::setIntervalFor(), SiStripBadModuleFakeESSource::setIntervalFor(), RPCPerformanceESSource::setIntervalFor(), CSCCrosstalkConditions::setIntervalFor(), CSCBadWiresConditions::setIntervalFor(), BeamSpotFakeConditions::setIntervalFor(), SiStripThresholdFakeESSource::setIntervalFor(), CSCGainsDBConditions::setIntervalFor(), CSCFakePedestalsConditions::setIntervalFor(), CSCFakeDBGains::setIntervalFor(), CastorTextCalibrations::setIntervalFor(), SiStripQualityFakeESSource::setIntervalFor(), SiStripFedCablingFakeESSource::setIntervalFor(), DTFakeVDriftESProducer::setIntervalFor(), CSCPedestalsDBConditions::setIntervalFor(), CSCFakeNoiseMatrixConditions::setIntervalFor(), JetCorrectionServiceChain::setIntervalFor(), SiStripGainFakeESSource::setIntervalFor(), SiStripBadChannelFakeESSource::setIntervalFor(), DTFakeTTrigESProducer::setIntervalFor(), EcalTrivialConditionRetriever::setIntervalFor(), CSCChamberMapValues::setIntervalFor(), PhysicsTools::MVAComputerESSourceImpl< RecordType >::setIntervalFor(), edm::ESProducerLooper::setIntervalFor(), SiStripPedestalsESSource::setIntervalFor(), CSCNoiseMatrixConditions::setIntervalFor(), HcalHardcodeCalibrations::setIntervalFor(), CSCFakeDBPedestals::setIntervalFor(), CSCFakeDBCrosstalk::setIntervalFor(), and FakeAlignmentSource::setIntervalFor().

00092                         {
00093    static IOVSyncValue s_endOfTime(EventID(0xFFFFFFFFUL, EventID::maxEventNumber()),
00094                                    LuminosityBlockID::maxLuminosityBlockNumber(),
00095                                    Timestamp::endOfTime());
00096    return s_endOfTime;
00097 }

const EventID& edm::IOVSyncValue::eventID (  )  const [inline]

Definition at line 44 of file IOVSyncValue.h.

References eventID_.

Referenced by PoolDBESSource::setIntervalFor(), CastorHardcodeCalibrations::setIntervalFor(), and HcalHardcodeCalibrations::setIntervalFor().

00044 { return eventID_;}

const IOVSyncValue & IOVSyncValue::invalidIOVSyncValue (  )  [static]

Definition at line 87 of file IOVSyncValue.cc.

Referenced by edmtest::HcalDumpConditions::dumpIt().

00087                                   {
00088    static IOVSyncValue s_invalid;
00089    return s_invalid;
00090 }

LuminosityBlockNumber_t edm::IOVSyncValue::luminosityBlockNumber (  )  const [inline]

Definition at line 45 of file IOVSyncValue.h.

References lumiID_.

00045 { return lumiID_;}

bool edm::IOVSyncValue::operator!= ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 51 of file IOVSyncValue.h.

00051                                                       {
00052          return doOp<std::not_equal_to>(iRHS);
00053       }

bool edm::IOVSyncValue::operator< ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 55 of file IOVSyncValue.h.

00055                                                      {
00056          return doOp<std::less>(iRHS);
00057       }

bool edm::IOVSyncValue::operator<= ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 58 of file IOVSyncValue.h.

00058                                                       {
00059          return doOp<std::less_equal>(iRHS);
00060       }

bool edm::IOVSyncValue::operator== ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 48 of file IOVSyncValue.h.

00048                                                       {
00049          return doOp<std::equal_to>(iRHS);
00050       }

bool edm::IOVSyncValue::operator> ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 61 of file IOVSyncValue.h.

00061                                                      {
00062          return doOp<std::greater>(iRHS);
00063       }

bool edm::IOVSyncValue::operator>= ( const IOVSyncValue iRHS  )  const [inline]

Definition at line 64 of file IOVSyncValue.h.

00064                                                       {
00065          return doOp<std::greater_equal>(iRHS);
00066       }

const Timestamp& edm::IOVSyncValue::time (  )  const [inline]

Definition at line 46 of file IOVSyncValue.h.

References time_.

Referenced by PoolDBESSource::setIntervalFor(), CastorHardcodeCalibrations::setIntervalFor(), EcalTrivialConditionRetriever::setIntervalFor(), and HcalHardcodeCalibrations::setIntervalFor().

00046 {return time_; }


Member Data Documentation

EventID edm::IOVSyncValue::eventID_ [private]

Definition at line 106 of file IOVSyncValue.h.

Referenced by doOp(), and eventID().

bool edm::IOVSyncValue::haveID_ [private]

Definition at line 109 of file IOVSyncValue.h.

Referenced by doOp().

bool edm::IOVSyncValue::haveTime_ [private]

Definition at line 110 of file IOVSyncValue.h.

Referenced by doOp().

LuminosityBlockNumber_t edm::IOVSyncValue::lumiID_ [private]

Definition at line 107 of file IOVSyncValue.h.

Referenced by doOp(), and luminosityBlockNumber().

Timestamp edm::IOVSyncValue::time_ [private]

Definition at line 108 of file IOVSyncValue.h.

Referenced by doOp(), and time().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:41:45 2009 for CMSSW by  doxygen 1.5.4