CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
edm::ESWatcher< T > Class Template Reference

#include <ESWatcher.h>

Classes

struct  NullFunction
 

Public Member Functions

bool check (const edm::EventSetup &iSetup)
 
 ESWatcher ()
 
template<class TFunc >
 ESWatcher (TFunc iFunctor)
 
template<class TObj , class TMemFunc >
 ESWatcher (TObj const &iObj, TMemFunc iFunc)
 

Private Member Functions

 ESWatcher (const ESWatcher &)=delete
 
const ESWatcheroperator= (const ESWatcher &)=delete
 

Private Attributes

unsigned long long cacheId_
 
std::function< void(const T &)> callback_
 

Detailed Description

template<class T>
class edm::ESWatcher< T >

Definition at line 31 of file ESWatcher.h.

Constructor & Destructor Documentation

◆ ESWatcher() [1/4]

template<class T>
edm::ESWatcher< T >::ESWatcher ( )
inline

Definition at line 37 of file ESWatcher.h.

37 : callback_(NullFunction()), cacheId_(0) {}

◆ ESWatcher() [2/4]

template<class T>
template<class TFunc >
edm::ESWatcher< T >::ESWatcher ( TFunc  iFunctor)
inline

Definition at line 40 of file ESWatcher.h.

40 : callback_(iFunctor), cacheId_(0) {}

◆ ESWatcher() [3/4]

template<class T>
template<class TObj , class TMemFunc >
edm::ESWatcher< T >::ESWatcher ( TObj const &  iObj,
TMemFunc  iFunc 
)
inline

Definition at line 43 of file ESWatcher.h.

44  : callback_(std::bind(iFunc, iObj, std::placeholders::_1)), cacheId_(0) {}

◆ ESWatcher() [4/4]

template<class T>
edm::ESWatcher< T >::ESWatcher ( const ESWatcher< T > &  )
privatedelete

Member Function Documentation

◆ check()

template<class T>
bool edm::ESWatcher< T >::check ( const edm::EventSetup iSetup)
inline

Definition at line 52 of file ESWatcher.h.

52  {
53  const T& record = iSetup.template get<T>();
54  bool result = cacheId_ != record.cacheIdentifier();
55  if (result) {
57  }
58  cacheId_ = record.cacheIdentifier();
59  return result;
60  }

Referenced by Phase2TrackerMonitorDigi::analyze(), Phase2TrackerValidateDigi::analyze(), CTPPSAlignmentInfo::analyze(), CTPPSProtonReconstructionEfficiencyEstimatorData::analyze(), CTPPSGeometryInfo::analyze(), PPSGeometryBuilder::analyze(), BTagPerformaceRootProducerFromSQLITE::analyze(), BeamSpotRcdReader::analyze(), BeamSpotOnlineHLTRcdReader::analyze(), BeamSpotOnlineLegacyRcdReader::analyze(), DisplayGeom::analyze(), DummyEvelyser::analyze(), GlobalTrackerMuonAlignment::analyzeTrackTrack(), GlobalTrackerMuonAlignment::analyzeTrackTrajectory(), SiPixelStatusProducer::beginLuminosityBlock(), cms::Phase2TrackerDigitizer::beginLuminosityBlock(), RPCCPPFUnpacker::beginRun(), RPCTwinMuxDigiToRaw::beginRun(), RPCUnpackingModule::beginRun(), RPCTwinMuxRawToDigi::beginRun(), AlCaRecoTriggerBitsRcdRead::beginRun(), PFCandidateRecalibrator::beginRun(), FWFFLooper::beginRun(), APVCyclePhaseProducerFromL1TS::beginRun(), SiStripLorentzAngleCalibration::beginRun(), SiPixelLorentzAngleCalibration::beginRun(), Phase2TrackerValidateDigi::bookHistograms(), SiStripBackplaneCalibration::checkBackPlaneCorrectionInput(), HcalDigitizer::checkGeometry(), RPCMonitorLinkSynchro::dqmBeginRun(), FWFFLooper::duringLoop(), HGCalTriggerNtupleGen::fill(), HLTLevel1Pattern::filter(), TriggerResultsFilterFromDB::filter(), SiPixelDigiToRaw::globalBeginLuminosityBlock(), PFHCALDenseIdNavigator< HcalDetId, HcalTopology, false >::init(), CosmicLayerTriplets::init(), RunManager::initG4(), PixelUnpackingRegions::initialize(), CSCConditions::initializeEvent(), TriggerHelper::initRun(), JetTagProducer::produce(), CaloTowersCreator::produce(), SiPixelRawToDigi::produce(), CTPPSPixelLocalTrackProducer::produce(), TotemRPLocalTrackFitter::produce(), CTPPSProtonProducer::produce(), CTPPSDiamondRecHitProducer::produce(), TotemRPUVPatternFinder::produce(), TotemTimingRecHitProducer::produce(), EcalRawToDigi::produce(), HiEvtPlaneFlatProducer::produce(), CTPPSTotemDigiToRaw::produce(), CTPPSPixelDigiToRaw::produce(), FastSimProducer::produce(), EvtPlaneProducer::produce(), OscarMTMasterThread::readES(), AlignmentProducerBase::readInSurveyRcds(), MillePedeDQMModule::setupChanged(), AlignmentProducerBase::setupChanged(), BetafuncEvtVtxGenerator::update(), edm::BMixingModule::update(), AntiElectronDeadECAL::updateBadTowers(), SeedingLayerSetsBuilder::updateEventSetup(), and PixelInactiveAreaFinder::updatePixelDets().

◆ operator=()

template<class T>
const ESWatcher& edm::ESWatcher< T >::operator= ( const ESWatcher< T > &  )
privatedelete

Member Data Documentation

◆ cacheId_

template<class T>
unsigned long long edm::ESWatcher< T >::cacheId_
private

Definition at line 69 of file ESWatcher.h.

Referenced by edm::ESWatcher< TrackerTopologyRcd >::check().

◆ callback_

template<class T>
std::function<void(const T&)> edm::ESWatcher< T >::callback_
private

Definition at line 68 of file ESWatcher.h.

Referenced by edm::ESWatcher< TrackerTopologyRcd >::check().

GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
T
long double T
Definition: Basic3DVectorLD.h:48
edm::ESWatcher::callback_
std::function< void(const T &)> callback_
Definition: ESWatcher.h:68
mps_fire.result
result
Definition: mps_fire.py:303
edm::ESWatcher::cacheId_
unsigned long long cacheId_
Definition: ESWatcher.h:69