21 namespace eventsetup {
72 KeyedProxies::iterator finished(proxyList.end()) ;
73 for (KeyedProxies::iterator keyedProxy(proxyList.begin()) ;
74 keyedProxy != finished ;
76 (*((*keyedProxy).second)).invalidate() ;
91 KeyedProxies::iterator finished(proxyList.end()) ;
92 for (KeyedProxies::iterator keyedProxy(proxyList.begin()) ;
93 keyedProxy != finished ;
95 (*((*keyedProxy).second)).resetIfTransient() ;
105 assert(0 == oldValue.size());
107 const std::string kParamName(
"appendToDataLabel");
108 if(iToAppend.
exists(kParamName) ) {
121 std::set<EventSetupRecordKey>
124 std::set<EventSetupRecordKey> returnValue;
125 for(RecordProxies::const_iterator itRecProxies =
recordProxies_.begin(),
127 itRecProxies != itRecProxiesEnd;
129 returnValue.insert(returnValue.end(), itRecProxies->first);
138 RecordProxies::const_iterator itFind =
recordProxies_.find(iRecordKey);
141 if(itFind->second.empty()) {
148 for(KeyedProxies::iterator itProxy = proxies.begin(), itProxyEnd = proxies.end();
149 itProxy != itProxyEnd;
151 itProxy->second->setProviderDescription(&
description());
152 if( mustChangeLabels ) {
158 DataKey newKey(itProxy->first.type(),temp.c_str());
159 swap(itProxy->first,newKey);
164 return itFind->second;
T getParameter(std::string const &) const
void resetProxiesIfTransient(const EventSetupRecordKey &iRecordType)
const KeyedProxies & keyedProxies(const EventSetupRecordKey &iRecordKey) const
bool isUsingRecord(const EventSetupRecordKey &) const
virtual void registerProxies(const EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList)=0
bool exists(std::string const ¶meterName) const
checks if a parameter exists
void usingRecordWithKey(const EventSetupRecordKey &)
RecordProxies recordProxies_
void invalidateProxies(const EventSetupRecordKey &iRecordKey)
std::vector< std::pair< DataKey, boost::shared_ptr< DataProxy > > > KeyedProxies
void resetProxies(const EventSetupRecordKey &iRecordType)
const ComponentDescription & description() const
void swap(DataKey &a, DataKey &b)
std::set< EventSetupRecordKey > usingRecords() const
void setAppendToDataLabel(const edm::ParameterSet &)
virtual ~DataProxyProvider()
std::string appendToDataLabel_