CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edm::eventsetup::DataProxyProvider Class Referenceabstract

#include <DataProxyProvider.h>

Inheritance diagram for edm::eventsetup::DataProxyProvider:
CondDBESSource edm::ESProxyFactoryProducer FWLiteESSource PoolDBESSource edm::ESProducer __class__< T > AnalyticalPropagatorESProducer BeamHaloPropagatorESProducer BeamSpotFakeConditions BtagPerformanceESProducer BufferedBoostIOESProducer< DataType, MyRecord > CaloGeometryBuilder CaloGeometryDBEP< T, U > CaloGeometryEP< T > CaloMiscalibTools CaloMiscalibToolsMC CaloTopologyBuilder CaloTowerConstituentsMapBuilder CaloTowerHardcodeGeometryEP CaloTowerTopologyEP CaloTPGTranscoderULUTs CastorDbProducer CastorHardcodeCalibrations CastorHardcodeGeometryEP CastorTextCalibrations Chi2ChargeMeasurementEstimatorESProducer CloseComponentsMergerESProducer< N > ClusterShapeHitFilterESProducer CosmicParametersDefinerForTPESProducer CSCBadChambersConditions CSCBadStripsConditions CSCBadWiresConditions CSCChamberIndexValues CSCChamberMapValues CSCChamberTimeCorrectionsValues CSCChannelMapperESProducer CSCChipSpeedCorrectionDBConditions CSCCrateMapValues CSCCrosstalkConditions CSCCrosstalkDBConditions CSCDBL1TPParametersConditions CSCDDUMapValues CSCFakeCrosstalkConditions CSCFakeDBCrosstalk CSCFakeDBCrosstalkPopCon CSCFakeDBGains CSCFakeDBGainsPopCon CSCFakeDBNoiseMatrix CSCFakeDBPedestals CSCFakeGainsConditions CSCFakeNoiseMatrixConditions CSCFakePedestalsConditions CSCGainsConditions CSCGainsDBConditions CSCGasGainCorrectionDBConditions CSCGeometryESModule CSCIndexerESProducer CSCL1TPParametersConditions CSCNoiseMatrixConditions CSCNoiseMatrixDBConditions CSCObjectMapESProducer CSCPedestalsDBConditions CSCTFConfigProducer CTPPSGeometryESModule CTPPSIncludeAlignments CTPPSPixelDAQMappingESSourceXML DetIdAssociatorESProducer DetLayerGeometryESProducer DIPLumiProducer DistanceBetweenComponentsESProducer< N > DTConfigDBProducer DTConfigTrivialProducer DTFakeT0ESProducer DTGeometryESModule DTObjectMapESProducer DTTrackFinderConfig EcalBasicClusterLocalContCorrectionsESProducer EcalElectronicsMappingBuilder EcalGlobalShowerContainmentCorrectionsVsEtaESProducer EcalLaserCorrectionService EcalNextToDeadChannelESProducer EcalRegionCablingESProducer EcalSeverityLevelESProducer EcalShowerContainmentCorrectionsESProducer EcalTBGeometryBuilder EcalTBHodoscopeGeometryEP EcalTrigPrimESProducer EcalTrigPrimSpikeESProducer EcalTrigTowerConstituentsMapBuilder EcalTrivialConditionRetriever edm::ESProducerLooper ElectronLikelihoodESSource ES_TTClusterAlgorithm_neighbor< T > ES_TTClusterAlgorithm_official< T > ES_TTStubAlgorithm_cbc3< T > ES_TTStubAlgorithm_official< T > ESTrivialConditionRetriever FakeAlignmentProducer FakeAlignmentSource FakeCaloAlignmentEP FastSimGeometryESProducer FastTimeGeometryESProducer FastTimeNumberingInitialization FastTimeParametersESModule FastTimeTopologyBuilder FFTJetCorrectionESProducer< CT > FFTJetLookupTableESProducer< CT > FWRecoGeometryESProducer FWTGeoRecoGeometryESProducer GeantPropagatorESProducer GEMGeometryESModule GlobalDetLayerGeometryESProducer GlobalTrackingGeometryESProducer GsfMaterialEffectsESProducer GsfTrajectoryFitterESProducer GsfTrajectorySmootherESProducer HBHEDarkeningEP HcalAlignmentEP HcalDbProducer HcalDDDGeometryEP HcalDDDRecConstantsESModule HcalDDDSimConstantsESModule HcalHardcodeCalibrations HcalHardcodeGeometryEP HcalParametersESModule HcalRecAlgoESProducer HcalTextCalibrations HcalTopologyIdealEP HcalTPGCoderULUT HcalTrigTowerGeometryESProducer HepPDTESSource HGCalGeometryESProducer HGCalNumberingInitialization HGCalParametersESModule HGCalTopologyBuilder HGCalTriggerGeometryESProducer HiTrivialConditionRetriever JetCorrectionESChain JetCorrectionESProducer< Corrector > JetCorrectionESSource< Corrector > JetResolutionESProducer JetResolutionScaleFactorESProducer JetTagComputerESProducer< ConcreteJetTagComputer > KFFittingSmootherESProducer KFFittingSmootherESProducer KFSwitching1DUpdatorESProducer KFUpdatorESProducer L1CaloGeometryProd L1CaloInputScalesProducer L1ConfigOnlineProdBase< TRcd, TData > L1ConfigOnlineProdBase< L1CaloEcalScaleRcd, L1CaloEcalScale > L1ConfigOnlineProdBase< L1CaloHcalScaleRcd, L1CaloHcalScale > L1ConfigOnlineProdBase< L1EmEtScaleRcd, L1CaloEtScale > L1ConfigOnlineProdBase< L1GctChannelMaskRcd, L1GctChannelMask > L1ConfigOnlineProdBase< L1GctJetFinderParamsRcd, L1GctJetFinderParams > L1ConfigOnlineProdBase< L1GtParametersRcd, L1GtParameters > L1ConfigOnlineProdBase< L1GtPrescaleFactorsAlgoTrigRcd, L1GtPrescaleFactors > L1ConfigOnlineProdBase< L1GtPrescaleFactorsTechTrigRcd, L1GtPrescaleFactors > L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > L1ConfigOnlineProdBase< L1GtTriggerMaskAlgoTrigRcd, L1GtTriggerMask > L1ConfigOnlineProdBase< L1GtTriggerMaskTechTrigRcd, L1GtTriggerMask > L1ConfigOnlineProdBase< L1GtTriggerMaskVetoTechTrigRcd, L1GtTriggerMask > L1ConfigOnlineProdBase< L1GtTriggerMenuRcd, L1GtTriggerMenu > L1ConfigOnlineProdBase< L1HfRingEtScaleRcd, L1CaloEtScale > L1ConfigOnlineProdBase< L1HtMissScaleRcd, L1CaloEtScale > L1ConfigOnlineProdBase< L1JetEtScaleRcd, L1CaloEtScale > L1ConfigOnlineProdBase< L1MuCSCPtLutRcd, L1MuCSCPtLut > L1ConfigOnlineProdBase< L1MuCSCTFAlignmentRcd, L1MuCSCTFAlignment > L1ConfigOnlineProdBase< L1MuCSCTFConfigurationRcd, L1MuCSCTFConfiguration > L1ConfigOnlineProdBase< L1MuDTEtaPatternLutRcd, L1MuDTEtaPatternLut > L1ConfigOnlineProdBase< L1MuDTExtLutRcd, L1MuDTExtLut > L1ConfigOnlineProdBase< L1MuDTPhiLutRcd, L1MuDTPhiLut > L1ConfigOnlineProdBase< L1MuDTPtaLutRcd, L1MuDTPtaLut > L1ConfigOnlineProdBase< L1MuDTQualPatternLutRcd, L1MuDTQualPatternLut > L1ConfigOnlineProdBase< L1MuDTTFMasksRcd, L1MuDTTFMasks > L1ConfigOnlineProdBase< L1MuDTTFParametersRcd, L1MuDTTFParameters > L1ConfigOnlineProdBase< L1MuGMTChannelMaskRcd, L1MuGMTChannelMask > L1ConfigOnlineProdBase< L1MuGMTParametersRcd, L1MuGMTParameters > L1ConfigOnlineProdBase< L1MuTriggerPtScaleRcd, L1MuTriggerPtScale > L1ConfigOnlineProdBase< L1MuTriggerScalesRcd, L1MuTriggerScales > L1ConfigOnlineProdBase< L1RCTChannelMaskRcd, L1RCTChannelMask > L1ConfigOnlineProdBase< L1RCTParametersRcd, L1RCTParameters > L1ConfigOnlineProdBase< L1RPCBxOrConfigRcd, L1RPCBxOrConfig > L1ConfigOnlineProdBase< L1RPCConeDefinitionRcd, L1RPCConeDefinition > L1ConfigOnlineProdBase< L1RPCConfigRcd, L1RPCConfig > L1ConfigOnlineProdBase< L1RPCHsbConfigRcd, L1RPCHsbConfig > L1ConfigOnlineProdBaseExt< TRcd, TData > L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams > L1ConfigOnlineProdBaseExt< L1TGlobalPrescalesVetosO2ORcd, L1TGlobalPrescalesVetos > L1ConfigOnlineProdBaseExt< L1TMuonBarrelParamsO2ORcd, L1TMuonBarrelParams > L1ConfigOnlineProdBaseExt< L1TMuonEndCapForestO2ORcd, L1TMuonEndCapForest > L1ConfigOnlineProdBaseExt< L1TMuonEndCapParamsO2ORcd, L1TMuonEndCapParams > L1ConfigOnlineProdBaseExt< L1TMuonGlobalParamsO2ORcd, L1TMuonGlobalParams > L1ConfigOnlineProdBaseExt< L1TMuonOverlapParamsO2ORcd, L1TMuonOverlapParams > L1ConfigOnlineProdBaseExt< L1TUtmTriggerMenuO2ORcd, L1TUtmTriggerMenu > L1CSCTriggerPrimitivesConfigProducer L1GctConfigProducers L1GtBoardMapsTrivialProducer L1GtParametersTrivialProducer L1GtPrescaleFactorsAlgoTrigTrivialProducer L1GtPrescaleFactorsTechTrigTrivialProducer L1GtPsbSetupTrivialProducer L1GtStableParametersTrivialProducer L1GtTriggerMaskAlgoTrigTrivialProducer L1GtTriggerMaskTechTrigTrivialProducer L1GtTriggerMaskVetoAlgoTrigTrivialProducer L1GtTriggerMaskVetoTechTrigTrivialProducer L1GtTriggerMenuXmlProducer L1MuGMTParametersProducer L1MuGMTScalesProducer L1MuTriggerPtScaleProducer L1MuTriggerScalesProducer L1ObjectKeysOnlineProdBase L1ObjectKeysOnlineProdBaseExt L1RCTOmdsFedVectorProducer L1RPCConeDefinitionProducer L1ScalesTrivialProducer L1SubsystemKeysOnlineProd L1SubsystemKeysOnlineProdExt L1TCaloConfigESProducer L1TCaloParamsESProducer L1TCaloStage2ParamsESProducer L1TGlobalPrescalesVetosESProducer L1TMuonBarrelParamsESProducer L1TMuonEndCapForestESProducer L1TMuonEndCapForestOnlineProxy L1TMuonEndCapParamsESProducer L1TMuonEndCapParamsOnlineProxy L1TMuonGlobalParamsESProducer L1TMuonOverlapParamsESProducer L1TMuonOverlapParamsOnlineProxy L1TriggerKeyDummyProd L1TriggerKeyDummyProdExt L1TriggerKeyListDummyProd L1TriggerKeyListDummyProdExt L1TriggerKeyOnlineProd L1TriggerKeyOnlineProdExt L1TTwinMuxParamsESProducer L1TUtmTriggerMenuESProducer LumiCorrectionSource magneticfield::AutoMagneticFieldESProducer magneticfield::AutoParametrizedMagneticFieldProducer magneticfield::ParametrizedMagneticFieldProducer magneticfield::UniformMagneticFieldESProducer magneticfield::VolumeBasedMagneticFieldESProducer magneticfield::VolumeBasedMagneticFieldESProducerFromDB MagneticFieldMapESProducer ME0GeometryESModule MeasurementTrackerESProducer MisalignedMuonESProducer MisalignedTrackerESProducer MultiRecHitCollectorESProducer MuonDetLayerGeometryESProducer MuonNumberingInitialization MuonTransientTrackingRecHitBuilderESProducer NavigationSchoolESProducer ParametersDefinerForTPESProducer Phase2StripCPEESProducer Phase2TrackerCablingESProducer PhysicsTools::MVAComputerESSourceBase PixelCPEGenericESProducer PixelCPETemplateRecoESProducer PixelToFEDAssociateFromAsciiESProducer PixelToLNKAssociateFromAsciiESProducer PixelTrackCleanerBySharedHitsESProducer PropagatorWithMaterialESProducer QGLikelihoodESProducer QGLikelihoodSystematicsESProducer RCTConfigProducers RPCConeBuilder RPCGeometryESModule RPCInverseCPPFLinkMapESProducer RPCInverseLBLinkMapESProducer RPCInverseOMTFLinkMapESProducer RPCInverseTwinMuxLinkMapESProducer RPCPerformanceESSource RPCTriggerBxOrConfig RPCTriggerConfig RPCTriggerHsbConfig RPCTriggerHwConfig SiPixelFakeCPEGenericErrorParmESSource SiPixelFakeGainESSource SiPixelFakeGainForHLTESSource SiPixelFakeGainOfflineESSource SiPixelFakeGenErrorDBObjectESSource SiPixelFakeLorentzAngleESSource SiPixelFakeQualityESSource SiPixelFakeTemplateDBObjectESSource SiPixelGenErrorDBObjectESProducer SiPixelQualityESProducer SiPixelTemplateDBObjectESProducer sistrip::MeasureLA SiStripApvGainFakeESSource SiStripBackPlaneCorrectionDepESProducer SiStripBackPlaneCorrectioNFakeESSource SiStripBadModuleConfigurableFakeESSource SiStripBadModuleFedErrESSource SiStripBaseDelayFakeESSource SiStripConfObjectFakeESSource SiStripConnectivity SiStripDelayESProducer SiStripFedCablingESProducer SiStripGainESProducerTemplate< TDependentRecord, TInputRecord > SiStripGainESSource SiStripHashedDetIdESProducer SiStripHashedDetIdESProducer SiStripLatencyFakeESSource SiStripLorentzAngleDepESProducer SiStripLorentzAngleFakeESSource SiStripNoiseESSource SiStripNoisesFakeESSource SiStripPedestalsESSource SiStripPedestalsFakeESSource SiStripQualityESProducer SiStripQualityFakeESSource SiStripRecHitMatcherESProducer SiStripRegionConnectivity SiStripTemplateEmptyFakeESSource< TObject, TRecord > SiStripThresholdFakeESSource SiTrackerMultiRecHitUpdatorESProducer SkippingLayerCosmicNavigationSchoolESProducer SmartPropagatorESProducer StableParametersTrivialProducer SteppingHelixPropagatorESProducer StraightLinePropagatorESProducer StringResolutionProviderESProducer StripCPEESProducer TestCaloAlignmentEP TGeoMgrFromDdd TkMSParameterizationBuilder TkTransientTrackingRecHitBuilderESProducer TotemDAQMappingESSourceXML TrackAlgoPriorityOrderESProducer TrackCleanerESProducer TrackerDigiGeometryESModule TrackerGeometricDetESModule TrackerGeometricDetExtraESModule TrackerInteractionGeometryESProducer TrackerParametersESModule TrackerRecoGeometryESProducer TrackerTopologyEP TrackingRecHitPropagatorESProducer TrajectoryCleanerESProducer TransientTrackBuilderESProducer TSCBLBuilderNoMaterialESProducer TSCBLBuilderWithPropagatorESProducer XMLIdealGeometryESProducer XMLIdealGeometryESSource XMLIdealMagneticFieldGeometryESProducer ZdcHardcodeGeometryEP

