22 class DumpSimChannels;
26 using namespace fhicl;
34 Name(
"InputSimChannels"),
35 Comment(
"data product with the SimChannels to be dumped")};
38 Name(
"OutputCategory"),
39 Comment(
"name of the output stream (managed by the message facility)"),
77 template <
typename Stream>
81 bool bIndentFirst =
true)
const;
100 template <
typename Stream>
107 if (bIndentFirst) out <<
indent;
108 channel.
Dump(out, indent);
116 auto const& SimChannels = *(
event.getValidHandle<std::vector<sim::SimChannel>>(
fInputChannels));
120 << SimChannels.size() <<
" SimChannels";
122 unsigned int iSimChannel = 0;
127 log <<
"[#" << (iSimChannel++) <<
"] ";
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
Energy deposited on a readout channel by simulated tracks.
void Dump(Stream &&out, std::string indent, std::string first_indent) const
Dumps the full content of the SimChannel into a stream.
DumpSimChannels & operator=(DumpSimChannels const &)=delete
EDAnalyzer(fhicl::ParameterSet const &pset)
#define DEFINE_ART_MODULE(klass)
std::string indent(std::size_t const i)
std::string fOutputCategory
name of the stream for output
art::InputTag fInputChannels
name of SimChannel's data product
void DumpSimChannel(Stream &&out, sim::SimChannel const &simchannel, std::string indent="", bool bIndentFirst=true) const
Dumps the content of the specified SimChannel in the output stream.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
DumpSimChannels(Parameters const &config)
Configuration-checking constructor.
void analyze(art::Event const &event) override
Event finding and building.