CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends
edm::EventSetup Class Reference

#include <EventSetup.h>

Public Member Functions

void fillAvailableRecordKeys (std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
 clears the oToFill vector and then fills it with the keys for all available records More...
 
const
eventsetup::EventSetupRecord
find (const eventsetup::EventSetupRecordKey &) const
 
template<typename T >
const Tget () const
 
template<typename T >
void getAvoidCompilerBug (const T *&iValue) const
 
template<typename T >
void getData (T &iHolder) const
 
template<typename T >
void getData (const std::string &iLabel, T &iHolder) const
 
template<typename T >
void getData (const edm::ESInputTag &iTag, T &iHolder) const
 
const IOVSyncValueiovSyncValue () const
 
bool recordIsProvidedByAModule (eventsetup::EventSetupRecordKey const &) const
 
template<typename T >
const TtryToGet () const
 
virtual ~EventSetup ()
 

Protected Member Functions

void add (const eventsetup::EventSetupRecord &iRecord)
 
void clear ()
 
void setIOVSyncValue (const IOVSyncValue &)
 
void setKnownRecordsSupplier (eventsetup::EventSetupKnownRecordsSupplier const *iSupplier)
 

Private Member Functions

 EventSetup ()
 
 EventSetup (EventSetup const &)
 
void insert (const eventsetup::EventSetupRecordKey &, const eventsetup::EventSetupRecord *)
 
EventSetup const & operator= (EventSetup const &)
 

Private Attributes

eventsetup::EventSetupKnownRecordsSupplier
const * 
knownRecords_
 
std::map
< eventsetup::EventSetupRecordKey,
eventsetup::EventSetupRecord
const * > 
recordMap_
 
IOVSyncValue syncValue_
 

Friends

class eventsetup::EventSetupProvider
 Only EventSetupProvider allowed to create a EventSetup. More...
 

Detailed Description

Definition at line 45 of file EventSetup.h.

Constructor & Destructor Documentation

EventSetup::~EventSetup ( )
virtual

Definition at line 43 of file EventSetup.cc.

44 {
45 }
EventSetup::EventSetup ( )
private

Definition at line 34 of file EventSetup.cc.

35 {
36 }
IOVSyncValue syncValue_
Definition: EventSetup.h:141
std::map< eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const * > recordMap_
Definition: EventSetup.h:144
static const IOVSyncValue & invalidIOVSyncValue()
Definition: IOVSyncValue.cc:92
edm::EventSetup::EventSetup ( EventSetup const &  )
private

Member Function Documentation

void EventSetup::add ( const eventsetup::EventSetupRecord iRecord)
protected

Definition at line 82 of file EventSetup.cc.

References insert(), and edm::eventsetup::EventSetupRecord::key().

Referenced by counter.Counter::register().

83 {
84  insert(iRecord.key(), &iRecord);
85 }
void insert(const eventsetup::EventSetupRecordKey &, const eventsetup::EventSetupRecord *)
Definition: EventSetup.cc:69
void EventSetup::clear ( void  )
protected

Definition at line 76 of file EventSetup.cc.

References recordMap_.

Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), and Vispa.Views.WidgetView.WidgetView::setDataObjects().

77 {
78  recordMap_.clear();
79 }
std::map< eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const * > recordMap_
Definition: EventSetup.h:144
void EventSetup::fillAvailableRecordKeys ( std::vector< eventsetup::EventSetupRecordKey > &  oToFill) const

clears the oToFill vector and then fills it with the keys for all available records

Definition at line 102 of file EventSetup.cc.

References recordMap_.

Referenced by DTDCSByLumiTask::dqmBeginRun().

103 {
104  oToFill.clear();
105  oToFill.reserve(recordMap_.size());
106 
107  typedef std::map<eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const *> KeyToRecordMap;
108  for(KeyToRecordMap::const_iterator it = recordMap_.begin(), itEnd=recordMap_.end();
109  it != itEnd;
110  ++it) {
111  oToFill.push_back(it->first);
112  }
113 }
std::map< eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const * > recordMap_
Definition: EventSetup.h:144
const eventsetup::EventSetupRecord * EventSetup::find ( const eventsetup::EventSetupRecordKey iKey) const

Definition at line 91 of file EventSetup.cc.

References recordMap_.

