|
using | Parameters = art::EDAnalyzer::Table< Config > |
|
Definition at line 52 of file DumpSimChannels_module.cc.
sim::DumpSimChannels::DumpSimChannels |
( |
Parameters const & |
config | ) |
|
|
explicit |
Configuration-checking constructor.
Definition at line 103 of file DumpSimChannels_module.cc.
std::string fOutputCategory
name of the stream for output
art::InputTag fInputChannels
name of SimChannel's data product
void sim::DumpSimChannels::analyze |
( |
art::Event const & |
event | ) |
|
|
override |
Definition at line 122 of file DumpSimChannels_module.cc.
125 auto const& SimChannels
126 = *(
event.getValidHandle<std::vector<sim::SimChannel>>(
fInputChannels));
129 <<
" : data product '" <<
fInputChannels.encode() <<
"' contains "
130 << SimChannels.size() <<
" SimChannels";
132 unsigned int iSimChannel = 0;
137 log <<
"[#" << (iSimChannel++) <<
"] ";
Energy deposited on a readout channel by simulated tracks.
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.
template<typename Stream >
void sim::DumpSimChannels::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.
- Template Parameters
-
Stream | the type of output stream |
- Parameters
-
out | the output stream |
simchannel | the SimChannel to be dumped |
indent | base indentation string (default: none) |
bIndentFirst | if first output line should be indented (default: yes) |
The indent string is prepended to every line of output, with the possible exception of the first one, in case bIndentFirst is true.
The output starts on the current line, and the last line is NOT broken.
Definition at line 112 of file DumpSimChannels_module.cc.
116 if (bIndentFirst) out << indent;
117 channel.Dump(out, indent);
art::InputTag sim::DumpSimChannels::fInputChannels |
|
private |
std::string sim::DumpSimChannels::fOutputCategory |
|
private |
The documentation for this class was generated from the following file: