79 : printProviders_(
config.getUntrackedParameter<
bool>(
"printProviders")),
80 compact_(
config.getUntrackedParameter<
bool>(
"compact")) {
106 typedef std::vector<eventsetup::EventSetupRecordKey> Records;
107 typedef std::vector<eventsetup::DataKey> Data;
112 std::unique_ptr<LogSystem>
msg;
114 for (Records::iterator itrecords = records.begin(), itrecordsend = records.end(); itrecords != itrecordsend;
116 auto rec = iSetup.
find(*itrecords);
120 rec->fillRegisteredDataKeys(
data);
122 for (Data::iterator itdata =
data.begin(), itdataend =
data.end(); itdata != itdataend; ++itdata) {
124 msg = std::make_unique<LogSystem>(
"ESContent");
127 *
msg <<
"ESContent> "
128 <<
"record:" << itrecords->name() <<
" data:" << itdata->type().name() <<
" '"
129 << itdata->name().value() <<
"'";
132 *
msg <<
" provider:" <<
cd->type_ <<
" '" <<
cd->label_ <<
"'";
137 msg = std::make_unique<LogSystem>(
"ESContent");
138 *
msg <<
"Changed Record"
142 <<
"'label' provider: 'provider label' <provider module type>";
144 *
msg <<
"\n" << itrecords->name();
145 *
msg <<
"\n start: " << rec->validityInterval().first().eventID()
146 <<
" time: " << rec->validityInterval().first().time().value();
147 *
msg <<
"\n end: " << rec->validityInterval().last().eventID()
148 <<
" time: " << rec->validityInterval().last().time().value();
149 for (Data::iterator itdata =
data.begin(), itdataend =
data.end(); itdata != itdataend; ++itdata) {
150 *
msg <<
"\n " << itdata->type().name() <<
" '" << itdata->name().value() <<
"'";
153 *
msg <<
" provider:" <<
cd->type_ <<
" '" <<
cd->label_ <<
"'";
180 "Print what data is available in each available EventSetup Record in the job.\n"
181 "As part of the data is the C++ class type, label and which module makes that data.");
183 desc.addUntracked<
bool>(
"compact",
false)
184 ->setComment(
"If 'true' produces a more compact view, similar to the one used by PrintEventSetupDataRetrieval");
185 desc.addUntracked<
bool>(
"printProviders",
true)
186 ->setComment(
"If 'true' also print which ES module provides the data");
187 descriptions.
add(
"printEventSetupContent",
desc);