JG ROOT Tools libraries  version 5.0 - august 2014
RTreeFunctions.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RTreeFunctions.hh
3  *
4  * Include file for functions related to ROOT TGraph class.
5  */
6 //======================================================================
7 
8 #ifndef R_TREE_FUNCTIONS_HH
9 #define R_TREE_FUNCTIONS_HH
10 
11 #include "RBaseFunctions.hh"
12 
13 #include <TTree.h>
14 #include <TBranch.h>
15 #include <TLeaf.h>
16 #include <TTreeFormula.h>
17 #include <TList.h>
18 
19 
20 //======================================================================
21 /** @name TTree aliases and conditions */
22 //@{
23 
24 extern bool RIsTreeFormula ( TTree & tree, const string & variable );
25 extern TTreeFormula * RGetTreeFormula ( TTree & tree, const string & variable );
26 extern int RGetTreeValue ( TTree & tree, const string & variable, double & value );
27 
28 extern string RTreeSelectEq ( const string & leaf, const double val, const double prec = 0.001 );
29 
30 //@}
31 
32 //----------------------------------------------------------------------
33 #endif
string RTreeSelectEq(const string &leaf, const double val, const double prec)
Definition: RTreeFunctions.cpp:120
TTreeFormula * RGetTreeFormula(TTree &tree, const string &variable)
Definition: RTreeFunctions.cpp:47
bool RIsTreeFormula(TTree &tree, const string &variable)
Definition: RTreeFunctions.cpp:19
int RGetTreeValue(TTree &tree, const string &variable, double &value)
Definition: RTreeFunctions.cpp:84