121 typedef std::vector<eventsetup::EventSetupRecordKey> Records;
122 typedef std::vector<eventsetup::DataKey> Data;
127 std::unique_ptr<LogSystem>
msg;
129 for(Records::iterator itrecords = records.begin(), itrecordsend = records.end();
130 itrecords != itrecordsend; ++itrecords ) {
132 auto rec = iSetup.
find(*itrecords);
136 rec->fillRegisteredDataKeys(data);
138 for (Data::iterator itdata = data.begin(), itdataend = data.end(); itdata != itdataend; ++itdata) {
143 *msg <<
"ESContent> " <<
"record:" << itrecords->name() <<
" data:" << itdata->type().name() <<
" '" << itdata->name().value() <<
"'";
146 *msg <<
" provider:" << cd->
type_ <<
" '" << cd->
label_ <<
"'";
152 *msg <<
"Changed Record" <<
"\n " <<
"<datatype>" <<
" " <<
"'label' provider: 'provider label' <provider module type>";
154 *msg <<
"\n" << itrecords->name();
155 *msg <<
"\n start: " << rec->validityInterval().first().eventID() <<
" time: " << rec->validityInterval().first().time().value();
156 *msg <<
"\n end: " << rec->validityInterval().last().eventID() <<
" time: " << rec->validityInterval().last().time().value();
157 for (Data::iterator itdata = data.begin(), itdataend = data.end(); itdata != itdataend; ++itdata) {
158 *msg <<
"\n " << itdata->type().name() <<
" '" << itdata->name().value() <<
"'";
161 *msg <<
" provider:" << cd->
type_ <<
" '" << cd->
label_ <<
"'";
192 descriptions.
setComment(
"Print what data is available in each available EventSetup Record in the job.\n" 193 "As part of the data is the C++ class type, label and which module makes that data.");
196 "If 'true' produces a more compact view, similar to the one used by PrintEventSetupDataRetrieval");
197 desc.
addUntracked<
bool>(
"printProviders",
true)->setComment(
198 "If 'true' also print which ES module provides the data");
199 descriptions.
add(
"printEventSetupContent", desc);
void endLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
const bool printProviders_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
void beginRun(Run const &, EventSetup const &) override
void endRun(Run const &, EventSetup const &) override
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records ...
std::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &) const
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
std::map< eventsetup::EventSetupRecordKey, unsigned long long > cacheIdentifiers_
char data[epos_bytes_allocation]
~PrintEventSetupContent() override
void analyze(Event const &, EventSetup const &) override
void print(EventSetup const &)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
PrintEventSetupContent(ParameterSet const &)