LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
dump::raw::OpDetWaveformDumper::TimeLabelMaker Struct Referenceabstract

Base functor for printing time according to tick number. More...

#include "OpDetWaveform.h"

Inheritance diagram for dump::raw::OpDetWaveformDumper::TimeLabelMaker:
detsim::DumpOpDetWaveforms::TimestampLabelMaker dump::raw::OpDetWaveformDumper::TickLabelMaker

Public Member Functions

virtual ~TimeLabelMaker ()=default
 
virtual std::string label (raw::OpDetWaveform const &waveform, unsigned int tick) const =0
 Returns the label to be written for the specified tick number. More...
 
virtual unsigned int labelWidth (raw::OpDetWaveform const &waveform, unsigned int tick) const
 Length of padded label. For best results, it should be a constant. More...
 

Detailed Description

Base functor for printing time according to tick number.

Definition at line 46 of file OpDetWaveform.h.

Constructor & Destructor Documentation

virtual dump::raw::OpDetWaveformDumper::TimeLabelMaker::~TimeLabelMaker ( )
virtualdefault

Member Function Documentation

virtual std::string dump::raw::OpDetWaveformDumper::TimeLabelMaker::label ( raw::OpDetWaveform const &  waveform,
unsigned int  tick 
) const
pure virtual

Returns the label to be written for the specified tick number.

Implemented in detsim::DumpOpDetWaveforms::TimestampLabelMaker, and dump::raw::OpDetWaveformDumper::TickLabelMaker.

Referenced by dump::raw::OpDetWaveformDumper::dump().

virtual unsigned int dump::raw::OpDetWaveformDumper::TimeLabelMaker::labelWidth ( raw::OpDetWaveform const &  waveform,
unsigned int  tick 
) const
inlinevirtual

Length of padded label. For best results, it should be a constant.

Reimplemented in dump::raw::OpDetWaveformDumper::TickLabelMaker.

Definition at line 54 of file OpDetWaveform.h.

Referenced by dump::raw::OpDetWaveformDumper::dump().

55  {
56  return 10U;
57  }

The documentation for this struct was generated from the following file: