24 class DumpSimChannels;
28 using namespace fhicl;
36 Name(
"InputSimChannels"),
37 Comment(
"data product with the SimChannels to be dumped")
41 Name(
"OutputCategory"),
42 Comment(
"name of the output stream (managed by the message facility)"),
84 template <
typename Stream>
111 template <
typename Stream>
116 if (bIndentFirst) out <<
indent;
117 channel.
Dump(out, indent);
125 auto const& SimChannels
126 = *(
event.getValidHandle<std::vector<sim::SimChannel>>(
fInputChannels));
130 << SimChannels.size() <<
" SimChannels";
132 unsigned int iSimChannel = 0;
137 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.
ChannelGroupService::Name Name
DumpSimChannels & operator=(DumpSimChannels const &)=delete
EDAnalyzer(fhicl::ParameterSet const &pset)
typename config_impl< T >::type Config
#define DEFINE_ART_MODULE(klass)
Code to link reconstructed objects back to the MC truth information.
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.
DumpSimChannels(Parameters const &config)
Configuration-checking constructor.
void analyze(art::Event const &event) override
Event finding and building.