23 class ModuleCallingContext;
43 global::OutputModule<>(
pset),
44 prescale_(
pset.getUntrackedParameter<unsigned
int>(
"prescale")),
45 verbosity_(
pset.getUntrackedParameter<unsigned
int>(
"verbosity")),
60 LogAbsolute(
"AsciiOut") <<
">>> processing event # " <<
e.id() <<
" time " <<
e.time().value() << std::endl;
68 for (
auto const&
process :
e.processHistory()) {
77 for (
auto const&
prod : reg->productList()) {
81 LogAbsolute(
"AsciiOut") <<
"ModuleLabel " <<
desc.moduleLabel() <<
" is an alias for";
84 auto const& prov =
e.getProvenance(
desc.originalBranchID());
94 if (pc.processName() ==
process) {
113 desc.setComment(
"Outputs event information into text file.");
114 desc.addUntracked(
"prescale", 1
U)->setComment(
"prescale factor");
115 desc.addUntracked(
"verbosity", 1
U)
118 "1: event ID and timestamp only\n" 119 "2: provenance for each kept product\n" 120 ">2: PSet and provenance for each kept product");
121 OutputModule::fillDescription(
desc);
122 descriptions.
add(
"asciiOutput",
desc);
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
bool getMapped(key_type const &k, value_type &result) const
static void fillDescriptions(ConfigurationDescriptions &descriptions)
ParameterSet const & getParameterSet(std::string const &) const
std::string const & processName() const
bool selected(BranchDescription const &desc) const
void writeRun(RunForOutput const &) override
~AsciiOutputModule() override
#define DEFINE_FWK_MODULE(type)
AsciiOutputModule(ParameterSet const &pset)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void write(EventForOutput const &e) override
Log< level::System, true > LogAbsolute
std::string const & moduleLabel() const
static Registry * instance()