10 #ifndef ICARUSCODE_ANALYSIS_TRIGGER_DETAILS_TRIGGERRESPONSEMANAGER_H
11 #define ICARUSCODE_ANALYSIS_TRIGGER_DETAILS_TRIGGERRESPONSEMANAGER_H
19 #include "art/Framework/Core/ConsumesCollector.h"
20 #include "art/Framework/Principal/Event.h"
21 #include "canvas/Utilities/InputTag.h"
160 art::Event
const& event,
161 std::vector<TriggerInfoBranch_t>& branchInfoList
166 void fetch(std::size_t iEntry);
180 art::ConsumesCollector& collector,
195 std::unique_ptr<TriggerInfo_t>
data = std::make_unique<TriggerInfo_t>();
206 (TTree& tree, std::vector<TriggerInputSpec_t>
const&
triggerSpecs)
const;
220 #endif // ICARUSCODE_ANALYSIS_TRIGGER_DETAILS_TRIGGERRESPONSEMANAGER_H
Manages extraction of trigger results and filling of their branches.
void declareConsumables(art::ConsumesCollector &collector) const
Declares all the data products we are going to read.
Defines classes that can't be copied nor moved.
TriggerInfoBranch_t buildTriggerResponseBranch(TTree &tree, TriggerInputSpec_t const &spec) const
Sets up a tree branch and returns its branch information structure.
Data for a single trigger logic output branch.
std::vector< TriggerInfoBranch_t > fBranchInfo
Data structures for the tree.
static std::string const & TriggerResponseBranchStructure()
ROOT TTree specification for this data structure (leaf list).
static constexpr double NotTriggeredTime
Mnemonic value for absence of trigger time information.
std::unique_ptr< TriggerInfo_t > data
std::vector< TriggerInfoBranch_t > buildTriggerResponseBranches(TTree &tree, std::vector< TriggerInputSpec_t > const &triggerSpecs) const
Sets up the tree branches and returns the branch information structures.
TriggerResponseManager(std::vector< TriggerInputSpec_t > const &triggerSpecs, art::ConsumesCollector &collector, TTree &tree)
Initializes tree to accommodate the specified trigger information.
Extractors extractorsFor(art::Event const &event)
Returns an object to extract trigger information from event.
An empty class that can't be copied (moving is allowed).
Information about a single trigger logic (hardware or emulated).
double gateTime
Time of the opening of the gate for the trigger evaluation.
bool fired
Whether this trigger fired.