6 #ifndef CROMBIETOOLS_PLOTTOOLS_PLOT2D_H 7 #define CROMBIETOOLS_PLOTTOOLS_PLOT2D_H 9 #include "TMatrixDSym.h" 10 #include "TGraphErrors.h" 36 void AddMapping ( Int_t from, Int_t to, Double_t fact = 1.0 );
38 virtual std::vector<TGraphErrors*>
MakeGraphs ( TString ParameterExpr );
40 void DoFits ( Int_t NumXBins, Double_t *XBins,
41 Int_t NumYBins, Double_t MinY, Double_t MaxY );
43 void DoFits ( Int_t NumXBins, Double_t MinX, Double_t MaxX,
44 Int_t NumYBins, Double_t MinY, Double_t MaxY );
46 void MakeCanvas ( TString FileBase, std::vector<TGraphErrors*> theGraphs,
47 TString XLabel, TString YLabel, Double_t YMin, Double_t YMax,
48 Bool_t logY =
false );
50 void MakeCanvas ( TString FileBase, TString ParameterExpr, TString XLabel, TString YLabel,
51 Double_t YMin, Double_t YMax, Bool_t logY =
false );
53 void MakeCanvas ( TString FileBase, Int_t ParameterNum, TString XLabel, TString YLabel,
54 Double_t YMin, Double_t YMax, Bool_t logY =
false );
62 std::vector<TF1*>
MakeFuncs ( TString ParameterExpr, Double_t MinX, Double_t MaxX );
64 void MapTo ( TF1* fitFunc, TF1* looseFunc );
65 virtual void DoFit ( TF1* fitFunc, TF1* looseFunc, TH2D* histToFit,
66 TF1**& fitHolder, TMatrixDSym**& covHolder );
68 virtual TF1*
MakeFunction ( TString
function, Double_t MinX, Double_t MaxX,
69 Double_t MinY, Double_t MaxY )
70 {
return new TF2(
"func",
function, MinX, MaxX, MinY, MaxY); }
75 std::vector<TMatrixDSym**>
fCovs;