Referenced by L1RCTChannelMaskTester::analyze(), DQMDaqInfo::beginLuminosityBlock(), SiStripFedCablingReader::beginRun(), EcalDQMonitorClient::beginRun(), hcaldqm::DQHarvester::beginRun(), hcaldqm::DQClient::beginRun(), TrackingOfflineDQM::beginRun(), hcaldqm::DQTask::bookHistograms(), RPCDCSSummary::checkDCSbit(), RPCDataCertification::checkFED(), RPCDaqInfo::dqmEndLuminosityBlock(), SiPixelDcsInfo::dqmEndLuminosityBlock(), and SiPixelDaqInfo::dqmEndLuminosityBlock().

92 {
93  std::map<eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const *>::const_iterator itFind
94  = recordMap_.find(iKey);
95  if(itFind == recordMap_.end()) {
96  return 0;
97  }
98  return itFind->second;
99 }
std::map< eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const * > recordMap_
Definition: EventSetup.h:144
template<typename T >
const T& edm::EventSetup::get ( ) const
inline

returns the Record of type T. If no such record available a eventsetup::NoRecordException<T> is thrown

Definition at line 56 of file EventSetup.h.

References assert(), edm::eventsetup::eventSetupGetImplementation(), and relativeConstraints::value.

Referenced by Options.Options::__getitem__(), SiStripGainRandomCalculator::algoAnalyze(), HcalLutGenerator::analyze(), GEMSimTrackMatch::analyze(), L1TriggerKeyExtReader::analyze(), L1TriggerKeyListExtReader::analyze(), DTUserKeyedConfigPopConAnalyzer::analyze(), ExTestEcalChannelStatusAnalyzer::analyze(), edmtest::DQMSummaryEventSetupAnalyzer::analyze(), L1TMuonBarrelParamsWriter::analyze(), L1TMuonGlobalParamsWriter::analyze(), DTKeyedConfigPopConAnalyzer::analyze(), L1TGlobalPrescalesVetosWriter::analyze(), PVSSIDReader::analyze(), RPCStripNoisesRcdRead::analyze(), L1TCaloParamsWriter_::analyze(), L1MenuWriter::analyze(), L1TMuonEndcapWriter::analyze(), L1TOverlapWriter::analyze(), QGLikelihoodDBReader::analyze(), QGLikelihoodSystematicsDBReader::analyze(), GBRForestGetterFromDB::analyze(), DumpFWRecoGeometry::analyze(), DummyCondObjPrinter< TObject, TRecord >::analyze(), DumpFWTGeoRecoGeometry::analyze(), L1MenuReader::analyze(), L1CondDBPayloadWriterExt::analyze(), SiStripBadStripReader::analyze(), L1MuScalesTester::analyze(), SiStripSummaryReader::analyze(), CastorChannelQualityPopConAnalyzer::analyze(), CastorElectronicsMapPopConAnalyzer::analyze(), CastorGainsPopConAnalyzer::analyze(), CastorGainWidthsPopConAnalyzer::analyze(), CastorPedestalsPopConAnalyzer::analyze(), CastorPedestalWidthsPopConAnalyzer::analyze(), CastorQIEDataPopConAnalyzer::analyze(), CastorRecoParamsPopConAnalyzer::analyze(), CastorSaturationCorrsPopConAnalyzer::analyze(), HcalChannelQualityPopConAnalyzer::analyze(), HcalCholeskyMatricesPopConAnalyzer::analyze(), HcalCovarianceMatricesPopConAnalyzer::analyze(), HcalDcsMapPopConAnalyzer::analyze(), HcalDcsValuesPopConAnalyzer::analyze(), HcalElectronicsMapPopConAnalyzer::analyze(), HcalFlagHFDigiTimeParamsPopConAnalyzer::analyze(), HcalGainsPopConAnalyzer::analyze(), HcalGainWidthsPopConAnalyzer::analyze(), HcalL1TriggerObjectsPopConAnalyzer::analyze(), HcalLongRecoParamsPopConAnalyzer::analyze(), HcalLUTCorrsPopConAnalyzer::analyze(), HcalLutMetadataPopConAnalyzer::analyze(), HcalMCParamsPopConAnalyzer::analyze(), HcalPedestalsPopConAnalyzer::analyze(), HcalPedestalWidthsPopConAnalyzer::analyze(), HcalPFCorrsPopConAnalyzer::analyze(), HcalQIEDataPopConAnalyzer::analyze(), HcalQIETypesPopConAnalyzer::analyze(), HcalRecoParamsPopConAnalyzer::analyze(), HcalTimeCorrsPopConAnalyzer::analyze(), HcalTimingParamsPopConAnalyzer::analyze(), HcalValidationCorrsPopConAnalyzer::analyze(), HcalRespCorrsPopConAnalyzer::analyze(), HcalZSThresholdsPopConAnalyzer::analyze(), CondReader::analyze(), SiStripApvGainReader::analyze(), corrResps::analyze(), scaleGains::analyze(), KVFTrackUpdate::analyze(), HcalZDCLowGainFractionsPopConAnalyzer::analyze(), CSCRecHitValidation::analyze(), CSCDigiValidation::analyze(), edmtest::FillInfoESAnalyzer::analyze(), testEcalTPGScale::analyze(), corrGains::analyze(), SiStripCablingTrackerMap::analyze(), SiStripLorentzAngleReader::analyze(), modGains::analyze(), SurveyInputTrackerFromDB::analyze(), SiStripBadComponentsDQMServiceReader::analyze(), DTTFMasksTester::analyze(), DTTFParametersTester::analyze(), SurveyMisalignmentInput::analyze(), SiStripNoisesReader::analyze(), SiStripPedestalsReader::analyze(), SiStripThresholdReader::analyze(), DTEtaPatternLutTester::analyze(), DTExtLutTester::analyze(), DTPhiLutTester::analyze(), DTPtaLutTester::analyze(), DTQualPatternLutTester::analyze(), SiStripDetVOffReader::analyze(), DTSurveyConvert::analyze(), BeamSpotFromDB::analyze(), PrintTotemDAQMapping::analyze(), WriteEcalMiscalibConstantsMC::analyze(), WriteEcalMiscalibConstants::analyze(), L1CaloInputScalesGenerator::analyze(), JetResolutionDBReader::analyze(), L1uGTTreeProducer::analyze(), L1ScalesTester::analyze(), RPCGeometryServTest::analyze(), DTTTrigWriter::analyze(), edmtest::L1TriggerScalerESAnalyzer::analyze(), edmtest::RunInfoESAnalyzer::analyze(), edmtest::RunSummaryESAnalyzer::analyze(), L1GctConfigDump::analyze(), BeamConditionsMonitor::analyze(), l1t::L1TCaloStage1LutWriter::analyze(), L1GtBoardMapsTester::analyze(), L1GtPsbSetupTester::analyze(), KVFTest::analyze(), DTConfigTester::analyze(), CSCRecoBadChannelsAnalyzer::analyze(), CSCTFConfigTestAnalyzer::analyze(), L1GtStableParametersTester::analyze(), L1GtParametersTester::analyze(), JetCorrectorDBReader::analyze(), L1MuCSCTFParametersTester::analyze(), Mixing2DB::analyze(), L1RCTChannelMaskTester::analyze(), HcalAutoPedestalValidator::analyze(), L1GtVhdlWriter::analyze(), L1RCTParametersTester::analyze(), L1RCTRelValAnalyzer::analyze(), L1CaloGeometryDump::analyze(), JetResolutionScaleFactorDBReader::analyze(), DTKeyedConfigDBDump::analyze(), SiStripMonitorRawData::analyze(), BoostIODBReader< DataType, RecordType >::analyze(), WriteL1TriggerObjetsXml::analyze(), cms::HcalConstantsASCIIWriter::analyze(), DumpSimGeometry::analyze(), __class__< T >::analyze(), BTagPerformaceRootProducerFromSQLITE::analyze(), SiPixelErrorsDigisToCalibDigis::analyze(), TauJetCorrectorExample::analyze(), ListIds::analyze(), PFRecoTauDiscriminationByFlight::beginEvent(), reco::tau::RecoTauImpactParameterSignificancePlugin::beginEvent(), PFRecoTauDiscriminationByFlightPathSignificance::beginEvent(), EGGainSwitchFlagProducer< C >::beginLuminosityBlock(), DQMDaqInfo::beginLuminosityBlock(), SiStripFedCablingBuilder::beginRun(), SiStripFedCablingReader::beginRun(), HcalParametersDBBuilder::beginRun(), PTrackerParametersDBBuilder::beginRun(), EcalDQMonitorClient::beginRun(), InterestingEcalDetIdProducer::beginRun(), L1MuonOverlapParamsDBProducer::beginRun(), GEMRecoIdealDBLoader::beginRun(), DTRecoIdealDBLoader::beginRun(), ME0RecoIdealDBLoader::beginRun(), CSCRecoIdealDBLoader::beginRun(), PFDisplacedTrackerVertexProducer::beginRun(), PFNuclearProducer::beginRun(), DistortedMuonProducerFromDB::beginRun(), LightPFTrackProducer::beginRun(), SiStripCablingTrackerMap::beginRun(), PGeometricDetExtraBuilder::beginRun(), PHGCalParametersDBBuilder::beginRun(), RPCRecoIdealDBLoader::beginRun(), hcaldqm::DQHarvester::beginRun(), PFV0Producer::beginRun(), ME0DigiPreRecoProducer::beginRun(), PCaloGeometryBuilder::beginRun(), ZdcSimpleReconstructor::beginRun(), HcalShapes::beginRun(), edmtest::DQMReferenceHistogramRootFileEventSetupAnalyzer::beginRun(), edmtest::DQMXMLFileEventSetupAnalyzer::beginRun(), GEMPadDigiProducer::beginRun(), GEMDigiProducer::beginRun(), DTVDriftWriter::beginRun(), RPCDigiProducer::beginRun(), hcaldqm::DQClient::beginRun(), sistrip::ExcludedFEDListProducer::beginRun(), DTT0Correction::beginRun(), DTTTrigCorrection::beginRun(), SiStripDetInfoFileWriter::beginRun(), SiPixelDetInfoFileWriter::beginRun(), DTTPDeadWriter::beginRun(), edmtest::L1TriggerScalerESAnalyzer::beginRun(), DTTrigProd::beginRun(), EgammaIsoHcalDetIdCollectionProducer::beginRun(), TrackCandidateTopBottomHitFilter::beginRun(), MagneticFieldFilter::beginRun(), QualityTester::beginRun(), InterestingDetIdFromSuperClusterProducer::beginRun(), InterestingTrackEcalDetIdProducer::beginRun(), SiStripPlotGain::beginRun(), TrackingOfflineDQM::beginRun(), HighPtTrackEcalDetIdProducer::beginRun(), APVModeFilter::beginRun(), DuplicateRecHits::beginRun(), GEMSimTrackMatch::bookHistograms(), GEMCheckGeometry::bookHistograms(), NoCQTask::bookHistograms(), QIE11Task::bookHistograms(), UMNioTask::bookHistograms(), hcaldqm::DQTask::bookHistograms(), SiStripMonitorRawData::bookHistograms(), SiPixelFrameReverter::buildStructure(), reco::helper::JetMuonHitsIDHelper::calculate(), RPCDCSSummary::checkDCSbit(), RPCDataCertification::checkFED(), ElectronHcalHelper::checkSetup(), Multi5x5ClusterProducer::clusterizeECALPart(), CompareHitPairsY::CompareHitPairsY(), WriteESAlignments::convert(), CosmicHitPairGeneratorFromLayerPair::CosmicHitPairGeneratorFromLayerPair(), CosmicHitTripletGeneratorFromLayerTriplet::CosmicHitTripletGeneratorFromLayerTriplet(), muonisolation::PixelTrackExtractor::deposit(), muonisolation::JetExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), MultipleScatteringGeometry::detLayers(), SiStripPlotGain::DoAnalysis(), RPCMonitorLinkSynchro::dqmBeginRun(), DTDCSByLumiTask::dqmBeginRun(), RPCDaqInfo::dqmEndLuminosityBlock(), SiPixelDaqInfo::dqmEndLuminosityBlock(), EcalClusterIsoCalculator::EcalClusterIsoCalculator(), ecaldqm::EcalDQMonitor::ecaldqmGetSetupObjects(), EgammaHadTower::EgammaHadTower(), ecaldqm::TowerStatusTask::endLuminosityBlock(), ecaldqm::IntegrityClient::endLuminosityBlock(), DTDCSByLumiTask::endLuminosityBlock(), AlcaBeamSpotFromDB::endLuminosityBlockProduce(), DummyCondDBWriter< TObject, TObjectO, TRecord >::endRun(), PCLMetadataWriter::endRun(), ConditionDumperInEdm::endRunProduce(), HITrackingRegionProducer::estimateMultiplicity(), PixelRecoUtilities::FieldAt0::FieldAt0(), LaserAlignmentEventFilter::filter(), SiStripBFieldFilter::filter(), Tau3MuSkim::filter(), ElectronIdMVAProducer::filter(), L1Filter::filter(), FilterTrackerOn::filter(), EcalLaserCorrFilter::filter(), HLTMuonPointingFilter::filter(), __class__< T >::filter(), LargeEvents< T >::filter(), JME::JetResolution::get(), JME::JetResolutionScaleFactor::get(), SiStripCablingDQM::getActiveDetIds(), SiStripNoisesDQM::getCache(), SiStripBackPlaneCorrectionDQM::getCache(), SiStripLorentzAngleDQM::getCache(), SiStripPedestalsDQM::getCache(), SiStripThresholdDQM::getCache(), SiStripApvGainsDQM::getCache(), SiStripCablingDQM::getCache(), SiStripQualityDQM::getCache(), SiStripPlotGain::getCache(), JetCorrectorImplMakerBase::getCalculator(), SiStripNoisesDQM::getConditionObject(), SiStripBackPlaneCorrectionDQM::getConditionObject(), SiStripLorentzAngleDQM::getConditionObject(), SiStripPedestalsDQM::getConditionObject(), SiStripThresholdDQM::getConditionObject(), SiStripApvGainsDQM::getConditionObject(), SiStripCablingDQM::getConditionObject(), SiStripQualityDQM::getConditionObject(), SiStripCorrelateNoise::getGainCache(), EcalClusterPUCleaningTools::getGeometry(), HoECalculator::getHoE(), JetCorrector::getJetCorrector(), EcalTPGScale::getLinearizedTPG(), SiStripCorrelateBadStripAndNoise::getNoiseCache(), SiStripCorrelateNoise::getNoiseCache(), SiStripCorrelateBadStripAndNoise::getQualityCache(), edm::eventsetup::DependentRecordImplementation< EcalLaserDbRecord, boost::mpl::vector< EcalLaserAlphasRcd, EcalLaserAPDPNRatiosRefRcd, EcalLaserAPDPNRatiosRcd, EcalLinearCorrectionsRcd > >::getRecord(), PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::getToCopy(), PhysicsTools::MVATrainerFileSaveImpl< Record_t >::getToPut(), PhysicsTools::MVATrainerSaveImpl< Record_t >::getToPut(), PhysicsTools::MVATrainerContainerSaveImpl< Record_t >::getToPut(), EcalTPGScale::getTPGInADC(), EcalTPGScale::getTPGInGeV(), GsfConstraintAtVertex::GsfConstraintAtVertex(), HcalRechitIsoCalculator::HcalRechitIsoCalculator(), CosmicHitPairGeneratorFromLayerPair::hitPairs(), ctfseeding::HitExtractorPIX::hits(), CosmicTrackingRegion::hits_(), CosmicHitTripletGeneratorFromLayerTriplet::hitTriplets(), HLTCSCOverlapFilter::hltFilter(), HLTCSCRing2or3Filter::hltFilter(), MuonAlignmentInputMethod::idealCSCGeometry(), MuonAlignmentInputMethod::idealDTGeometry(), PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), PFHGCalRecHitCreator< DET, Layer, subdet >::importRecHits(), PFPSRecHitCreator::importRecHits(), PFEcalRecHitCreator< Geometry, Layer, Detector >::importRecHits(), PFEcalRecHitCreatorMaxSample< Geometry, Layer, Detector >::importRecHits(), reco::modules::CandVertexFitterEventSetupInit< Fitter >::init(), reco::modules::CandKinematicVertexFitterEventSetupInit::init(), TT6CMNSubtractor::init(), IteratedMedianCMNSubtractor::init(), SiStripPedestalsSubtractor::init(), LowPtClusterShapeSeedComparitor::init(), CosmicSeedCreator::init(), SeedFromProtoTrack::init(), EcalClusterCrackCorrectionBaseClass::init(), EcalClusterEnergyCorrectionBaseClass::init(), EcalClusterLocalContCorrectionBaseClass::init(), EcalClusterEnergyUncertaintyBaseClass::init(), EcalClusterEnergyCorrectionObjectSpecificBaseClass::init(), CosmicLayerTriplets::init(), EcalTrigPrimFunctionalAlgo::init(), EcalZeroSuppressionProducer::initCalibrations(), CSCHitAssociator::initEvent(), FastHFShowerLibrary::initHFShowerLibrary(), SiStripDCSStatus::initialise(), PhotonFixCMS::initialise(), SiStripDetVOffFakeBuilder::initialize(), DBReader::initialize(), SiStripClusterToDigiProducer::initialize(), StripClusterizerAlgorithm::initialize(), EcalTools::isNextToDead(), pat::LeptonVertexSignificance::LeptonVertexSignificance(), ConcreteFFTJetRcdMapper< DataType, RecordType >::load(), OniaVtxReProducer::makeVertices(), ParametersDefinerForTP::momentum(), MultipleScatteringGeometry::MultipleScatteringGeometry(), MuonAlignmentInputDB::newAlignableMuon(), MuonAlignmentInputSurveyDB::newAlignableMuon(), pat::helper::KinResolutionsLoader::newEvent(), pat::helper::VertexingHelper::newEvent(), DTSegmentSelector::operator()(), TriggerResultsFilterFromDB::pathsFromSetup(), HcalPatternSource::produce(), HFEMClusterProducer::produce(), JetSignalVertexCompatibility::produce(), PixelVertexProducerClusters::produce(), CastorSimpleReconstructor::produce(), ShallowRechitClustersProducer::produce(), GsfTrackProducer::produce(), MFProducer::produce(), PixelTrackProducer::produce(), DTDigiToRawModule::produce(), CSCDigiProducer::produce(), GsfTrackRefitter::produce(), FamosProducer::produce(), JetTracksAssociatorAtCaloFace::produce(), CSCSegmentProducer::produce(), ME0SegmentProducer::produce(), CSCTFTrackProducer::produce(), HIPixelClusterVtxProducer::produce(), EcalTPSkimmer::produce(), CalibratedElectronProducerRun2T< T >::produce(), ESZeroSuppressionProducer::produce(), JetTagProducer::produce(), TSGFromL2Muon::produce(), ZdcSimpleReconstructor::produce(), GEMCSCSegmentProducer::produce(), SiStripProcessedRawDigiProducer::produce(), CastorDigiToRaw::produce(), Phase2TrackerClusterizer::produce(), PFDisplacedVertexProducer::produce(), HcalDigiToRaw::produce(), DTRecSegment4DProducer::produce(), MuonSeedGenerator::produce(), HcalHistogramRawToDigi::produce(), DTSegment4DT0Corrector::produce(), DTRecHitProducer::produce(), SiPixelClusterShapeCacheProducer::produce(), RPCPackingModule::produce(), ShallowDigisProducer::produce(), TrackInfoProducer::produce(), GlobalMuonToMuonProducer::produce(), BeamSpotProducer::produce(), PFDisplacedVertexCandidateProducer::produce(), BeamSpotOnlineProducer::produce(), PixelClusterSelectorTopBottom::produce(), Phase2TrackerRecHits::produce(), CSCRecHitDProducer::produce(), L1GctInternJetProducer::produce(), StripClusterSelectorTopBottom::produce(), MuonSeedProducer::produce(), GeometryProducer::produce(), cms::JetCorrectionProducer< T >::produce(), SiPixelDigiToRaw::produce(), ImpactParameter::produce(), SiStripRegFEDSelector::produce(), PFRecoTauProducer::produce(), CaloRecoTauProducer::produce(), PFClusterShapeProducer::produce(), TotemRPLocalTrackFitter::produce(), EgammaHLTHcalIsolationDoubleConeProducers::produce(), CTPPSDiamondRecHitProducer::produce(), EcalRecHitRecalib::produce(), DTRecSegment2DProducer::produce(), DTRecSegment2DExtendedProducer::produce(), TrackMVAClassifierBase::produce(), cms::HitReCalibrator::produce(), TrackAssociatorByPositionProducer::produce(), TevMuonProducer::produce(), ShiftedPFCandidateProducerForNoPileUpPFMEt::produce(), ShiftedPFCandidateProducerForPFNoPUMEt::produce(), TrajectorySeedFromMuonProducer::produce(), TrackAssociatorByChi2Producer::produce(), MuScleFitMuonProducer::produce(), MuonMillepedeTrackRefitter::produce(), RecHitCorrector::produce(), MuonSegmentProducer::produce(), L1TExtCondProducer::produce(), PFTauSecondaryVertexProducer::produce(), ME0RecHitProducer::produce(), TemplatedVertexArbitrator< InputContainer, VTX >::produce(), TrackExtrapolator::produce(), reco::HcalHaloDataProducer::produce(), reco::EcalHaloDataProducer::produce(), MuonTrackFinder::reconstruct(), PixelFitterByConformalMappingAndLine::run(), EveDisplayPlugin::run(), l1t::WriterProxyT< Record, Type >::save(), MuonPSimHitSelector::select(), TrackerPSimHitSelector::select(), PixelPSimHitSelector::select(), HitPixelLayersTPSelector::select(), ESTimingTask::set(), ESRecHitWorker::set(), EcalUncalibRecHitWorkerWeights::set(), dtCalibration::DTVDriftSegment::setES(), reco::TransientTrackFromFTS::setES(), reco::CandidatePtrTransientTrack::setES(), dtCalibration::DTTTrigFillWithAverage::setES(), dtCalibration::DTTTrigMatchRPhi::setES(), dtCalibration::DTT0FillDefaultFromDB::setES(), dtCalibration::DTT0AbsoluteReferenceCorrection::setES(), dtCalibration::DTTTrigConstantShift::setES(), dtCalibration::DTT0FillChamberFromDB::setES(), dtCalibration::DTT0ChamberReferenceCorrection::setES(), dtCalibration::DTT0WireInChamberReferenceCorrection::setES(), reco::TrackTransientTrack::setES(), dtCalibration::DTTTrigT0SegCorrection::setES(), DTTTrigSyncT0Only::setES(), reco::GsfTransientTrack::setES(), triggerExpression::Data::setEvent(), TransientInitialStateEstimator::setEventSetup(), MVAJetTagPlotter::setEventSetup(), ConversionTrackFinder::setEventSetup(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::setEventSetup(), ConversionSeedFinder::setEventSetup(), SeedTransformer::setServices(), SiStripClusterInfo::SiStripClusterInfo(), ThrParameters::ThrParameters(), TripletFilter::TripletFilter(), HIProtoTrackFilter::update(), SCRegressionCalculator< VarCalc >::update(), BaselinePFSCRegression::update(), MuonServiceProxy::update(), PhysicsTools::MVAComputerCache::update(), FiberSD::update(), BetafuncEvtVtxGenerator::update(), SiStripShotFilter::updateCabling(), GeometryProducer::updateMagneticField(), ParametersDefinerForTP::vertex(), and VZeroFinder::VZeroFinder().

56  {
57  //NOTE: this will catch the case where T does not inherit from EventSetupRecord
58  // HOWEVER the error message under gcc 3.x is awful
60  const T* value = nullptr;
61  eventSetupGetImplementation(*this, value);
62  //NOTE: by construction, eventSetupGetImplementation should thrown an exception rather than return a null value
63  assert(0 != value);
64  return *value;
65  }
assert(m_qm.get())
void eventSetupGetImplementation(EventSetup const &iEventSetup, T const *&iValue)
long double T
template<typename T >
void edm::EventSetup::getAvoidCompilerBug ( const T *&  iValue) const
inline

Definition at line 116 of file EventSetup.h.

116  {
117  iValue = &(get<T>());
118  }
template<typename T >
void edm::EventSetup::getData ( T iHolder) const
inline
template<typename T >
void edm::EventSetup::getData ( const std::string &  iLabel,
T iHolder 
) const
inline

Definition at line 86 of file EventSetup.h.

86  {
87  typedef typename T::value_type data_type;
89  const RecordT& rec = this->get<RecordT>();
90  rec.get(iLabel,iHolder);
91  }
type
Definition: HCALResponse.h:21
template<typename T >
void edm::EventSetup::getData ( const edm::ESInputTag iTag,
T iHolder 
) const
inline

Definition at line 94 of file EventSetup.h.

94  {
95  typedef typename T::value_type data_type;
97  const RecordT& rec = this->get<RecordT>();
98  rec.get(iTag,iHolder);
99  }
type
Definition: HCALResponse.h:21
void EventSetup::insert ( const eventsetup::EventSetupRecordKey iKey,
const eventsetup::EventSetupRecord iRecord 
)
private

Definition at line 69 of file EventSetup.cc.

References recordMap_.

Referenced by add().

71 {
72  recordMap_[iKey]= iRecord;
73 }
std::map< eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const * > recordMap_
Definition: EventSetup.h:144
const IOVSyncValue& edm::EventSetup::iovSyncValue ( ) const
inline

Definition at line 101 of file EventSetup.h.

References syncValue_.

Referenced by edm::eventsetup::iovSyncValueFrom().

101 { return syncValue_;}
IOVSyncValue syncValue_
Definition: EventSetup.h:141
EventSetup const& edm::EventSetup::operator= ( EventSetup const &  )
private
bool EventSetup::recordIsProvidedByAModule ( eventsetup::EventSetupRecordKey const &  iKey) const

returns true if the Record is provided by a Source or a Producer a value of true does not mean this EventSetup object holds such a record

Definition at line 116 of file EventSetup.cc.

References edm::eventsetup::EventSetupKnownRecordsSupplier::isKnown(), and knownRecords_.

Referenced by edm::eventsetup::recordDoesExist().

117 {
118  return knownRecords_->isKnown(iKey);
119 }
eventsetup::EventSetupKnownRecordsSupplier const * knownRecords_
Definition: EventSetup.h:145
virtual bool isKnown(EventSetupRecordKey const &) const =0
void EventSetup::setIOVSyncValue ( const IOVSyncValue iTime)
protected

Definition at line 63 of file EventSetup.cc.

References syncValue_.

63  {
64  //will ultimately build our list of records
65  syncValue_ = iTime;
66 }
IOVSyncValue syncValue_
Definition: EventSetup.h:141
void edm::EventSetup::setKnownRecordsSupplier ( eventsetup::EventSetupKnownRecordsSupplier const *  iSupplier)
inlineprotected

Definition at line 122 of file EventSetup.h.

References knownRecords_.

122  {
123  knownRecords_ = iSupplier;
124  }
eventsetup::EventSetupKnownRecordsSupplier const * knownRecords_
Definition: EventSetup.h:145
template<typename T >
const T* edm::EventSetup::tryToGet ( ) const
inline

returns the Record of type T. If no such record available a null pointer is returned

Definition at line 69 of file EventSetup.h.

References edm::eventsetup::eventSetupTryToGetImplementation(), and relativeConstraints::value.

Referenced by edm::eventsetup::DependentRecordImplementation< EcalLaserDbRecord, boost::mpl::vector< EcalLaserAlphasRcd, EcalLaserAPDPNRatiosRefRcd, EcalLaserAPDPNRatiosRcd, EcalLinearCorrectionsRcd > >::tryToGetRecord().

69  {
70  //NOTE: this will catch the case where T does not inherit from EventSetupRecord
72  const T* value = nullptr;
74  return value;
75  }
void eventSetupTryToGetImplementation(EventSetup const &iEventSetup, T const *&iValue)
long double T

Friends And Related Function Documentation

friend class eventsetup::EventSetupProvider
friend

Only EventSetupProvider allowed to create a EventSetup.

Definition at line 48 of file EventSetup.h.

Member Data Documentation

eventsetup::EventSetupKnownRecordsSupplier const* edm::EventSetup::knownRecords_
private

Definition at line 145 of file EventSetup.h.

Referenced by recordIsProvidedByAModule(), and setKnownRecordsSupplier().

std::map<eventsetup::EventSetupRecordKey, eventsetup::EventSetupRecord const *> edm::EventSetup::recordMap_
private

Definition at line 144 of file EventSetup.h.

Referenced by clear(), fillAvailableRecordKeys(), find(), and insert().

IOVSyncValue edm::EventSetup::syncValue_
private

Definition at line 141 of file EventSetup.h.

Referenced by iovSyncValue(), and setIOVSyncValue().