26 class DumpOpDetDivRecs;
30 using namespace fhicl;
38 Name(
"InputOpDetDivRecs"),
39 Comment(
"data product with the OpDetDivRecs to be dumped")
43 Name(
"OutputCategory"),
44 Comment(
"name of the output stream (managed by the message facility)"),
86 template <
typename Stream>
113 template <
typename Stream>
118 if (bIndentFirst) out <<
indent;
119 channel.
Dump(out, indent);
127 auto const& OpDetDivRecs
128 = *(
event.getValidHandle<std::vector<sim::OpDetDivRec>>(
fInputChannels));
132 << OpDetDivRecs.size() <<
" OpDetDivRecs";
134 unsigned int iOpDetDivRec = 0;
139 log <<
"[#" << (iOpDetDivRec++) <<
"] ";
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
DumpOpDetDivRecs & operator=(DumpOpDetDivRecs const &)=delete
std::string fOutputCategory
name of the stream for output
ChannelGroupService::Name Name
EDAnalyzer(fhicl::ParameterSet const &pset)
typename config_impl< T >::type Config
#define DEFINE_ART_MODULE(klass)
art::InputTag fInputChannels
name of OpDetDivRecs's data product
Code to link reconstructed objects back to the MC truth information.
void analyze(art::Event const &event) override
void Dump(Stream &&out, std::string indent, std::string first_indent) const
DumpOpDetDivRecs(Parameters const &config)
Configuration-checking constructor.
Event finding and building.
void DumpOpDetDivRec(Stream &&out, sim::OpDetDivRec const &simchannel, std::string indent="", bool bIndentFirst=true) const
Dumps the content of the specified OpDetDivRecs in the output stream.