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.");
184 ->setComment(
"If 'true' produces a more compact view, similar to the one used by PrintEventSetupDataRetrieval");
186 ->setComment(
"If 'true' also print which ES module provides the data");
187 descriptions.
add(
"printEventSetupContent", desc);
void endLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
std::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &iKey) const
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
std::map< eventsetup::EventSetupRecordKey, unsigned long long > cacheIdentifiers_
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void beginLuminosityBlock(LuminosityBlock 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 ...
tuple config
parse the configuration file
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 &)