MD::Formula Class Reference

List of all members.

Public Member Functions

void testInvariant () const
 Formula ()
 Formula (const std::string &name, const std::string &formula, TTree *tree)
 ~Formula ()
void reset (TTree *tree)
const std::string & formula () const
bool valid () const
int ndim () const
std::size_t ndata () const
Double_t value (std::size_t data) const

Constructor & Destructor Documentation

MD::Formula::Formula (  ) 

effects: standard default constructor guarantee: no-fail

MD::Formula::Formula ( const std::string &  name,
const std::string &  formula,
TTree *  tree 
)

effects: standard constructor guarantee: strong failures: out of memory II

MD::Formula::~Formula (  ) 

effects: standard destructor guarantee: no-fail


Member Function Documentation

const std::string & MD::Formula::formula (  )  const

description: the formula used guarantee: no-fail

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()

int MD::Formula::ndim (  )  const

returns: the number of unspecified array dimensions for the given formula guarantee: no-fail requires: valid()

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()

void MD::Formula::testInvariant (  )  const

effects: test the invariant of this object guarantee: no-fail

bool MD::Formula::valid (  )  const

returns: whether the formula is valid guarantee: no-fail

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()


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1