Public Types

typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 

Public Member Functions

 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
virtual void newInterval (const EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)=0
 called when a new interval of validity occurs for iRecordType More...
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Static Public Member Functions

static void prevalidate (ConfigurationDescriptions &)
 

Protected Member Functions

void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
virtual void registerProxies (const EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList)=0
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Private Member Functions

 DataProxyProvider (const DataProxyProvider &)
 
const DataProxyProvideroperator= (const DataProxyProvider &)
 

Private Attributes

std::string appendToDataLabel_
 
ComponentDescription description_
 
RecordProxies recordProxies_
 

Detailed Description

Definition at line 43 of file DataProxyProvider.h.

Member Typedef Documentation

typedef std::vector<std::pair<DataKey, edm::propagate_const<std::shared_ptr<DataProxy> > > > edm::eventsetup::DataProxyProvider::KeyedProxies

Definition at line 48 of file DataProxyProvider.h.

Definition at line 47 of file DataProxyProvider.h.

Definition at line 49 of file DataProxyProvider.h.

Constructor & Destructor Documentation

DataProxyProvider::DataProxyProvider ( )

Definition at line 36 of file DataProxyProvider.cc.

Referenced by usingRecord().

DataProxyProvider::~DataProxyProvider ( )
virtualnoexcept

Definition at line 45 of file DataProxyProvider.cc.

46 {
47 }
edm::eventsetup::DataProxyProvider::DataProxyProvider ( const DataProxyProvider )
private

Member Function Documentation

const ComponentDescription& edm::eventsetup::DataProxyProvider::description ( ) const
inline
void edm::eventsetup::DataProxyProvider::eraseAll ( const EventSetupRecordKey iRecordKey)
protected

deletes all the Proxies in aStream

Referenced by usingRecord().

void DataProxyProvider::invalidateProxies ( const EventSetupRecordKey iRecordKey)
protected

Definition at line 72 of file DataProxyProvider.cc.

References mps_check::finished, and recordProxies_.

Referenced by CondDBESSource::newInterval(), edm::ESProxyFactoryProducer::newInterval(), FWLiteESSource::newInterval(), resetProxies(), and usingRecord().

73 {
74  KeyedProxies& proxyList((*(recordProxies_.find(iRecordKey))).second) ;
75  KeyedProxies::iterator finished(proxyList.end()) ;
76  for (KeyedProxies::iterator keyedProxy(proxyList.begin()) ;
77  keyedProxy != finished ;
78  ++keyedProxy) {
79  (*((*keyedProxy).second)).invalidate() ;
80  }
81 
82 }
int finished
Definition: mps_check.py:34
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
bool DataProxyProvider::isUsingRecord ( const EventSetupRecordKey iKey) const

