15 #ifndef FANCYTTREEINTERPOLATOR_H 16 #define FANCYTTREEINTERPOLATOR_H 47 void add(TString yAxisText);
48 void add(TString yAxisText, TString cut);
49 void add(TString yAxisText, Double_t wrapValue);
50 void add(TString yAxisText, TString cut, Double_t wrapValue);
51 Double_t
interp(TString yAxisText, Double_t xAxisValue);
52 TGraph*
get(TString yAxisText);
56 TGraph*
makeSortedTGraph(TString yAxisText, TString cutString, Double_t wrapValue);
68 #endif //FANCYTTREESORTERANDINTERPOLATOR_H std::map< TString, TGraph * > fStringToGraph
Internally stored TGraphs, accessed by TTree branch name.
TString fXAxisText
Branch name with which the intepolater was initialized.
TGraph * makeSortedTGraph(TString yAxisText)
Makes a sorted TGraph from fTree->Draw() with no cuts.
Double_t fXmax
Stored x-axis lower limit.
TTree * fTree
TTree with which the intepolater was initialized.
Namespace which wraps everything in the library.
~FancyTTreeInterpolator()
Desonstructor.
std::map< TString, Double_t > fStringToWrapValue
Internally stored wrapValues, accessed by TTree branch name.
void add(TString yAxisText)
Adds a TGraph to the interally stored TGraphs.
Double_t interp(TString yAxisText, Double_t xAxisValue)
Get interpolated yAxisText variable at xAxisValue (time).
A class to interpolate sparse, but continuous data in a TTree.
Double_t fXmin
Stored x-axis lower limit.
FancyTTreeInterpolator(TTree *t, TString xAxisText)
Constructor.