![]() |
ATLAS Offline Software
|
#include <Formula.h>
Public Member Functions | |
| void | testInvariant () const |
| effects: test the invariant of this object guarantee: no-fail | |
| Formula () | |
| effects: standard default constructor guarantee: no-fail | |
| Formula (const std::string &name, const std::string &formula, TTree *tree) | |
| effects: standard constructor guarantee: strong failures: out of memory II | |
| ~Formula () | |
| effects: standard destructor guarantee: no-fail | |
| void | reset (TTree *tree) |
| effects: reset this formula to a new tree guarantee: strong failures: out of memory II failures: TTreeFormula error requires: !formula().empty() | |
| const std::string & | formula () const |
| description: the formula used guarantee: no-fail | |
| bool | valid () const |
| returns: whether the formula is valid guarantee: no-fail | |
| int | ndim () const |
| returns: the number of unspecified array dimensions for the given formula guarantee: no-fail requires: valid() | |
| std::size_t | ndata () const |
| returns: the number of data entries for the formula with the given index guarantee: strong failures: TTreeFormula errors requires: valid() | |
| Double_t | value (std::size_t data) const |
| returns: the result of evaluating the formula with the given index for the given data entry guarantee: strong failures: TTreeFormula errors requires: valid() requires: data < getNData() | |
Private Member Functions | |
| Formula (const Formula &that) | |
| rationale: to avoid broken objects | |
| Formula & | operator= (const Formula &that) |
Private Attributes | |
| std::string | m_formula |
| description: members directly corresponding to accessors | |
| std::string | m_name |
| description: the name we use for the formula | |
| TTree * | m_tree |
| description: the tree we are connected to | |
| TTreeFormula * | m_form |
| description the formula used | |
| TTreeFormulaManager * | m_manager |
| description: the manager used | |
| int | m_ndim |
| description: the number of array dimensions we need to loop over, or -1 if we are in error | |
| Long64_t | m_entry |
| description: the last entry we read | |
| Int_t | m_ndata |
| description: the number of data entries | |
| std::vector< Double_t > | m_cache |
| description: the cache of data entries | |
| std::vector< bool > | m_read |
| description: whether we read the given data entry | |
| MD::Formula::Formula | ( | ) |
effects: standard default constructor guarantee: no-fail
Definition at line 63 of file Formula.cxx.
effects: standard constructor guarantee: strong failures: out of memory II
Definition at line 73 of file Formula.cxx.
| MD::Formula::~Formula | ( | ) |
effects: standard destructor guarantee: no-fail
Definition at line 86 of file Formula.cxx.
|
private |
rationale: to avoid broken objects
| const std::string & MD::Formula::formula | ( | ) | const |
description: the formula used guarantee: no-fail
Definition at line 134 of file Formula.cxx.
| std::size_t MD::Formula::ndata | ( | ) | const |
returns: the number of data entries for the formula with the given index guarantee: strong failures: TTreeFormula errors requires: valid()
Definition at line 162 of file Formula.cxx.
| int MD::Formula::ndim | ( | ) | const |
returns: the number of unspecified array dimensions for the given formula guarantee: no-fail requires: valid()
Definition at line 152 of file Formula.cxx.
| void MD::Formula::reset | ( | TTree * | tree | ) |
effects: reset this formula to a new tree guarantee: strong failures: out of memory II failures: TTreeFormula error requires: !formula().empty()
Definition at line 97 of file Formula.cxx.
| void MD::Formula::testInvariant | ( | ) | const |
effects: test the invariant of this object guarantee: no-fail
Definition at line 31 of file Formula.cxx.
| bool MD::Formula::valid | ( | ) | const |
returns: whether the formula is valid guarantee: no-fail
Definition at line 143 of file Formula.cxx.
| Double_t MD::Formula::value | ( | std::size_t | data | ) | const |
returns: the result of evaluating the formula with the given index for the given data entry guarantee: strong failures: TTreeFormula errors requires: valid() requires: data < getNData()
Definition at line 195 of file Formula.cxx.
|
mutableprivate |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
mutableprivate |
|
private |