Definition at line 119 of file DataProxyProvider.cc.

References recordProxies_.

120 {
121  return recordProxies_.end() != recordProxies_.find(iKey);
122 }
const DataProxyProvider::KeyedProxies & DataProxyProvider::keyedProxies ( const EventSetupRecordKey iRecordKey) const

Definition at line 139 of file DataProxyProvider.cc.

References appendToDataLabel_, description(), edm::eventsetup::kAppendToDataLabel(), recordProxies_, registerProxies(), AlCaHLTBitMon_QueryRunRegistry::string, edm::eventsetup::swap(), and groupFilesInBlocks::temp.

140 {
141  RecordProxies::const_iterator itFind = recordProxies_.find(iRecordKey);
142  assert(itFind != recordProxies_.end());
143 
144  if(itFind->second.empty()) {
145  //delayed registration
146  KeyedProxies& proxies = const_cast<KeyedProxies&>(itFind->second);
147  const_cast<DataProxyProvider*>(this)->registerProxies(iRecordKey,
148  proxies);
149 
150  bool mustChangeLabels = (!appendToDataLabel_.empty());
151  for(KeyedProxies::iterator itProxy = proxies.begin(), itProxyEnd = proxies.end();
152  itProxy != itProxyEnd;
153  ++itProxy) {
154  itProxy->second->setProviderDescription(&description());
155  if( mustChangeLabels ) {
156  //Using swap is fine since
157  // 1) the data structure is not a map and so we have not sorted on the keys
158  // 2) this is the first time filling this so no outside agency has yet seen
159  // the label and therefore can not be dependent upon its value
160  std::string temp(std::string(itProxy->first.name().value())+appendToDataLabel_);
161  DataKey newKey(itProxy->first.type(),temp.c_str());
162  swap(itProxy->first,newKey);
163  }
164  }
165  }
166 
167  return itFind->second;
168 }
virtual void registerProxies(const EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList)=0
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
const ComponentDescription & description() const
void swap(DataKey &a, DataKey &b)
Definition: DataKey.h:99
virtual void edm::eventsetup::DataProxyProvider::newInterval ( const EventSetupRecordKey iRecordType,
const ValidityInterval iInterval 
)
pure virtual

called when a new interval of validity occurs for iRecordType

Implemented in FWLiteESSource, edm::ESProxyFactoryProducer, and CondDBESSource.

Referenced by description().

const DataProxyProvider& edm::eventsetup::DataProxyProvider::operator= ( const DataProxyProvider )
private

Referenced by usingRecord().

void DataProxyProvider::prevalidate ( ConfigurationDescriptions iDesc)
static

Used to add parameters available to all inheriting classes

Definition at line 176 of file DataProxyProvider.cc.

References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::defaultDescription(), edm::ParameterSetDescription::isLabelUnused(), edm::eventsetup::kAppendToDataLabel(), AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.

Referenced by description().

177 {
178  if(iDesc.defaultDescription()) {
179  if (iDesc.defaultDescription()->isLabelUnused(kAppendToDataLabel)) {
180  iDesc.defaultDescription()->add<std::string>(kAppendToDataLabel, std::string(""));
181  }
182  }
183  for(auto& v: iDesc) {
184  if (v.second.isLabelUnused(kAppendToDataLabel)) {
185  v.second.add<std::string>(kAppendToDataLabel, std::string(""));
186  }
187  }
188 }
static const std::string kAppendToDataLabel("appendToDataLabel")
virtual void edm::eventsetup::DataProxyProvider::registerProxies ( const EventSetupRecordKey iRecordKey,
KeyedProxies aProxyList 
)
protectedpure virtual
void DataProxyProvider::resetProxies ( const EventSetupRecordKey iRecordType)

