#include <PreselectAndCategorize.h>
|
| bool | has (const std::string &name) |
| void | clear_outputs () |
| template<typename BaggageType> |
| void | board_input (TTree *tree, const std::string &name) |
| template<typename BaggageType> |
| void | board_output (TTree *tree, const std::string &name) |
| template<typename BaggageType> |
| const BaggageType & | get (const std::string &name) |
| template<typename BaggageType> |
| void | set (const std::string &name, const BaggageType &obj) |
Definition at line 167 of file PreselectAndCategorize.h.
◆ board_input()
template<typename BaggageType>
| void board_input |
( |
TTree * | tree, |
|
|
const std::string & | name ) |
|
inline |
◆ board_output()
template<typename BaggageType>
| void board_output |
( |
TTree * | tree, |
|
|
const std::string & | name ) |
|
inline |
◆ clear_outputs()
Reset the resettable output passengers to their default state.
Call this at the start of each event. Branches that are only set under some condition (e.g. the truth branches, which need a truth match to be computed) would otherwise still be holding the value from the last event that did set them, and that stale value gets written into the tree.
Only outputs are reset – input passengers are attached to the input TTree and are refilled by ROOT on each entry, so clearing them here would throw away the event we are about to process. Class-typed outputs are also left alone; see auto_clearable above. Consumers of a conditionally-set class-typed branch should gate on a companion scalar (which is reset) rather than trusting the object itself.
Definition at line 208 of file PreselectAndCategorize.h.
◆ get()
template<typename BaggageType>
| const BaggageType & get |
( |
const std::string & | name | ) |
|
|
inline |
◆ has()
| bool has |
( |
const std::string & | name | ) |
|
|
inline |
◆ set()
template<typename BaggageType>
| void set |
( |
const std::string & | name, |
|
|
const BaggageType & | obj ) |
|
inline |
◆ bus_
◆ clearable_output_names_
| std::vector<std::string> clearable_output_names_ |
|
private |
The documentation for this class was generated from the following file: