Class managing the serialization of trigger responses in a simple ROOT tree. More...
Public Member Functions | |
template<typename Thresholds , typename Requirements > | |
ResponseTree (TTree &tree, Thresholds const &thresholds, Requirements const &minReqs) | |
Constructor: accommodates that many thresholds and requirements. More... | |
void | assignResponse (std::size_t iThr, std::size_t iReq, bool resp) |
Assigns the response for the specified trigger. More... | |
template<typename Thresholds , typename Settings > | |
ResponseTree (TTree &tree, Thresholds const &thresholds, Settings const &settings) | |
Constructor: accommodates that many thresholds and trigger settings. More... | |
void | assignResponse (std::size_t iThr, std::size_t iSettings, bool resp) |
Assigns the response for the specified trigger. More... | |
template<typename Thresholds , typename Requirements > | |
ResponseTree (TTree &tree, Thresholds const &thresholds, Requirements const &minReqs) | |
Constructor: accommodates that many thresholds and requirements. More... | |
void | assignResponse (std::size_t iThr, std::size_t iReq, bool resp) |
Assigns the response for the specified trigger. More... | |
Public Member Functions inherited from TreeHolder | |
TreeHolder ()=default | |
TreeHolder (TTree &tree) | |
TTree & | tree () |
TTree const & | tree () const |
Public Member Functions inherited from icarus::trigger::details::TreeHolder | |
TreeHolder ()=default | |
TreeHolder (TTree &tree) | |
TTree & | tree () |
TTree const & | tree () const |
Public Attributes | |
util::MatrixIndices | indices |
std::unique_ptr< bool[]> | RespTxxRxx |
std::unique_ptr< bool[]> | RespTxxSxx |
Class managing the serialization of trigger responses in a simple ROOT tree.
The tree is supplied by the caller. This object will create the proper branches into the tree and assign addresses to them. Then it will assume they will stay assigned.
On assignResponse()
, the proper branch address is assigned the specified trigger response (true
or false
).
The branch structure is: a RespTxxRxx/O
branch for each threshold (numeric) and requirement (also numeric). with a single branch per element.
The tree is supplied by the caller. This object will create the proper branches into the tree and assign addresses to them. Then it will assume they will stay assigned.
On assignResponse()
, the proper branch address is assigned the specified trigger response (true
or false
).
The branch structure is: a RespTxxSxx/O
branch for each threshold and settings label, with a single branch per element.
Definition at line 65 of file MajorityTriggerEfficiencyPlots_module.cc.
ResponseTree::ResponseTree | ( | TTree & | tree, |
Thresholds const & | thresholds, | ||
Requirements const & | minReqs | ||
) |
Constructor: accommodates that many thresholds and requirements.
Definition at line 471 of file MajorityTriggerEfficiencyPlots_module.cc.
ResponseTree::ResponseTree | ( | TTree & | tree, |
Thresholds const & | thresholds, | ||
Settings const & | settings | ||
) |
Constructor: accommodates that many thresholds and trigger settings.
Thresholds | an iterable type yielding objects convertible to numbers |
Settings | an iterable type yielding objects convertible to string |
tree | the ROOT tree to add branches to (managed elsewhere) |
thresholds | collection of thresholds to be included |
settings | collection of trigger settings to be included |
The thresholds
must be convertible to ADC counts (i.e. numbers), while the settings
elements must support conversion to string via to_string()
function call (more precisely, util::to_string()
from larcorealg/CoreUtils/StdUtils.h
).
Definition at line 517 of file SlidingWindowTriggerEfficiencyPlots_module.cc.
ResponseTree::ResponseTree | ( | TTree & | tree, |
Thresholds const & | thresholds, | ||
Requirements const & | minReqs | ||
) |
Constructor: accommodates that many thresholds and requirements.
void ResponseTree::assignResponse | ( | std::size_t | iThr, |
std::size_t | iReq, | ||
bool | resp | ||
) |
Assigns the response for the specified trigger.
Definition at line 496 of file MajorityTriggerEfficiencyPlots_module.cc.
void ResponseTree::assignResponse | ( | std::size_t | iThr, |
std::size_t | iSettings, | ||
bool | resp | ||
) |
Assigns the response for the specified trigger.
void ResponseTree::assignResponse | ( | std::size_t | iThr, |
std::size_t | iReq, | ||
bool | resp | ||
) |
Assigns the response for the specified trigger.
util::MatrixIndices ResponseTree::indices |
Definition at line 68 of file MajorityTriggerEfficiencyPlots_module.cc.
std::unique_ptr< bool[]> ResponseTree::RespTxxRxx |
Definition at line 69 of file MajorityTriggerEfficiencyPlots_module.cc.
std::unique_ptr<bool[]> ResponseTree::RespTxxSxx |
Definition at line 90 of file SlidingWindowTriggerEfficiencyPlots_module.cc.