Object to facilitate the discovery of the raw::OpDetWaveform a sbn::OpDetWaveformMeta objects comes from.
More...
#include <OpDetWaveformMetaMatcher.h>
Classes | |
| struct | CmpFirst |
| Compares a sbn::OpDetWaveformMeta<tt>and an element ofWaveformMetaAssns_t`. More... | |
Public Member Functions | |
| OpDetWaveformMetaMatcher (Event const &event) | |
| Constructor: associates to the specified art event. More... | |
| art::Ptr< raw::OpDetWaveform > | fetchAssociatedWaveform (art::Ptr< sbn::OpDetWaveformMeta > const &meta) |
Returns the waveform associated to meta, or a null pointer if not found. More... | |
| art::Ptr< raw::OpDetWaveform > | operator ()(art |
Private Types | |
| using | Event_t = Event |
| Type of the framework event to read data from. More... | |
| using | WaveformMetaAssns_t = art::Assns< sbn::OpDetWaveformMeta, raw::OpDetWaveform > |
| Type of associations used in this algorithm,. More... | |
Private Member Functions | |
| WaveformMetaAssns_t const * | loadAssociations (art::ProductID const &pid) |
| art::Ptr< raw::OpDetWaveform > | findAssociatedWaveform (art::Ptr< sbn::OpDetWaveformMeta > const &meta, WaveformMetaAssns_t const &assns) const |
Returns the waveform associated to meta if in assns or a null pointer. More... | |
Private Attributes | |
| Event_t const & | fEvent |
| Event to read associations from. More... | |
| std::unordered_map < art::ProductID, WaveformMetaAssns_t const * > | fAssns |
| All associations discovered so far. More... | |
Object to facilitate the discovery of the raw::OpDetWaveform a sbn::OpDetWaveformMeta objects comes from.
| Event | type of the framework event to read data products from |
This algorithm will look in the associated art event for the raw::OpDetWaveform associated to any specified sbn::OpDetWaveformMeta.
The sbn::OpDetWaveformMeta object must be specified by art pointer. The algorithm assumes that the module that created the sbn::OpDetWaveformMeta object also created an association between it and the original raw::OpDetWaveform, and will read that association.
Example:
will fill waveAssns with one gate/waveform association for each gate/metadata association in metaAssns. Note that, in this simple example, if no waveform pointer is matched to a metadata item, a null pointer to waveform is stored in the association.
Definition at line 34 of file OpDetWaveformMetaMatcher.h.
|
private |
Type of the framework event to read data from.
Definition at line 65 of file OpDetWaveformMetaMatcher.h.
|
private |
Type of associations used in this algorithm,.
Definition at line 69 of file OpDetWaveformMetaMatcher.h.
| icarus::trigger::OpDetWaveformMetaMatcher< Event >::OpDetWaveformMetaMatcher | ( | Event const & | event | ) |
Constructor: associates to the specified art event.
Definition at line 135 of file OpDetWaveformMetaMatcher.h.
| art::Ptr< raw::OpDetWaveform > icarus::trigger::OpDetWaveformMetaMatcher< Event >::fetchAssociatedWaveform | ( | art::Ptr< sbn::OpDetWaveformMeta > const & | meta | ) |
Returns the waveform associated to meta, or a null pointer if not found.
Definition at line 144 of file OpDetWaveformMetaMatcher.h.
|
private |
Returns the waveform associated to meta if in assns or a null pointer.
Definition at line 186 of file OpDetWaveformMetaMatcher.h.
|
private |
Loads the association including pid.
pid, nullptr if n/a. Definition at line 157 of file OpDetWaveformMetaMatcher.h.
|
inline |
Definition at line 120 of file OpDetWaveformMetaMatcher.h.
|
private |
All associations discovered so far.
Definition at line 98 of file OpDetWaveformMetaMatcher.h.
|
private |
Event to read associations from.
Definition at line 95 of file OpDetWaveformMetaMatcher.h.
1.8.5