Filter module using a response an existing trigger path response. More...
Classes | |
struct | Config |
struct | TriggerSpec |
Public Types | |
using | Parameters = art::SharedFilter::Table< Config > |
Public Member Functions | |
FilterOnArtPathOutcome (Parameters const ¶ms, const art::ProcessingFrame &) | |
Constructor. No surprise here. More... | |
virtual bool | filter (art::Event &event, const art::ProcessingFrame &) override |
Private Member Functions | |
art::TriggerResults const & | readTriggerResults (art::Event const &event, art::InputTag const &tag) const |
Reads the needed trigger data product, and throws if not found. More... | |
art::HLTPathStatus const & | findPath (art::TriggerResults const &results, std::string const &name) const |
std::vector< std::string > | pathNames (art::TriggerResults const &results) const |
bool | responseFromPath (art::HLTPathStatus const &path) const |
Translates a path status into the response from this filter. More... | |
Static Private Member Functions | |
static TriggerSpec | parseTriggerSpec (std::string const &spec) |
Parses a trigger path specification. More... | |
Private Attributes | |
TriggerSpec const | fTriggerSpec |
Trigger configuration. More... | |
bool const | fResponseWhenNotRun |
What to do if path was not run at all. More... | |
bool const | fResponseOnError |
What to do if path ended with error. More... | |
Filter module using a response an existing trigger path response.
This filter emits the same response as for a art path (not just a filter) that was run previously.
Given a configured Path
, this module reads from the event the data product named TriggerResults
(art::TriggerResults
type) from the process specified in that configuration parameter.
Path
(string, mandatory): the trigger path specification in the form process:path name
. Definition at line 55 of file FilterOnArtPathOutcome_module.cc.
using FilterOnArtPathOutcome::Parameters = art::SharedFilter::Table<Config> |
Definition at line 82 of file FilterOnArtPathOutcome_module.cc.
FilterOnArtPathOutcome::FilterOnArtPathOutcome | ( | Parameters const & | params, |
const art::ProcessingFrame & | |||
) |
Constructor. No surprise here.
Definition at line 129 of file FilterOnArtPathOutcome_module.cc.
|
overridevirtual |
Definition at line 143 of file FilterOnArtPathOutcome_module.cc.
|
private |
Returns the status of the path with the required name
.
cet::exception | if not found |
Definition at line 198 of file FilterOnArtPathOutcome_module.cc.
|
staticprivate |
Parses a trigger path specification.
Definition at line 294 of file FilterOnArtPathOutcome_module.cc.
|
private |
Returns the list of path names stored in results
.
art::Exception | (code: art::errors::Unknown ) on logic errors |
Definition at line 245 of file FilterOnArtPathOutcome_module.cc.
|
private |
Reads the needed trigger data product, and throws if not found.
Definition at line 158 of file FilterOnArtPathOutcome_module.cc.
|
private |
Translates a path status into the response from this filter.
Definition at line 279 of file FilterOnArtPathOutcome_module.cc.
|
private |
What to do if path ended with error.
Definition at line 102 of file FilterOnArtPathOutcome_module.cc.
|
private |
What to do if path was not run at all.
Definition at line 101 of file FilterOnArtPathOutcome_module.cc.
|
private |
Trigger configuration.
Definition at line 100 of file FilterOnArtPathOutcome_module.cc.