25 class DumpSimChannels;
29 using namespace fhicl;
37 Name(
"InputSimChannels"),
38 Comment(
"data product with the SimChannels to be dumped")
42 Name(
"OutputCategory"),
43 Comment(
"name of the output stream (managed by the message facility)"),
85 template <
typename Stream>
88 std::string
indent =
"",
bool bIndentFirst =
true 112 template <
typename Stream>
115 std::string
indent ,
bool bIndentFirst
117 if (bIndentFirst) out <<
indent;
118 channel.
Dump(out, indent);
126 auto const& SimChannels
127 = *(
event.getValidHandle<std::vector<sim::SimChannel>>(
fInputChannels));
131 << SimChannels.size() <<
" SimChannels";
133 unsigned int iSimChannel = 0;
138 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
#define DEFINE_ART_MODULE(klass)
std::string indent(std::size_t const i)
EDAnalyzer(Table< Config > const &config)
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.