CMS 3D CMS Logo

EventSetupProvider.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Module: EventSetupProvider
5 //
6 // Description: <one line class summary>
7 //
8 // Implementation:
9 // <Notes on implementation>
10 //
11 // Author: Chris Jones
12 // Created: Thu Mar 24 16:27:14 EST 2005
13 //
14 
15 // system include files
16 #include <algorithm>
17 #include <cassert>
18 
19 // user include files
36 
37 namespace edm {
38  namespace eventsetup {
39 
41  tbb::task_arena* taskArena,
42  unsigned subProcessIndex,
43  const PreferredProviderInfo* iInfo)
44  : activityRegistry_(activityRegistry),
45  taskArena_(taskArena),
46  mustFinishConfiguration_(true),
47  subProcessIndex_(subProcessIndex),
48  preferredProviderInfo_((nullptr != iInfo) ? (new PreferredProviderInfo(*iInfo)) : nullptr),
49  finders_(new std::vector<std::shared_ptr<EventSetupRecordIntervalFinder>>()),
50  dataProviders_(new std::vector<std::shared_ptr<DataProxyProvider>>()),
51  referencedDataKeys_(new std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription const*>>),
52  recordToFinders_(
54  psetIDToRecordKey_(new std::map<ParameterSetIDHolder, std::set<EventSetupRecordKey>>),
55  recordToPreferred_(new std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription>>),
56  recordsWithALooperProxy_(new std::set<EventSetupRecordKey>) {}
57 
59 
60  std::shared_ptr<EventSetupRecordProvider>& EventSetupProvider::recordProvider(const EventSetupRecordKey& iKey) {
61  auto lb = std::lower_bound(recordKeys_.begin(), recordKeys_.end(), iKey);
62  if (lb == recordKeys_.end() || iKey != *lb) {
63  throw cms::Exception("LogicError") << "EventSetupProvider::recordProvider Could not find key\n"
64  << "Should be impossible. Please contact Framework developer.\n";
65  }
66  auto index = std::distance(recordKeys_.begin(), lb);
67  return recordProviders_[index];
68  }
69 
71  auto lb = std::lower_bound(recordKeys_.begin(), recordKeys_.end(), iKey);
72  if (lb == recordKeys_.end() || iKey != *lb) {
73  return nullptr;
74  }
75  auto index = std::distance(recordKeys_.begin(), lb);
76  return recordProviders_[index].get();
77  }
78 
80  std::unique_ptr<EventSetupRecordProvider> iProvider) {
81  auto lb = std::lower_bound(recordKeys_.begin(), recordKeys_.end(), iKey);
82  auto index = std::distance(recordKeys_.begin(), lb);
83  if (lb == recordKeys_.end() || iKey != *lb) {
84  recordKeys_.insert(lb, iKey);
85  recordProviders_.insert(recordProviders_.begin() + index, std::move(iProvider));
86  } else {
87  recordProviders_[index] = std::move(iProvider);
88  }
89  }
90 
91  void EventSetupProvider::add(std::shared_ptr<DataProxyProvider> iProvider) {
92  assert(iProvider.get() != nullptr);
93  dataProviders_->push_back(iProvider);
94  }
95 
96  void EventSetupProvider::replaceExisting(std::shared_ptr<DataProxyProvider> dataProxyProvider) {
97  ParameterSetIDHolder psetID(dataProxyProvider->description().pid_);
98  std::set<EventSetupRecordKey> const& keysForPSetID = (*psetIDToRecordKey_)[psetID];
99  for (auto const& key : keysForPSetID) {
100  recordProvider(key)->resetProxyProvider(psetID, dataProxyProvider);
101  }
102  }
103 
104  void EventSetupProvider::add(std::shared_ptr<EventSetupRecordIntervalFinder> iFinder) {
105  assert(iFinder.get() != nullptr);
106  finders_->push_back(iFinder);
107  }
108 
109  using RecordProviders = std::vector<std::shared_ptr<EventSetupRecordProvider>>;
110  using RecordToPreferred = std::map<EventSetupRecordKey, EventSetupRecordProvider::DataToPreferredProviderMap>;
112  static void preferEverything(const ComponentDescription& iComponent,
113  const RecordProviders& iRecordProviders,
114  RecordToPreferred& iReturnValue) {
115  //need to get our hands on the actual DataProxyProvider
116  bool foundProxyProvider = false;
117  for (auto const& recordProvider : iRecordProviders) {
118  std::set<ComponentDescription> components = recordProvider->proxyProviderDescriptions();
119  if (components.find(iComponent) != components.end()) {
120  std::shared_ptr<DataProxyProvider> proxyProv = recordProvider->proxyProvider(*(components.find(iComponent)));
121  assert(proxyProv.get());
122 
123  std::set<EventSetupRecordKey> records = proxyProv->usingRecords();
124  for (auto const& recordKey : records) {
125  unsigned int iovIndex = 0; // Doesn't matter which index is picked, at least 1 should always exist
126  DataProxyProvider::KeyedProxies& keyedProxies = proxyProv->keyedProxies(recordKey, iovIndex);
127  if (!keyedProxies.unInitialized()) {
128  //add them to our output
129  EventSetupRecordProvider::DataToPreferredProviderMap& dataToProviderMap = iReturnValue[recordKey];
130 
131  for (auto keyedProxy : keyedProxies) {
132  EventSetupRecordProvider::DataToPreferredProviderMap::iterator itFind =
133  dataToProviderMap.find(keyedProxy.dataKey_);
134  if (itFind != dataToProviderMap.end()) {
135  throw cms::Exception("ESPreferConflict")
136  << "Two providers have been set to be preferred for\n"
137  << keyedProxy.dataKey_.type().name() << " \"" << keyedProxy.dataKey_.name().value() << "\""
138  << "\n the providers are "
139  << "\n 1) type=" << itFind->second.type_ << " label=\"" << itFind->second.label_ << "\""
140  << "\n 2) type=" << iComponent.type_ << " label=\"" << iComponent.label_ << "\""
141  << "\nPlease modify configuration so only one is preferred";
142  }
143  dataToProviderMap.insert(std::make_pair(keyedProxy.dataKey_, iComponent));
144  }
145  }
146  }
147  foundProxyProvider = true;
148  break;
149  }
150  }
151  if (!foundProxyProvider) {
152  throw cms::Exception("ESPreferNoProvider")
153  << "Could not make type=\"" << iComponent.type_ << "\" label=\"" << iComponent.label_
154  << "\" a preferred Provider."
155  << "\n Please check spelling of name, or that it was loaded into the job.";
156  }
157  }
158 
160  using namespace edm::eventsetup;
162  for (auto const& itInfo : *preferredProviderInfo_) {
163  if (itInfo.second.empty()) {
164  //want everything
166  } else {
167  for (auto const& itRecData : itInfo.second) {
168  std::string recordName = itRecData.first;
170  if (recordKey.type() == eventsetup::EventSetupRecordKey::TypeTag()) {
171  throw cms::Exception("ESPreferUnknownRecord")
172  << "Unknown record \"" << recordName
173  << "\" used in es_prefer statement for type=" << itInfo.first.type_ << " label=\""
174  << itInfo.first.label_ << "\"\n Please check spelling.";
175  //record not found
176  }
177  //See if the ProxyProvider provides something for this Record
178  EventSetupRecordProvider& recordProviderForKey = *recordProvider(recordKey);
179 
180  std::set<ComponentDescription> components = recordProviderForKey.proxyProviderDescriptions();
181  std::set<ComponentDescription>::iterator itProxyProv = components.find(itInfo.first);
182  if (itProxyProv == components.end()) {
183  throw cms::Exception("ESPreferWrongRecord")
184  << "The type=" << itInfo.first.type_ << " label=\"" << itInfo.first.label_
185  << "\" does not provide data for the Record " << recordName;
186  }
187  //Does it data type exist?
188  eventsetup::TypeTag datumType = eventsetup::TypeTag::findType(itRecData.second.first);
189  if (datumType == eventsetup::TypeTag()) {
190  //not found
191  throw cms::Exception("ESPreferWrongDataType")
192  << "The es_prefer statement for type=" << itInfo.first.type_ << " label=\"" << itInfo.first.label_
193  << "\" has the unknown data type \"" << itRecData.second.first << "\""
194  << "\n Please check spelling";
195  }
196  eventsetup::DataKey datumKey(datumType, itRecData.second.second.c_str());
197 
198  //Does the proxyprovider make this?
199  std::shared_ptr<DataProxyProvider> proxyProv = recordProviderForKey.proxyProvider(*itProxyProv);
200  unsigned int iovIndex = 0; // Doesn't matter which index is picked, at least 1 should always exist
201  const DataProxyProvider::KeyedProxies& keyedProxies = proxyProv->keyedProxies(recordKey, iovIndex);
202  if (!keyedProxies.contains(datumKey)) {
203  throw cms::Exception("ESPreferWrongData")
204  << "The es_prefer statement for type=" << itInfo.first.type_ << " label=\"" << itInfo.first.label_
205  << "\" specifies the data item \n"
206  << " type=\"" << itRecData.second.first << "\" label=\"" << itRecData.second.second << "\""
207  << " which is not provided. Please check spelling.";
208  }
209 
211  (*recordToPreferred_)[recordKey];
212  //has another provider already been specified?
213  if (dataToProviderMap.end() != dataToProviderMap.find(datumKey)) {
214  EventSetupRecordProvider::DataToPreferredProviderMap::iterator itFind =
215  dataToProviderMap.find(datumKey);
216  throw cms::Exception("ESPreferConflict")
217  << "Two providers have been set to be preferred for\n"
218  << datumKey.type().name() << " \"" << datumKey.name().value() << "\""
219  << "\n the providers are "
220  << "\n 1) type=" << itFind->second.type_ << " label=\"" << itFind->second.label_ << "\""
221  << "\n 2) type=" << itProxyProv->type_ << " label=\"" << itProxyProv->label_ << "\""
222  << "\nPlease modify configuration so only one is preferred";
223  }
224  dataToProviderMap.insert(std::make_pair(datumKey, *itProxyProv));
225  }
226  }
227  }
228  }
229  }
230 
232  bool& hasNonconcurrentFinder) {
233  //we delayed adding finders to the system till here so that everything would be loaded first
234  recordToFinders_->clear();
235  for (auto& finder : *finders_) {
236  if (!finder->concurrentFinder()) {
237  hasNonconcurrentFinder = true;
238  }
239 
240  const std::set<EventSetupRecordKey> recordsUsing = finder->findingForRecords();
241 
242  for (auto const& key : recordsUsing) {
243  (*recordToFinders_)[key].push_back(finder);
244 
246  if (recProvider == nullptr) {
247  bool printInfoMsg = true;
248  unsigned int nConcurrentIOVs = numberOfConcurrentIOVs.numberOfConcurrentIOVs(key, printInfoMsg);
249 
250  //create a provider for this record
251  insert(key, std::make_unique<EventSetupRecordProvider>(key, activityRegistry_, nConcurrentIOVs));
252  recProvider = tryToGetRecordProvider(key);
253  }
254  recProvider->addFinder(finder);
255  }
256  }
257  //we've transfered our ownership so this is no longer needed
258  finders_.reset();
259 
260  //Now handle providers since sources can also be finders and the sources can delay registering
261  // their Records and therefore could delay setting up their Proxies
262  psetIDToRecordKey_->clear();
263  for (auto& dataProxyProvider : *dataProviders_) {
264  ParameterSetIDHolder psetID(dataProxyProvider->description().pid_);
265 
266  const std::set<EventSetupRecordKey> recordsUsing = dataProxyProvider->usingRecords();
267  for (auto const& key : recordsUsing) {
268  unsigned int nConcurrentIOVs = numberOfConcurrentIOVs.numberOfConcurrentIOVs(key);
269  dataProxyProvider->createKeyedProxies(key, nConcurrentIOVs);
270 
271  if (dataProxyProvider->description().isLooper_) {
272  recordsWithALooperProxy_->insert(key);
273  }
274 
275  (*psetIDToRecordKey_)[psetID].insert(key);
276 
278  if (recProvider == nullptr) {
279  bool printInfoMsg = true;
280  nConcurrentIOVs = numberOfConcurrentIOVs.numberOfConcurrentIOVs(key, printInfoMsg);
281  //create a provider for this record
282  insert(key, std::make_unique<EventSetupRecordProvider>(key, activityRegistry_, nConcurrentIOVs));
283  recProvider = tryToGetRecordProvider(key);
284  }
285  recProvider->add(dataProxyProvider);
286  }
287  }
288 
289  //used for the case where no preferred Providers have been specified for the Record
291 
293 
294  //For each Provider, find all the Providers it depends on. If a dependent Provider
295  // can not be found pass in an empty list
296  //CHANGE: now allow for missing Providers
297  for (auto& itRecordProvider : recordProviders_) {
298  const EventSetupRecordProvider::DataToPreferredProviderMap* preferredInfo = &kEmptyMap;
299  RecordToPreferred::const_iterator itRecordFound = recordToPreferred_->find(itRecordProvider->key());
300  if (itRecordFound != recordToPreferred_->end()) {
301  preferredInfo = &(itRecordFound->second);
302  }
303  //Give it our list of preferred
304  itRecordProvider->usePreferred(*preferredInfo);
305 
306  std::set<EventSetupRecordKey> records = itRecordProvider->dependentRecords();
307  if (!records.empty()) {
308  std::string missingRecords;
309  std::vector<std::shared_ptr<EventSetupRecordProvider>> depProviders;
310  depProviders.reserve(records.size());
311  bool foundAllProviders = true;
312  for (auto const& key : records) {
313  auto lb = std::lower_bound(recordKeys_.begin(), recordKeys_.end(), key);
314  if (lb == recordKeys_.end() || key != *lb) {
315  foundAllProviders = false;
316  if (missingRecords.empty()) {
317  missingRecords = key.name();
318  } else {
319  missingRecords += ", ";
320  missingRecords += key.name();
321  }
322  } else {
323  auto index = std::distance(recordKeys_.begin(), lb);
324  depProviders.push_back(recordProviders_[index]);
325  }
326  }
327 
328  if (!foundAllProviders) {
329  edm::LogInfo("EventSetupDependency")
330  << "The EventSetup record " << itRecordProvider->key().name() << " depends on at least one Record \n ("
331  << missingRecords
332  << ") which is not present in the job."
333  "\n This may lead to an exception begin thrown during event processing.\n If no exception occurs "
334  "during the job than it is usually safe to ignore this message.";
335 
336  //depProviders.clear();
337  //NOTE: should provide a warning
338  }
339 
340  itRecordProvider->setDependentProviders(depProviders);
341  }
342  }
343 
345  for (auto& provider : *dataProviders_) {
346  provider->updateLookup(indices);
347  }
348  dataProviders_.reset();
349 
350  mustFinishConfiguration_ = false;
351  }
352 
353  using Itr = RecordProviders::iterator;
354  static void findDependents(const EventSetupRecordKey& iKey,
355  Itr itBegin,
356  Itr itEnd,
357  std::vector<std::shared_ptr<EventSetupRecordProvider>>& oDependents) {
358  for (Itr it = itBegin; it != itEnd; ++it) {
359  //does it depend on the record in question?
360  const std::set<EventSetupRecordKey>& deps = (*it)->dependentRecords();
361  if (deps.end() != deps.find(iKey)) {
362  oDependents.push_back(*it);
363  //now see who is dependent on this record since they will be indirectly dependent on iKey
364  findDependents((*it)->key(), itBegin, itEnd, oDependents);
365  }
366  }
367  }
368 
371  if (recProvider == nullptr) {
372  return;
373  }
374 
375  std::vector<std::shared_ptr<EventSetupRecordProvider>> dependents;
376  findDependents(iKey, recordProviders_.begin(), recordProviders_.end(), dependents);
377 
378  dependents.erase(std::unique(dependents.begin(), dependents.end()), dependents.end());
379 
380  recProvider->resetProxies();
381  for (auto& d : dependents) {
382  d->resetProxies();
383  }
384  }
385 
387  for (auto& recProvider : recordProviders_) {
388  if (recProvider) {
389  recProvider->resetProxies();
390  }
391  }
392  }
393 
395  EventSetupProvider& precedingESProvider,
396  std::set<ParameterSetIDHolder>& sharingCheckDone,
397  std::map<EventSetupRecordKey, std::vector<ComponentDescription const*>>& referencedESProducers,
398  EventSetupsController& esController) {
399  edm::LogVerbatim("EventSetupSharing")
400  << "EventSetupProvider::checkESProducerSharing: Checking processes with SubProcess Indexes "
401  << subProcessIndex() << " and " << precedingESProvider.subProcessIndex();
402 
403  if (referencedESProducers.empty()) {
404  for (auto& recProvider : recordProviders_) {
405  recProvider->getReferencedESProducers(referencedESProducers);
406  }
407  }
408 
409  // This records whether the configurations of all the DataProxyProviders
410  // and finders matches for a particular pair of processes and
411  // a particular record and also the records it depends on.
412  std::map<EventSetupRecordKey, bool> allComponentsMatch;
413 
414  std::map<ParameterSetID, bool> candidateNotRejectedYet;
415 
416  // Loop over all the ESProducers which have a DataProxy
417  // referenced by any EventSetupRecord in this EventSetupProvider
418  for (auto const& iRecord : referencedESProducers) {
419  for (auto const& iComponent : iRecord.second) {
420  ParameterSetID const& psetID = iComponent->pid_;
421  ParameterSetIDHolder psetIDHolder(psetID);
422  if (sharingCheckDone.find(psetIDHolder) != sharingCheckDone.end())
423  continue;
424 
425  bool firstProcessWithThisPSet = false;
426  bool precedingHasMatchingPSet = false;
427 
428  esController.lookForMatches(psetID,
430  precedingESProvider.subProcessIndex_,
431  firstProcessWithThisPSet,
432  precedingHasMatchingPSet);
433 
434  if (firstProcessWithThisPSet) {
435  sharingCheckDone.insert(psetIDHolder);
436  allComponentsMatch[iRecord.first] = false;
437  continue;
438  }
439 
440  if (!precedingHasMatchingPSet) {
441  allComponentsMatch[iRecord.first] = false;
442  continue;
443  }
444 
445  // An ESProducer that survives to this point is a candidate.
446  // It was shared with some other process in the first pass where
447  // ESProducers were constructed and one of three possibilities exists:
448  // 1) It should not have been shared and a new ESProducer needs
449  // to be created and the proper pointers set.
450  // 2) It should have been shared with a different preceding process
451  // in which case some pointers need to be modified.
452  // 3) It was originally shared which the correct prior process
453  // in which case nothing needs to be done, but we do need to
454  // do some work to verify that.
455  // Make an entry in a map for each of these ESProducers. We
456  // will set the value to false if and when we determine
457  // the ESProducer cannot be shared between this pair of processes.
458  auto iCandidateNotRejectedYet = candidateNotRejectedYet.find(psetID);
459  if (iCandidateNotRejectedYet == candidateNotRejectedYet.end()) {
460  candidateNotRejectedYet[psetID] = true;
461  iCandidateNotRejectedYet = candidateNotRejectedYet.find(psetID);
462  }
463 
464  // At this point we know that the two processes both
465  // have an ESProducer matching the type and label in
466  // iComponent and also with exactly the same configuration.
467  // And there was not an earlier preceding process
468  // where the same instance of the ESProducer could
469  // have been shared. And this ESProducer was referenced
470  // by the later process's EventSetupRecord (preferred or
471  // or just the only thing that could have made the data).
472  // To determine if sharing is allowed, now we need to
473  // check if all the DataProxyProviders and all the
474  // finders are the same for this record and also for
475  // all records this record depends on. And even
476  // if this is true, we have to wait until the loop
477  // ends because some other DataProxy associated with
478  // the ESProducer could write to a different record where
479  // the same determination will need to be repeated. Only if
480  // all of the the DataProxy's can be shared, can the ESProducer
481  // instance be shared across processes.
482 
483  if (iCandidateNotRejectedYet->second == true) {
484  auto iAllComponentsMatch = allComponentsMatch.find(iRecord.first);
485  if (iAllComponentsMatch == allComponentsMatch.end()) {
486  // We do not know the value in AllComponents yet and
487  // we need it now so we have to do the difficult calculation
488  // now.
489  bool match = doRecordsMatch(precedingESProvider, iRecord.first, allComponentsMatch, esController);
490  allComponentsMatch[iRecord.first] = match;
491  iAllComponentsMatch = allComponentsMatch.find(iRecord.first);
492  }
493  if (!iAllComponentsMatch->second) {
494  iCandidateNotRejectedYet->second = false;
495  }
496  }
497  } // end loop over components used by record
498  } // end loop over records
499 
500  // Loop over candidates
501  for (auto const& candidate : candidateNotRejectedYet) {
502  ParameterSetID const& psetID = candidate.first;
503  bool canBeShared = candidate.second;
504  if (canBeShared) {
505  ParameterSet const& pset = *esController.getESProducerPSet(psetID, subProcessIndex_);
507  ParameterSetIDHolder psetIDHolder(psetID);
508  sharingCheckDone.insert(psetIDHolder);
509  if (esController.isFirstMatch(psetID, subProcessIndex_, precedingESProvider.subProcessIndex_)) {
510  continue; // Proper sharing was already done. Nothing more to do.
511  }
512 
513  // Need to reset the pointer from the EventSetupRecordProvider to the
514  // the DataProxyProvider so these two processes share an ESProducer.
515 
516  std::shared_ptr<DataProxyProvider> dataProxyProvider;
517  std::set<EventSetupRecordKey> const& keysForPSetID1 = (*precedingESProvider.psetIDToRecordKey_)[psetIDHolder];
518  for (auto const& key : keysForPSetID1) {
519  dataProxyProvider = precedingESProvider.recordProvider(key)->proxyProvider(psetIDHolder);
520  assert(dataProxyProvider);
521  break;
522  }
523 
524  std::set<EventSetupRecordKey> const& keysForPSetID2 = (*psetIDToRecordKey_)[psetIDHolder];
525  for (auto const& key : keysForPSetID2) {
526  recordProvider(key)->resetProxyProvider(psetIDHolder, dataProxyProvider);
527  }
528  } else {
529  if (esController.isLastMatch(psetID, subProcessIndex_, precedingESProvider.subProcessIndex_)) {
530  ParameterSet const& pset = *esController.getESProducerPSet(psetID, subProcessIndex_);
531  ModuleFactory::get()->addTo(esController, *this, pset, true);
532  }
533  }
534  }
535  }
536 
538  EventSetupRecordKey const& eventSetupRecordKey,
539  std::map<EventSetupRecordKey, bool>& allComponentsMatch,
540  EventSetupsController const& esController) {
541  // first check if this record matches. If not just return false
542 
543  // then find the directly dependent records and iterate over them
544  // recursively call this function on them. If they return false
545  // set allComponentsMatch to false for them and return false.
546  // if they all return true then set allComponents to true
547  // and return true.
548 
549  if (precedingESProvider.recordsWithALooperProxy_->find(eventSetupRecordKey) !=
550  precedingESProvider.recordsWithALooperProxy_->end()) {
551  return false;
552  }
553 
554  if ((*recordToFinders_)[eventSetupRecordKey].size() !=
555  (*precedingESProvider.recordToFinders_)[eventSetupRecordKey].size()) {
556  return false;
557  }
558 
559  for (auto const& finder : (*recordToFinders_)[eventSetupRecordKey]) {
560  ParameterSetID const& psetID = finder->descriptionForFinder().pid_;
561  bool itMatches =
562  esController.isMatchingESSource(psetID, subProcessIndex_, precedingESProvider.subProcessIndex_);
563  if (!itMatches) {
564  return false;
565  }
566  }
567 
568  fillReferencedDataKeys(eventSetupRecordKey);
569  precedingESProvider.fillReferencedDataKeys(eventSetupRecordKey);
570 
571  std::map<DataKey, ComponentDescription const*> const& dataItems = (*referencedDataKeys_)[eventSetupRecordKey];
572 
573  std::map<DataKey, ComponentDescription const*> const& precedingDataItems =
574  (*precedingESProvider.referencedDataKeys_)[eventSetupRecordKey];
575 
576  if (dataItems.size() != precedingDataItems.size()) {
577  return false;
578  }
579 
580  for (auto const& dataItem : dataItems) {
581  auto precedingDataItem = precedingDataItems.find(dataItem.first);
582  if (precedingDataItem == precedingDataItems.end()) {
583  return false;
584  }
585  if (dataItem.second->pid_ != precedingDataItem->second->pid_) {
586  return false;
587  }
588  // Check that the configurations match exactly for the ESProducers
589  // (We already checked the ESSources above and there should not be
590  // any loopers)
591  if (!dataItem.second->isSource_ && !dataItem.second->isLooper_) {
592  bool itMatches = esController.isMatchingESProducer(
593  dataItem.second->pid_, subProcessIndex_, precedingESProvider.subProcessIndex_);
594  if (!itMatches) {
595  return false;
596  }
597  }
598  }
599  EventSetupRecordProvider* recProvider = tryToGetRecordProvider(eventSetupRecordKey);
600  if (recProvider != nullptr) {
601  std::set<EventSetupRecordKey> dependentRecords = recProvider->dependentRecords();
602  for (auto const& dependentRecord : dependentRecords) {
603  auto iter = allComponentsMatch.find(dependentRecord);
604  if (iter != allComponentsMatch.end()) {
605  if (iter->second) {
606  continue;
607  } else {
608  return false;
609  }
610  }
611  bool match = doRecordsMatch(precedingESProvider, dependentRecord, allComponentsMatch, esController);
612  allComponentsMatch[dependentRecord] = match;
613  if (!match)
614  return false;
615  }
616  }
617  return true;
618  }
619 
621  if (referencedDataKeys_->find(eventSetupRecordKey) != referencedDataKeys_->end())
622  return;
623 
624  EventSetupRecordProvider* recProvider = tryToGetRecordProvider(eventSetupRecordKey);
625  if (recProvider == nullptr) {
626  (*referencedDataKeys_)[eventSetupRecordKey];
627  return;
628  }
629  recProvider->fillReferencedDataKeys((*referencedDataKeys_)[eventSetupRecordKey]);
630  }
631 
633  for (auto const& recProvider : recordProviders_) {
635  const EventSetupRecordProvider::DataToPreferredProviderMap* preferredInfo = &kEmptyMap;
636  RecordToPreferred::const_iterator itRecordFound = recordToPreferred_->find(recProvider->key());
637  if (itRecordFound != recordToPreferred_->end()) {
638  preferredInfo = &(itRecordFound->second);
639  }
640  recProvider->resetRecordToProxyPointers(*preferredInfo);
641  }
642  }
643 
645  preferredProviderInfo_.reset();
646  referencedDataKeys_.reset();
647  recordToFinders_.reset();
648  psetIDToRecordKey_.reset();
649  recordToPreferred_.reset();
650  recordsWithALooperProxy_.reset();
651  }
652 
654  std::set<EventSetupRecordKey>& recordsNotAllowingConcurrentIOVs) const {
655  for (auto const& dataProxyProvider : *dataProviders_) {
656  dataProxyProvider->fillRecordsNotAllowingConcurrentIOVs(recordsNotAllowingConcurrentIOVs);
657  }
658  }
659 
661  // First loop sets a flag that helps us to not duplicate calls to the
662  // same EventSetupRecordProvider setting the IOVs. Dependent records
663  // can cause duplicate calls without this protection.
664  for (auto& recProvider : recordProviders_) {
665  recProvider->initializeForNewSyncValue();
666  }
667 
668  for (auto& recProvider : recordProviders_) {
669  recProvider->setValidityIntervalFor(iValue);
670  }
671  }
672 
673  std::shared_ptr<const EventSetupImpl> EventSetupProvider::eventSetupForInstance(const IOVSyncValue& iValue,
674  bool& newEventSetupImpl) {
675  using IntervalStatus = EventSetupRecordProvider::IntervalStatus;
676 
677  // It is important to understand that eventSetupForInstance is a function
678  // where only one call is executing at a time (not multiple calls running
679  // concurrently). These calls are made in the order determined by the
680  // InputSource. One invocation completes and returns before another starts.
681 
682  bool needNewEventSetupImpl = false;
683  if (eventSetupImpl_.get() == nullptr) {
684  needNewEventSetupImpl = true;
685  } else {
686  for (auto& recProvider : recordProviders_) {
687  if (recProvider->intervalStatus() == IntervalStatus::Invalid) {
688  if (eventSetupImpl_->validRecord(recProvider->key())) {
689  needNewEventSetupImpl = true;
690  }
691  } else {
692  if (recProvider->newIntervalForAnySubProcess()) {
693  needNewEventSetupImpl = true;
694  }
695  }
696  }
697  }
698 
699  if (needNewEventSetupImpl) {
700  //cannot use make_shared because constructor is private
701  eventSetupImpl_ = std::shared_ptr<EventSetupImpl>(new EventSetupImpl(taskArena_));
702  newEventSetupImpl = true;
703  eventSetupImpl_->setKeyIters(recordKeys_.begin(), recordKeys_.end());
704 
705  for (auto& recProvider : recordProviders_) {
706  recProvider->setEventSetupImpl(eventSetupImpl_.get());
707  }
708  }
710  }
711 
713  for (auto& recProvider : recordProviders_) {
714  if (recProvider->doWeNeedToWaitForIOVsToFinish(iValue)) {
715  return true;
716  }
717  }
718  return false;
719  }
720 
721  std::set<ComponentDescription> EventSetupProvider::proxyProviderDescriptions() const {
722  typedef std::set<ComponentDescription> Set;
723  Set descriptions;
724 
725  for (auto const& recProvider : recordProviders_) {
726  auto const& d = recProvider->proxyProviderDescriptions();
727  descriptions.insert(d.begin(), d.end());
728  }
729  if (dataProviders_.get()) {
730  for (auto const& p : *dataProviders_) {
731  descriptions.insert(p->description());
732  }
733  }
734 
735  return descriptions;
736  }
737 
739  insert(iKey, std::unique_ptr<EventSetupRecordProvider>());
740  eventSetupImpl_->setKeyIters(recordKeys_.begin(), recordKeys_.end());
741  }
742 
744  preferredProviderInfo_ = std::make_unique<PreferredProviderInfo>(iInfo);
745  }
746 
747  void EventSetupProvider::fillKeys(std::set<EventSetupRecordKey>& keys) const {
748  for (auto const& recProvider : recordProviders_) {
749  keys.insert(recProvider->key());
750  }
751  }
752 
755 
756  unsigned int index = 0;
757  for (const auto& provider : recordProviders_) {
758  index = ret.dataKeysInRecord(
759  index, provider->key(), provider->registeredDataKeys(), provider->componentsForRegisteredDataKeys());
760  }
761 
762  return ret;
763  }
764 
765  //
766  // static member functions
767  //
769  std::string edmtype = iConfiguration.getParameter<std::string>("@module_edm_type");
770  std::string modtype = iConfiguration.getParameter<std::string>("@module_type");
771  std::string label = iConfiguration.getParameter<std::string>("@module_label");
772  edm::LogVerbatim("EventSetupSharing")
773  << "Sharing " << edmtype << ": class=" << modtype << " label='" << label << "'";
774  }
775 
776  } // namespace eventsetup
777 } // namespace edm
edm::eventsetup::DataProxyProvider
Definition: DataProxyProvider.h:64
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:542
bTagCombinedSVVariables_cff.indices
indices
Definition: bTagCombinedSVVariables_cff.py:67
edm::eventsetup::heterocontainer::HCTypeTag::findType
static HCTypeTag findType(char const *iTypeName)
find a type based on the types name, if not found will return default HCTypeTag
Definition: HCTypeTag.cc:121
edm::eventsetup::EventSetupRecordProvider::resetProxies
void resetProxies()
This will clear the cache's of all the Proxies so that next time they are called they will run.
Definition: EventSetupRecordProvider.cc:215
edm::eventsetup::DataProxyProvider::KeyedProxies::contains
bool contains(DataKey const &dataKey) const
Definition: DataProxyProvider.cc:76
MessageLogger.h
edm::eventsetup::ESRecordsToProxyIndices
Definition: ESRecordsToProxyIndices.h:35
EventSetupProvider.h
edm::eventsetup::EventSetupProvider::tryToGetRecordProvider
EventSetupRecordProvider * tryToGetRecordProvider(const EventSetupRecordKey &iKey)
Definition: EventSetupProvider.cc:70
HLT_FULL_cff.finder
finder
Definition: HLT_FULL_cff.py:51931
edm::EventSetupImpl
Definition: EventSetupImpl.h:49
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::eventsetup::EventSetupProvider::logInfoWhenSharing
static void logInfoWhenSharing(ParameterSet const &iConfiguration)
Definition: EventSetupProvider.cc:768
align_cfg.recordName
recordName
Definition: align_cfg.py:66
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::eventsetup::EventSetupRecordProvider::add
void add(std::shared_ptr< DataProxyProvider >)
Definition: EventSetupRecordProvider.cc:54
EventSetupImpl.h
edm::eventsetup::DataProxyProvider::KeyedProxies::unInitialized
bool unInitialized() const
Definition: DataProxyProvider.cc:38
Algorithms.h
cms::cuda::assert
assert(be >=bs)
edm::eventsetup::EventSetupProvider::PreferredProviderInfo
std::map< ComponentDescription, RecordToDataMap > PreferredProviderInfo
Definition: EventSetupProvider.h:57
edm::eventsetup::EventSetupProvider::finishConfiguration
void finishConfiguration(NumberOfConcurrentIOVs const &, bool &hasNonconcurrentFinder)
Definition: EventSetupProvider.cc:231
edm::eventsetup::DataKey
Definition: DataKey.h:29
relativeConstraints.keys
keys
Definition: relativeConstraints.py:89
edm::get_underlying_safe
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:41
ESRecordsToProxyIndices.h
EventSetupsController.h
edm::eventsetup::EventSetupProvider::psetIDToRecordKey_
std::unique_ptr< std::map< ParameterSetIDHolder, std::set< EventSetupRecordKey > > > psetIDToRecordKey_
Definition: EventSetupProvider.h:153
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
edm::eventsetup::DataProxyProvider::KeyedProxies
Definition: DataProxyProvider.h:73
edm::eventsetup::EventSetupProvider::replaceExisting
void replaceExisting(std::shared_ptr< DataProxyProvider >)
Definition: EventSetupProvider.cc:96
watchdog.const
const
Definition: watchdog.py:83
edm::eventsetup::EventSetupProvider::recordProviders_
RecordProviders recordProviders_
Definition: EventSetupProvider.h:136
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
edm::eventsetup::ComponentDescription::label_
std::string label_
Definition: ComponentDescription.h:31
edm::eventsetup::EventSetupProvider::resetRecordPlusDependentRecords
void resetRecordPlusDependentRecords(EventSetupRecordKey const &)
Used when we need to force a Record to reset all its proxies.
Definition: EventSetupProvider.cc:369
edm::eventsetup::preferEverything
static void preferEverything(const ComponentDescription &iComponent, const RecordProviders &iRecordProviders, RecordToPreferred &iReturnValue)
find everything made by a DataProxyProvider and add it to the 'preferred' list
Definition: EventSetupProvider.cc:112
edm::eventsetup::EventSetupsController::isLastMatch
bool isLastMatch(ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const
Definition: EventSetupsController.cc:264
edm::eventsetup::ComponentFactory::get
static ComponentFactory< T > const * get()
EventSetupRecord.h
edm::eventsetup::EventSetupsController::getESProducerPSet
ParameterSet const * getESProducerPSet(ParameterSetID const &psetID, unsigned subProcessIndex) const
Definition: EventSetupsController.cc:339
edm::eventsetup::EventSetupProvider::doRecordsMatch
bool doRecordsMatch(EventSetupProvider &precedingESProvider, EventSetupRecordKey const &eventSetupRecordKey, std::map< EventSetupRecordKey, bool > &allComponentsMatch, EventSetupsController const &esController)
Definition: EventSetupProvider.cc:537
edm::eventsetup::EventSetupsController::lookForMatches
void lookForMatches(ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex, bool &firstProcessWithThisPSet, bool &precedingHasMatchingPSet) const
Definition: EventSetupsController.cc:205
edm::eventsetup::EventSetupProvider::fillKeys
void fillKeys(std::set< EventSetupRecordKey > &keys) const
Definition: EventSetupProvider.cc:747
edm::eventsetup::EventSetupRecordProvider
Definition: EventSetupRecordProvider.h:47
edm::eventsetup::ComponentDescription::type_
std::string type_
Definition: ComponentDescription.h:32
edm::eventsetup::EventSetupProvider::doWeNeedToWaitForIOVsToFinish
bool doWeNeedToWaitForIOVsToFinish(IOVSyncValue const &) const
Definition: EventSetupProvider.cc:712
edm::eventsetup::EventSetupProvider::recordKeys_
RecordKeys recordKeys_
Definition: EventSetupProvider.h:133
edm::eventsetup::EventSetupProvider::determinePreferred
void determinePreferred()
Definition: EventSetupProvider.cc:159
edm::eventsetup::EventSetupProvider::eventSetupForInstance
std::shared_ptr< const EventSetupImpl > eventSetupForInstance(IOVSyncValue const &, bool &newEventSetupImpl)
Definition: EventSetupProvider.cc:673
DataProxyProvider.h
edm::eventsetup::EventSetupProvider
Definition: EventSetupProvider.h:50
edm::eventsetup::EventSetupProvider::activityRegistry_
ActivityRegistry const * activityRegistry_
Definition: EventSetupProvider.h:138
edm::eventsetup::EventSetupProvider::referencedDataKeys_
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription const * > > > referencedDataKeys_
Definition: EventSetupProvider.h:150
edm::eventsetup::findDependents
static void findDependents(const EventSetupRecordKey &iKey, Itr itBegin, Itr itEnd, std::vector< std::shared_ptr< EventSetupRecordProvider >> &oDependents)
Definition: EventSetupProvider.cc:354
edm::ActivityRegistry
Definition: ActivityRegistry.h:134
edm::eventsetup::EventSetupRecordProvider::IntervalStatus
IntervalStatus
Definition: EventSetupRecordProvider.h:49
edm::Hash< ParameterSetType >
edm::eventsetup::EventSetupRecordKey::TypeTag
heterocontainer::HCTypeTag TypeTag
Definition: EventSetupRecordKey.h:32
edm::eventsetup::EventSetupProvider::checkESProducerSharing
void checkESProducerSharing(EventSetupProvider &precedingESProvider, std::set< ParameterSetIDHolder > &sharingCheckDone, std::map< EventSetupRecordKey, std::vector< ComponentDescription const * >> &referencedESProducers, EventSetupsController &esController)
Definition: EventSetupProvider.cc:394
edm::eventsetup::EventSetupRecordProvider::fillReferencedDataKeys
void fillReferencedDataKeys(std::map< DataKey, ComponentDescription const * > &referencedDataKeys) const
Definition: EventSetupRecordProvider.cc:234
edm::eventsetup::EventSetupProvider::subProcessIndex_
unsigned subProcessIndex_
Definition: EventSetupProvider.h:142
EventSetupRecordProvider.h
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
edm::eventsetup::RecordProviders
std::vector< std::shared_ptr< EventSetupRecordProvider > > RecordProviders
Definition: EventSetupProvider.cc:109
edm::eventsetup::EventSetupProvider::forceCacheClear
void forceCacheClear()
Used when testing that all code properly updates on IOV changes of all Records.
Definition: EventSetupProvider.cc:386
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::eventsetup::ComponentDescription
Definition: ComponentDescription.h:30
funct::true
true
Definition: Factorize.h:173
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
edm::eventsetup::NumberOfConcurrentIOVs
Definition: NumberOfConcurrentIOVs.h:35
edm::ParameterSet
Definition: ParameterSet.h:47
edm::eventsetup::EventSetupProvider::fillRecordsNotAllowingConcurrentIOVs
void fillRecordsNotAllowingConcurrentIOVs(std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
Definition: EventSetupProvider.cc:653
edm::eventsetup::EventSetupsController::isMatchingESSource
bool isMatchingESSource(ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const
Definition: EventSetupsController.cc:289
edm::eventsetup::EventSetupProvider::recordToFinders_
std::unique_ptr< std::map< EventSetupRecordKey, std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > > recordToFinders_
Definition: EventSetupProvider.h:152
edm::eventsetup::EventSetupProvider::proxyProviderDescriptions
std::set< ComponentDescription > proxyProviderDescriptions() const
Definition: EventSetupProvider.cc:721
edm::eventsetup::EventSetupProvider::recordsWithALooperProxy_
std::unique_ptr< std::set< EventSetupRecordKey > > recordsWithALooperProxy_
Definition: EventSetupProvider.h:155
edm::eventsetup::EventSetupProvider::recordToPreferred_
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription > > > recordToPreferred_
Definition: EventSetupProvider.h:154
edm::eventsetup::EventSetupProvider::dataProviders_
std::unique_ptr< std::vector< std::shared_ptr< DataProxyProvider > > > dataProviders_
Definition: EventSetupProvider.h:149
edm::eventsetup::EventSetupRecordProvider::addFinder
void addFinder(std::shared_ptr< EventSetupRecordIntervalFinder >)
For now, only use one finder.
Definition: EventSetupRecordProvider.cc:61
edm::eventsetup::heterocontainer::HCTypeTag
Definition: HCTypeTag.h:38
edm::eventsetup::EventSetupProvider::insert
void insert(EventSetupRecordKey const &, std::unique_ptr< EventSetupRecordProvider >)
Definition: EventSetupProvider.cc:79
edm::eventsetup::EventSetupRecordKey::type
const TypeTag & type() const
Definition: EventSetupRecordKey.h:40
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::eventsetup::EventSetupsController::isMatchingESProducer
bool isMatchingESProducer(ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const
Definition: EventSetupsController.cc:314
ParameterSetIDHolder.h
edm::eventsetup::EventSetupProvider::eventSetupImpl_
propagate_const< std::shared_ptr< EventSetupImpl > > eventSetupImpl_
Definition: EventSetupProvider.h:143
Invalid
Definition: hltDiff.cc:247
edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions
std::set< ComponentDescription > proxyProviderDescriptions() const
return information on which DataProxyProviders are supplying information
Definition: EventSetupRecordProvider.cc:256
edm::eventsetup::EventSetupsController
Definition: EventSetupsController.h:80
edm::eventsetup::NumberOfConcurrentIOVs::numberOfConcurrentIOVs
unsigned int numberOfConcurrentIOVs(EventSetupRecordKey const &, bool printInfoMsg=false) const
Definition: NumberOfConcurrentIOVs.cc:47
edm::eventsetup::EventSetupProvider::setPreferredProviderInfo
void setPreferredProviderInfo(PreferredProviderInfo const &iInfo)
Definition: EventSetupProvider.cc:743
edm::eventsetup::EventSetupProvider::add
void add(std::shared_ptr< DataProxyProvider >)
Definition: EventSetupProvider.cc:91
edm::eventsetup::ParameterSetIDHolder
Definition: ParameterSetIDHolder.h:12
ModuleFactory.h
edm::eventsetup::EventSetupProvider::setAllValidityIntervals
void setAllValidityIntervals(const IOVSyncValue &iValue)
Set the validity intervals in all EventSetupRecordProviders.
Definition: EventSetupProvider.cc:660
edm::eventsetup::RecordToPreferred
std::map< EventSetupRecordKey, EventSetupRecordProvider::DataToPreferredProviderMap > RecordToPreferred
Definition: EventSetupProvider.cc:110
edm::eventsetup::EventSetupRecordProvider::DataToPreferredProviderMap
std::map< DataKey, ComponentDescription > DataToPreferredProviderMap
Definition: EventSetupRecordProvider.h:51
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
edm::eventsetup::EventSetupRecordProvider::dependentRecords
std::set< EventSetupRecordKey > dependentRecords() const
Returns the list of Records the provided Record depends on (usually none)
Definition: EventSetupRecordProvider.cc:254
edm::match
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)
Definition: BranchDescription.cc:351
tier0.unique
def unique(seq, keepstr=True)
Definition: tier0.py:24
edm::eventsetup::EventSetupProvider::subProcessIndex
unsigned subProcessIndex() const
Definition: EventSetupProvider.h:110
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
edm::eventsetup::EventSetupProvider::resetRecordToProxyPointers
void resetRecordToProxyPointers()
Definition: EventSetupProvider.cc:632
makeMuonMisalignmentScenario.components
string components
Definition: makeMuonMisalignmentScenario.py:58
edm::eventsetup::EventSetupProvider::~EventSetupProvider
~EventSetupProvider()
Definition: EventSetupProvider.cc:58
Exception
Definition: hltDiff.cc:245
edm::eventsetup::EventSetupProvider::recordsToProxyIndices
ESRecordsToProxyIndices recordsToProxyIndices() const
Definition: EventSetupProvider.cc:753
edm::eventsetup::EventSetupRecordProvider::proxyProvider
std::shared_ptr< DataProxyProvider > proxyProvider(ComponentDescription const &)
returns the first matching DataProxyProvider or a 'null' if not found
Definition: EventSetupRecordProvider.cc:266
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::eventsetup::EventSetupsController::isFirstMatch
bool isFirstMatch(ParameterSetID const &psetID, unsigned subProcessIndex, unsigned precedingProcessIndex) const
Definition: EventSetupsController.cc:239
Exception.h
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::eventsetup::EventSetupProvider::mustFinishConfiguration_
bool mustFinishConfiguration_
Definition: EventSetupProvider.h:141
ztail.d
d
Definition: ztail.py:151
edm::eventsetup::EventSetupProvider::fillReferencedDataKeys
void fillReferencedDataKeys(EventSetupRecordKey const &eventSetupRecordKey)
Definition: EventSetupProvider.cc:620
WaitingTaskList.h
genParticles_cff.map
map
Definition: genParticles_cff.py:11
edm::eventsetup::EventSetupProvider::addRecord
void addRecord(const EventSetupRecordKey &iKey)
Intended for use only in tests.
Definition: EventSetupProvider.cc:738
ParameterSet.h
edm::eventsetup::EventSetupProvider::finders_
std::unique_ptr< std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > finders_
Definition: EventSetupProvider.h:148
symbols.deps
deps
Definition: symbols.py:55
edm::eventsetup::EventSetupProvider::taskArena_
tbb::task_arena * taskArena_
Definition: EventSetupProvider.h:139
edm::eventsetup
Definition: ES_DDDetector.cc:16
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733
crabWrapper.key
key
Definition: crabWrapper.py:19
NumberOfConcurrentIOVs.h
edm::eventsetup::EventSetupProvider::preferredProviderInfo_
std::unique_ptr< PreferredProviderInfo > preferredProviderInfo_
Definition: EventSetupProvider.h:147
label
const char * label
Definition: PFTauDecayModeTools.cc:11
edm::eventsetup::EventSetupProvider::EventSetupProvider
EventSetupProvider(ActivityRegistry const *, tbb::task_arena *, unsigned subProcessIndex=0U, PreferredProviderInfo const *iInfo=nullptr)
Definition: EventSetupProvider.cc:40
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::eventsetup::Itr
RecordProviders::iterator Itr
Definition: EventSetupProvider.cc:353
edm::eventsetup::EventSetupProvider::recordProvider
std::shared_ptr< EventSetupRecordProvider > & recordProvider(const EventSetupRecordKey &iKey)
Definition: EventSetupProvider.cc:60
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
edm::eventsetup::EventSetupProvider::clearInitializationData
void clearInitializationData()
Definition: EventSetupProvider.cc:644