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 Types inherited from art::EDAnalyzer | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
DumpOpDetWaveforms (Parameters const &config) | |
void | analyze (const art::Event &evt) |
Does the printing. More... | |
Public Member Functions inherited from art::EDAnalyzer | |
EDAnalyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
EDAnalyzer (Table< Config > const &config) | |
std::string | workerType () const |
Public Member Functions inherited from art::detail::Analyzer | |
virtual | ~Analyzer () noexcept |
Analyzer (fhicl::ParameterSet const &pset) | |
template<typename Config > | |
Analyzer (Table< Config > const &config) | |
void | doBeginJob (SharedResources const &resources) |
void | doEndJob () |
void | doRespondToOpenInputFile (FileBlock const &fb) |
void | doRespondToCloseInputFile (FileBlock const &fb) |
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
Public Member Functions inherited from art::Observer | |
~Observer () noexcept | |
Observer (Observer const &)=delete | |
Observer (Observer &&)=delete | |
Observer & | operator= (Observer const &)=delete |
Observer & | operator= (Observer &&)=delete |
void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
void | fillDescriptions (ModuleDescription const &) |
fhicl::ParameterSetID | selectorConfig () const |
Public Member Functions inherited from art::ModuleBase | |
virtual | ~ModuleBase () noexcept |
ModuleBase () | |
ModuleDescription const & | moduleDescription () const |
void | setModuleDescription (ModuleDescription const &) |
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
void | sortConsumables (std::string const ¤t_process_name) |
template<typename T , BranchType BT> | |
ViewToken< T > | consumesView (InputTag const &tag) |
template<typename T , BranchType BT> | |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
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... | |
Additional Inherited Members | |
Protected Member Functions inherited from art::Observer | |
std::string const & | processName () const |
bool | wantAllEvents () const noexcept |
bool | wantEvent (ScheduleID id, Event const &e) const |
Handle< TriggerResults > | getTriggerResults (Event const &e) const |
Observer (fhicl::ParameterSet const &config) | |
Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config) | |
Protected Member Functions inherited from art::ModuleBase | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
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.
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.