Skip to content

Commit

Permalink
Streamline handling of mf::LogInfo messages from GenEventCountReader.
Browse files Browse the repository at this point in the history
  • Loading branch information
kutschke committed Nov 15, 2023
1 parent ea927ab commit e88751c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CommonMC/src/GenEventCountReader_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace mu2e {
<<"GenEventCountReader: no GenEventCount record in "<<sr.id()<<"\n";
}

mf::LogInfo("INFO")<<"GenEventCount: "
mf::LogInfo("GenEventCount")<<"GenEventCount: "
<<hh.front()->count()<<" events in "<<sr.id()
<<"\n";

Expand All @@ -87,7 +87,7 @@ namespace mu2e {

//================================================================
void GenEventCountReader::endJob() {
mf::LogInfo("Summary")<<"GenEventCount total: "
mf::LogInfo("GenEventCountSummary")<<"GenEventCount total: "
<<numEvents_<<" events in "
<<numSubRuns_<<" SubRuns"
<<"\n";
Expand Down
2 changes: 2 additions & 0 deletions fcl/standardMessageDestinations.fcl
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ mf_coutInfo:
COSMIC_STEPPOINTS : { limit : 0 }
Summary : { limit : 0 }
INFO : { limit : 0 }
GenEventCount : { limit : 1 reportEvery : 1 }
GenEventCountSummary : { limit : 1 reportEvery : 1 }
} # end categories
} # end mf_coutInfo

Expand Down

0 comments on commit e88751c

Please sign in to comment.