|
| DumpSimPhotonsLite (Parameters const &config) |
| Configuration-checking constructor. More...
|
|
| DumpSimPhotonsLite (DumpSimPhotonsLite const &)=delete |
|
| DumpSimPhotonsLite (DumpSimPhotonsLite &&)=delete |
|
DumpSimPhotonsLite & | operator= (DumpSimPhotonsLite const &)=delete |
|
DumpSimPhotonsLite & | operator= (DumpSimPhotonsLite &&)=delete |
|
void | analyze (art::Event const &event) override |
|
template<typename Stream > |
void | DumpPhoton (Stream &&out, sim::SimPhotonsLite const &photons, std::string indent, std::string firstIndent) const |
| Dumps the content of specified SimPhotonsLite in the output stream. More...
|
|
template<typename Stream > |
void | DumpPhoton (Stream &&out, sim::SimPhotonsLite const &photons, std::string indent="") const |
|
| EDAnalyzer (fhicl::ParameterSet const &pset) |
|
template<typename Config > |
| EDAnalyzer (Table< Config > const &config) |
|
std::string | workerType () const |
|
virtual | ~Analyzer () noexcept |
|
| Analyzer (fhicl::ParameterSet const &pset) |
|
template<typename Config > |
| Analyzer (Table< Config > const &config) |
|
void | doBeginJob (SharedResources const &resources) |
|
void | doEndJob () |
|
void | doRespondToOpenInputFile (FileBlock const &fb) |
|
void | doRespondToCloseInputFile (FileBlock const &fb) |
|
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
|
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
|
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
|
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
|
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
|
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
|
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
|
| ~Observer () noexcept |
|
| Observer (Observer const &)=delete |
|
| Observer (Observer &&)=delete |
|
Observer & | operator= (Observer const &)=delete |
|
Observer & | operator= (Observer &&)=delete |
|
void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
|
void | fillDescriptions (ModuleDescription const &) |
|
fhicl::ParameterSetID | selectorConfig () const |
|
virtual | ~ModuleBase () noexcept |
|
| ModuleBase () |
|
ModuleDescription const & | moduleDescription () const |
|
void | setModuleDescription (ModuleDescription const &) |
|
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
|
void | sortConsumables (std::string const ¤t_process_name) |
|
template<typename T , BranchType BT> |
ViewToken< T > | consumesView (InputTag const &tag) |
|
template<typename T , BranchType BT> |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
|
template<typename Stream >
Dumps the content of specified SimPhotonsLite in the output stream.
- Template Parameters
-
Stream | the type of output stream |
- Parameters
-
out | the output stream |
photons | the SimPhotonsLite to be dumped |
indent | base indentation string _(default: none)_ |
firstIndent | if first output line should be indented _(default: yes)_ |
The indent string is prepended to every line of output, with the possible exception of the first one, in case bIndentFirst is true.
The output starts on the current line, and the last line is not broken.
Definition at line 124 of file DumpSimPhotonsLite_module.cc.
129 unsigned int const nPhotons = std::accumulate(
130 photons.DetectedPhotons.begin(), photons.DetectedPhotons.end(),
131 0U, [](
auto sum,
auto const&
entry){
return sum +
entry.second; }
135 <<
"channel=" << photons.OpChannel <<
" has ";
137 out << nPhotons <<
" photons (format: [tick] photons):";
138 constexpr
unsigned int PageSize = 5;
139 unsigned int pager = 0;
140 for (
auto const& pair: photons.DetectedPhotons) {
142 pager = PageSize - 1;
143 out <<
"\n" <<
indent <<
" ";
145 out <<
" [" << pair.first <<
"] " <<
std::setw(6) << pair.second;
Q_EXPORT QTSManip setw(int w)