53 virtual void endJob()
override ;
79 printProviders_(config.getUntrackedParameter<bool>(
"printProviders")),
80 compact_(config.getUntrackedParameter<bool>(
"compact"))
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 ) {
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();
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);
virtual void endLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
unsigned long long cacheIdentifier() const
const bool printProviders_
void fillRegisteredDataKeys(std::vector< DataKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all registered data keys ...
~PrintEventSetupContent()
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
const EventID & eventID() const
virtual void endJob() override
#define DEFINE_FWK_MODULE(type)
virtual void beginRun(Run const &, EventSetup const &) override
virtual void endRun(Run const &, EventSetup const &) override
const eventsetup::EventSetupRecord * find(const eventsetup::EventSetupRecordKey &) const
const IOVSyncValue & last() const
ComponentDescription const * providerDescription(DataKey const &aKey) const
virtual void beginJob() override
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records ...
void setComment(std::string const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
virtual void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
std::map< eventsetup::EventSetupRecordKey, unsigned long long > cacheIdentifiers_
const Timestamp & time() const
volatile std::atomic< bool > shutdown_flag false
const IOVSyncValue & first() const
virtual void analyze(Event const &, EventSetup const &) override
ValidityInterval const & validityInterval() const
TimeValue_t value() const
void print(EventSetup const &)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
PrintEventSetupContent(ParameterSet const &)