39 m_printProviders(iPS.getUntrackedParameter<bool>(
"printProviders"))
63 desc.
addUntracked<
bool>(
"printProviders",
false)->setComment(
64 "If 'true' also print which ES module provides the data");
65 desc.
addUntracked<
bool>(
"checkAfterBeginRun",
false)->setComment(
66 "If 'true' check for retrieved data after each begin run is processed");
67 desc.
addUntracked<
bool>(
"checkAfterBeginLumi",
false)->setComment(
68 "If 'true' check for retrieved data after each begin lumi is processed");
69 desc.
addUntracked<
bool>(
"checkAfterEvent",
true)->setComment(
70 "If 'true' check for retrieved data after an event is processed");
71 descriptions.
add(
"PrintEventSetupDataRetrieval", desc);
72 descriptions.
setComment(
"This service reports when EventSetup data is retrieved by a module in the job.");
110 for(std::vector<eventsetup::EventSetupRecordKey>::const_iterator it =
m_recordKeys.begin(), itEnd =
m_recordKeys.end();
119 itRetrievedData =
m_retrievedDataMap.insert(std::make_pair(*it,std::pair<
unsigned long long, std::map<eventsetup::DataKey,bool> >())).first;
121 std::vector<eventsetup::DataKey>
keys;
123 for(std::vector<eventsetup::DataKey>::const_iterator itData = keys.begin(), itDataEnd = keys.end();
126 itRetrievedData->second.second.insert(std::make_pair(*itData,
false));
132 for(std::map<eventsetup::DataKey,bool>::iterator itDatum = retrievedData.second.second.begin(), itDatumEnd = retrievedData.second.second.end();
133 itDatum != itDatumEnd;
135 itDatum->second =
false;
139 for(std::map<eventsetup::DataKey,bool>::iterator itDatum = retrievedData.second.second.begin(), itDatumEnd = retrievedData.second.second.end();
140 itDatum != itDatumEnd;
142 bool wasGotten = r->
wasGotten(itDatum->first);
144 if(wasGotten != itDatum->second) {
145 itDatum->second = wasGotten;
149 edm::LogSystem(
"PrintEventSetupDataRetrieval")<<
"Retrieved> Record:"<<it->name()<<
" data:"<<itDatum->first.type().name()<<
" '"<<itDatum->first.name().value()
152 edm::LogSystem(
"PrintEventSetupDataRetrieval")<<
"Retrieved> Record:"<<it->name()<<
" data:"<<itDatum->first.type().name()<<
" '"<<itDatum->first.name().value()<<
"'";
void watchPostBeginRun(PostBeginRun::slot_type const &iSlot)
unsigned long long cacheIdentifier() const
T getUntrackedParameter(std::string const &, T const &) const
void fillRegisteredDataKeys(std::vector< DataKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all registered data keys ...
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
bool wasGotten(DataKey const &aKey) const
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
ComponentDescription const * providerDescription(DataKey const &aKey) const
RetrievedDataMap m_retrievedDataMap
void watchPostProcessEvent(PostProcessEvent::slot_type const &iSlot)
std::vector< eventsetup::EventSetupRecordKey > m_recordKeys
void postBeginLumi(LuminosityBlock const &, EventSetup const &)
void postBeginRun(Run const &, EventSetup const &)
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records ...
PrintEventSetupDataRetrieval(const ParameterSet &, ActivityRegistry &)
void watchPostBeginLumi(PostBeginLumi::slot_type const &iSlot)
Container::value_type value_type
void postProcessEvent(Event const &, EventSetup const &)
void setComment(std::string const &value)
void check(EventSetup const &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)