Definition at line 85 of file DataProxyProvider.cc.

References invalidateProxies().

Referenced by edm::eventsetup::EventSetupRecordProvider::resetProxies(), and setDescription().

86 {
87  invalidateProxies(iRecordKey);
88 }
void invalidateProxies(const EventSetupRecordKey &iRecordKey)
void DataProxyProvider::resetProxiesIfTransient ( const EventSetupRecordKey iRecordType)

Definition at line 91 of file DataProxyProvider.cc.

References mps_check::finished, and recordProxies_.

Referenced by edm::eventsetup::EventSetupRecordProvider::resetProxies(), edm::eventsetup::EventSetupRecordProvider::resetTransients(), and setDescription().

92 {
93  KeyedProxies& proxyList((*(recordProxies_.find(iRecordKey))).second) ;
94  KeyedProxies::iterator finished(proxyList.end()) ;
95  for (KeyedProxies::iterator keyedProxy(proxyList.begin()) ;
96  keyedProxy != finished ;
97  ++keyedProxy) {
98  (*((*keyedProxy).second)).resetIfTransient() ;
99  }
100 
101 }
int finished
Definition: mps_check.py:34
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
void DataProxyProvider::setAppendToDataLabel ( const edm::ParameterSet iToAppend)

This method is only to be called by the framework, it sets the string which will be appended to the labels of all data products being produced

Definition at line 104 of file DataProxyProvider.cc.

References appendToDataLabel_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by setDescription(), and edm::eventsetup::ComponentMaker< edm::eventsetup::LooperMakerTraits, TType >::setPostConstruction().

105 {
106  std::string oldValue( appendToDataLabel_);
107  //this can only be changed once and the default value is the empty string
108  assert(oldValue.empty());
109 
110  const std::string kParamName("appendToDataLabel");
111  if(iToAppend.exists(kParamName) ) {
112  appendToDataLabel_ = iToAppend.getParameter<std::string>(kParamName);
113  }
114 }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
void edm::eventsetup::DataProxyProvider::setDescription ( const ComponentDescription iDescription)
inline
template<class T >
void edm::eventsetup::DataProxyProvider::usingRecord ( )
inlineprotected

Definition at line 87 of file DataProxyProvider.h.

References DataProxyProvider(), eraseAll(), invalidateProxies(), operator=(), registerProxies(), and usingRecordWithKey().

87  {
88  usingRecordWithKey(EventSetupRecordKey::makeKey<T>());
89  }
void usingRecordWithKey(const EventSetupRecordKey &)
std::set< EventSetupRecordKey > DataProxyProvider::usingRecords ( ) const

Definition at line 125 of file DataProxyProvider.cc.

References recordProxies_.

126 {
127  std::set<EventSetupRecordKey> returnValue;
128  for(RecordProxies::const_iterator itRecProxies = recordProxies_.begin(),
129  itRecProxiesEnd = recordProxies_.end();
130  itRecProxies != itRecProxiesEnd;
131  ++itRecProxies) {
132  returnValue.insert(returnValue.end(), itRecProxies->first);
133  }
134  //copy_all(keys_, std::inserter(returnValue, returnValue.end()));
135  return returnValue;
136 }
void DataProxyProvider::usingRecordWithKey ( const EventSetupRecordKey iKey)
protected

Member Data Documentation

std::string edm::eventsetup::DataProxyProvider::appendToDataLabel_
private

Definition at line 109 of file DataProxyProvider.h.

Referenced by keyedProxies(), and setAppendToDataLabel().

ComponentDescription edm::eventsetup::DataProxyProvider::description_
private

Definition at line 108 of file DataProxyProvider.h.

Referenced by description(), and setDescription().

RecordProxies edm::eventsetup::DataProxyProvider::recordProxies_
private