15 #ifndef FANCYTTREEINTERPOLATOR_H 16 #define FANCYTTREEINTERPOLATOR_H 45 void add(TString yAxisText);
46 void add(TString yAxisText, TString cut);
47 void add(TString yAxisText, Double_t wrapValue);
48 void add(TString yAxisText, TString cut, Double_t wrapValue);
49 Double_t
interp(TString yAxisText, Double_t xAxisValue);
50 TGraph*
get(TString yAxisText);
54 TGraph*
makeSortedTGraph(TString yAxisText, TString cutString, Double_t wrapValue);
65 #endif //FANCYTTREESORTERANDINTERPOLATOR_H ~FancyTTreeInterpolator()
Desonstructor.
TTree * fTree
TTree with which the intepolater was initialized.
std::map< TString, Double_t > fStringToWrapValue
Internally stored wrapValues, accessed by TTree branch name.
FancyTTreeInterpolator(TTree *t, TString xAxisText)
Constructor.
std::map< TString, TGraph * > fStringToGraph
Internally stored TGraphs, accessed by TTree branch name.
void add(TString yAxisText)
Adds a TGraph to the interally stored TGraphs.
A class to interpolate sparse, but continuous data in a TTree.
Double_t interp(TString yAxisText, Double_t xAxisValue)
Get interpolated yAxisText variable at xAxisValue (time).
Double_t fXmin
Stored x-axis lower limit.
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.