25 class DumpOpDetBacktrackerRecords;
29 using namespace fhicl;
37 Name(
"InputOpDetBacktrackerRecord"),
38 Comment(
"data product with the OpDetBacktrackerRecord to be dumped")
42 Name(
"OutputCategory"),
43 Comment(
"name of the output stream (managed by the message facility)"),
44 "DumpOpDetBacktrackerRecords" 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);
127 = *(
event.getValidHandle<std::vector<sim::OpDetBacktrackerRecord>>(
fInputChannels));
133 unsigned int iOpDetBacktrackerRecord = 0;
138 log <<
"[#" << (iOpDetBacktrackerRecord++) <<
"] ";
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
DumpOpDetBacktrackerRecords(Parameters const &config)
Configuration-checking constructor.
art::InputTag fInputChannels
name of OpDetBacktrackerRecord's data product
Energy deposited on a readout Optical Detector by simulated tracks.
DumpOpDetBacktrackerRecords & operator=(DumpOpDetBacktrackerRecords const &)=delete
#define DEFINE_ART_MODULE(klass)
void Dump(Stream &&out, std::string indent, std::string first_indent) const
Dumps the full content of the OpDetBacktrackerRecord into a stream.
std::string indent(std::size_t const i)
EDAnalyzer(Table< Config > const &config)
void analyze(art::Event const &event) override
void DumpOpDetBacktrackerRecord(Stream &&out, sim::OpDetBacktrackerRecord const &simchannel, std::string indent="", bool bIndentFirst=true) const
Dumps the content of the specified OpDetBacktrackerRecord in the output stream.
Event finding and building.
std::string fOutputCategory
name of the stream for output