Manages extraction of trigger results and filling of their branches. More...
#include <TriggerResponseManager.h>
Classes | |
class | Extractors |
Trigger information extractors tied to an event. More... | |
struct | TriggerInfo_t |
Information about a single trigger logic (hardware or emulated). More... | |
struct | TriggerInfoBranch_t |
Data for a single trigger logic output branch. More... | |
struct | TriggerInputSpec_t |
Configuration specifications for the emulation of a trigger logic. More... | |
Public Member Functions | |
TriggerResponseManager (std::vector< TriggerInputSpec_t > const &triggerSpecs, art::ConsumesCollector &collector, TTree &tree) | |
Initializes tree to accommodate the specified trigger information. More... | |
Extractors | extractorsFor (art::Event const &event) |
Returns an object to extract trigger information from event . More... | |
TriggerResponseManager (std::vector< TriggerInputSpec_t > const &triggerSpecs, art::ConsumesCollector &collector, TTree &tree) | |
Initializes tree to accommodate the specified trigger information. More... | |
Extractors | extractorsFor (art::Event const &event) |
Returns an object to extract trigger information from event . More... | |
Private Member Functions | |
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. More... | |
TriggerInfoBranch_t | buildTriggerResponseBranch (TTree &tree, TriggerInputSpec_t const &spec) const |
Sets up a tree branch and returns its branch information structure. More... | |
void | declareConsumables (art::ConsumesCollector &collector) const |
Declares all the data products we are going to read. More... | |
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. More... | |
TriggerInfoBranch_t | buildTriggerResponseBranch (TTree &tree, TriggerInputSpec_t const &spec) const |
Sets up a tree branch and returns its branch information structure. More... | |
void | declareConsumables (art::ConsumesCollector &collector) const |
Declares all the data products we are going to read. More... | |
Private Member Functions inherited from lar::UncopiableClass | |
UncopiableClass ()=default | |
Default constructor. More... | |
~UncopiableClass ()=default | |
Default destructor. More... | |
UncopiableClass (UncopiableClass const &)=delete | |
Deleted copy and move constructors and assignments. More... | |
UncopiableClass (UncopiableClass &&)=default | |
UncopiableClass & | operator= (UncopiableClass const &)=delete |
UncopiableClass & | operator= (UncopiableClass &&)=default |
Private Attributes | |
std::vector< TriggerInfoBranch_t > | fBranchInfo |
Data structures for the tree. More... | |
Manages extraction of trigger results and filling of their branches.
This class defines and manages the structure of the branches pertaining the trigger simulation in a ROOT tree.
It supports multiple trigger algorithms in a single ROOT tree entry (which may be defined for example as a physics event or as a particle within a physics event).
The manager is configured with a list of trigger specifications (TriggerInputSpec_t
). One simple branch (with multiple leaves) is created for each specifications.
This manager class encloses all the steps needed to fill a tree with trigger response data. Users will have to take very few steps to integrate its functionality in a module.
extractFor()
) which will manage the extraction of trigger data from that event.Extractor::fetch()
is called for that entry, which will fill all the relevant branch data from the available information. This single steps makes all trigger data ready for filling.TTree::Fill()
).The configuration of this class is performed via a custom configuration data structure. The module may read it directly from its own (FHiCL) configuration or fill it in any other way.
This class defines and manages the structure of the branches pertaining the trigger simulation in a ROOT tree.
It supports multiple trigger algorithms in a single ROOT tree entry (which may be defined for example as a physics event or as a particle within a physics event).
The manager is configured with a list of trigger specifications (TriggerInputSpec_t
). One simple branch (with multiple leaves) is created for each specifications.
This manager class encloses all the steps needed to fill a tree with trigger response data. Users will have to take very few steps to integrate its functionality in a module.
extractFor()
) which will manage the extraction of trigger data from that event.Extractor::fetch()
is called for that entry, which will fill all the relevant branch data from the available information. This single steps makes all trigger data ready for filling.TTree::Fill()
).The configuration of this class is performed via a custom configuration data structure. The module may read it directly from its own (FHiCL) configuration or fill it in any other way.
Definition at line 86 of file Analysis/trigger/details/TriggerResponseManager.h.
sbn::details::TriggerResponseManager::TriggerResponseManager | ( | std::vector< TriggerInputSpec_t > const & | triggerSpecs, |
art::ConsumesCollector & | collector, | ||
TTree & | tree | ||
) |
Initializes tree
to accommodate the specified trigger information.
Definition at line 116 of file Analysis/trigger/details/TriggerResponseManager.cxx.
sbn::details::TriggerResponseManager::TriggerResponseManager | ( | std::vector< TriggerInputSpec_t > const & | triggerSpecs, |
art::ConsumesCollector & | collector, | ||
TTree & | tree | ||
) |
Initializes tree
to accommodate the specified trigger information.
|
private |
Sets up a tree branch and returns its branch information structure.
Definition at line 160 of file Analysis/trigger/details/TriggerResponseManager.cxx.
|
private |
Sets up a tree branch and returns its branch information structure.
|
private |
Sets up the tree branches and returns the branch information structures.
Definition at line 148 of file Analysis/trigger/details/TriggerResponseManager.cxx.
|
private |
Sets up the tree branches and returns the branch information structures.
|
private |
Declares all the data products we are going to read.
Definition at line 139 of file Analysis/trigger/details/TriggerResponseManager.cxx.
|
private |
Declares all the data products we are going to read.
auto sbn::details::TriggerResponseManager::extractorsFor | ( | art::Event const & | event | ) |
Returns an object to extract trigger information from event
.
Definition at line 131 of file Analysis/trigger/details/TriggerResponseManager.cxx.
Extractors sbn::details::TriggerResponseManager::extractorsFor | ( | art::Event const & | event | ) |
Returns an object to extract trigger information from event
.
|
private |
Data structures for the tree.
Definition at line 201 of file Analysis/trigger/details/TriggerResponseManager.h.