Prints the content of all optical detector waveforms on screen. More...
Classes | |
struct | Config |
struct | TimestampLabelMaker |
Base functor for printing time according to tick number. More... | |
Public Types | |
using | Parameters = art::EDAnalyzer::Table< Config > |
Public Member Functions | |
DumpOpDetWaveforms (Parameters const &config) | |
void | analyze (const art::Event &evt) |
Does the printing. More... | |
Private Types | |
enum | sortMode { sortMode::DataProductOrder, sortMode::ChannelAndTime } |
Static Private Member Functions | |
static std::vector < std::vector < raw::OpDetWaveform const * > > | groupByChannel (std::vector< raw::OpDetWaveform > const &waveforms) |
Returns pointers to all waveforms in a vector with channel as index. More... | |
static void | sortByTimestamp (std::vector< raw::OpDetWaveform const * > &waveforms) |
Sorts all the waveforms in the vector by growing timestamp. More... | |
Private Attributes | |
art::InputTag | fOpDetWaveformsTag |
Input tag of data product to dump. More... | |
std::string | fOutputCategory |
Category for mf::LogInfo output. More... | |
unsigned int | fDigitsPerLine |
ADC readings per line in the output. More... | |
raw::ADC_Count_t | fPedestal |
ADC pedestal (subtracted from readings). More... | |
sortMode | fSortByChannelAndTime |
How to sort the waveforms in the dump. More... | |
std::unique_ptr < dump::raw::OpDetWaveformDumper::TimeLabelMaker > | fTimeLabel |
The object used to print tick labels. More... | |
Prints the content of all optical detector waveforms on screen.
This analyser prints the content of all the raw digits into the LogInfo/LogVerbatim stream.
daq
): input tag of the raw::OpDetWaveform collection to be dumpedDumpOpDetWaveforms
): the category used for the output (useful for filtering)20
): the dump of ADC readings will put this many of them for each line0
): ADC readings are written relative to this number"tick"
): a preamble to each line of the dumped waveform digits, chosen among:"tick"
: the tick number of the waveform is printed (starts at 0
)"time"
: timestamp (s) of the first tick in the row"none"
: no preamble written at all Definition at line 58 of file DumpOpDetWaveforms_module.cc.
using detsim::DumpOpDetWaveforms::Parameters = art::EDAnalyzer::Table<Config> |
Definition at line 99 of file DumpOpDetWaveforms_module.cc.
|
strongprivate |
Enumerator | |
---|---|
DataProductOrder |
Unsorted: same order as the input data product. |
ChannelAndTime |
Sort by PMT channel number, then timestamp. |
Definition at line 108 of file DumpOpDetWaveforms_module.cc.
|
explicit |
Definition at line 153 of file DumpOpDetWaveforms_module.cc.
void detsim::DumpOpDetWaveforms::analyze | ( | const art::Event & | evt | ) |
Does the printing.
Definition at line 184 of file DumpOpDetWaveforms_module.cc.
|
staticprivate |
Returns pointers to all waveforms in a vector with channel as index.
Definition at line 240 of file DumpOpDetWaveforms_module.cc.
|
staticprivate |
Sorts all the waveforms in the vector by growing timestamp.
Definition at line 253 of file DumpOpDetWaveforms_module.cc.
|
private |
ADC readings per line in the output.
Definition at line 131 of file DumpOpDetWaveforms_module.cc.
|
private |
Input tag of data product to dump.
Definition at line 129 of file DumpOpDetWaveforms_module.cc.
|
private |
Category for mf::LogInfo
output.
Definition at line 130 of file DumpOpDetWaveforms_module.cc.
|
private |
ADC pedestal (subtracted from readings).
Definition at line 132 of file DumpOpDetWaveforms_module.cc.
|
private |
How to sort the waveforms in the dump.
Definition at line 133 of file DumpOpDetWaveforms_module.cc.
|
private |
The object used to print tick labels.
Definition at line 137 of file DumpOpDetWaveforms_module.cc.