|
|
Go to the documentation of this file.
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);
static Registry * instance()
static void fillDescriptions(ConfigurationDescriptions &descriptions)
void write(EventForOutput const &e) override
void writeRun(RunForOutput const &) override
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string const & processName() const
void writeLuminosityBlock(LuminosityBlockForOutput const &) override
~AsciiOutputModule() override
Log< level::System, true > LogAbsolute
std::string const & moduleLabel() const
bool selected(BranchDescription const &desc) const
bool getMapped(key_type const &k, value_type &result) const
ParameterSet const & getParameterSet(std::string const &) const
AsciiOutputModule(ParameterSet const &pset)