Dumps on console the content of trigger data products. More...
Classes | |
struct | Config |
Public Types | |
using | Parameters = art::EDAnalyzer::Table< Config > |
Public Member Functions | |
DumpTrigger (Parameters const &config) | |
virtual void | analyze (art::Event const &event) override |
Does the dumping. More... | |
Private Types | |
using | electronics_time = detinfo::timescales::electronics_time |
using | simulation_time = detinfo::timescales::simulation_time |
Private Member Functions | |
void | dumpTrigger (std::vector< raw::Trigger > const &triggers) const |
Dumps a simple LArSoft trigger data product. More... | |
void | dumpTrigger (std::vector< raw::ExternalTrigger > const &triggers) const |
Dumps a LArSoft external trigger data product. More... | |
void | dumpBeamGate (std::vector< sim::BeamGateInfo > const &gates) const |
Dumps a LArSoft beam gate information data product. More... | |
void | dumpTrigger (sbn::ExtraTriggerInfo const &trigger) const |
Dumps a SBN trigger information data product. More... | |
std::pair< art::InputTag, bool > | inputTag (std::optional< art::InputTag > const &tag) const |
Returns the tag to try, and whether it is mandatory to find it. More... | |
template<typename T > | |
unsigned int | countConsume (std::optional< art::InputTag > const ¶m) |
Private Attributes | |
std::optional< art::InputTag > const | fTriggerTag |
Input trigger tag. More... | |
std::optional< art::InputTag > const | fBeamGateTag |
Input beam gate tag. More... | |
std::optional< art::InputTag > const | fExternalTag |
Input additional trigger tag. More... | |
std::optional< art::InputTag > const | fExtraTag |
unsigned int const | fVerbosity |
Input extra trigger tag. More... | |
std::string const | fOutputCategory |
Category used for message facility stream. More... | |
Dumps on console the content of trigger data products.
Supported trigger types are:
std::vector<raw::Trigger>
std::vector<raw::ExternalTrigger>
std::vector<sim::BeamGateInfo>
std::vector<sbn::ExtraTriggerInfo>
std::vector<raw::Trigger>
: simple trigger informationstd::vector<sim::BeamGateInfo>
: beam gate informationstd::vector<raw::ExternalTrigger>
: additional trigger informationsbn::ExtraTriggerInfo
: detailed trigger informationAll data product tags are optional, but at least one needs to be specified. If a tag is not specified, the same tag as TriggerTag
will be attempted (if specified). A terse description of the parameters is printed by running lar --print-description DumpTrigger
.
TriggerTag
(data product input tag, optional): the tag identifying the data product of the simple trigger information to dump.BeamGateTag
(data product input tag, optional): the tag identifying the data product of the beam gate; if explicitly empty, this type of data product will not be dumped; if omitted, an attempt to dump a data product with the same tag as TriggerTag
will be performed, and in case of failure no message will be printed.ExternalTriggerTag
(data product input tag, optional): the tag identifying the data product of the additional standard trigger information; this is a standard LArSoft data product that ICARUS abuses to store information in a portable way. If explicitly empty, this type of data product will not be dumped; if omitted, an attempt to dump a data product with the same tag as TriggerTag
will be performed, and in case of failure no message will be printed.ExtraTriggerTag
(data product input tag, optional): the tag identifying the data product of the detailed trigger information; this is SBN-specific. If explicitly empty, this type of data product will not be dumped; if omitted, an attempt to dump a data product with the same tag as TriggerTag
will be performed, and in case of failure no message will be printed.Verbosity
(integral, default: maximum): verbosity level used in the dump; see sbn::PMTconfiguration::dump()
for details.OutputCategory
(string, default: DumpTrigger
): name of the message facility output stream to dump the information into. Definition at line 95 of file DumpTrigger_module.cc.
Definition at line 164 of file DumpTrigger_module.cc.
using sbn::DumpTrigger::Parameters = art::EDAnalyzer::Table<Config> |
Definition at line 143 of file DumpTrigger_module.cc.
Definition at line 165 of file DumpTrigger_module.cc.
|
explicit |
Definition at line 235 of file DumpTrigger_module.cc.
|
overridevirtual |
Does the dumping.
Definition at line 293 of file DumpTrigger_module.cc.
|
private |
Returns 1
if the data product of type T
specified by param
must be available, 0
otherwise. It also declares it will consume it.
Definition at line 472 of file DumpTrigger_module.cc.
|
private |
Dumps a LArSoft beam gate information data product.
Definition at line 415 of file DumpTrigger_module.cc.
|
private |
Dumps a simple LArSoft trigger data product.
Definition at line 352 of file DumpTrigger_module.cc.
|
private |
Dumps a LArSoft external trigger data product.
Definition at line 387 of file DumpTrigger_module.cc.
|
private |
Dumps a SBN trigger information data product.
Definition at line 451 of file DumpTrigger_module.cc.
|
private |
Returns the tag to try, and whether it is mandatory to find it.
Definition at line 462 of file DumpTrigger_module.cc.
|
private |
Input beam gate tag.
Definition at line 172 of file DumpTrigger_module.cc.
|
private |
Input additional trigger tag.
Definition at line 175 of file DumpTrigger_module.cc.
|
private |
Definition at line 177 of file DumpTrigger_module.cc.
|
private |
Category used for message facility stream.
Definition at line 182 of file DumpTrigger_module.cc.
|
private |
Input trigger tag.
Definition at line 170 of file DumpTrigger_module.cc.
|
private |
Input extra trigger tag.
Verbosity level used for dumping.
Definition at line 179 of file DumpTrigger_module.cc.