25 #ifndef TSHISTOGRAMFLD_H_
26 #define TSHISTOGRAMFLD_H_
46 void Add(TObject*, TString, TString=
"");
47 int AddPolyBinContent(TH2Poly &,
int bin,
double w=1);
49 void AppendToAllNames(TString, TString sep=
"_");
50 void AppendToAllTitles(TString, TString sep=
" ");
51 void Clear(Option_t* opt=
"");
53 int Fill(
int N, TString* list,
double* values);
54 int Fill(std::vector<TString>&, std::vector<double>&);
55 int Fill(TString vx, TString vy,
double x,
double y,
double w=1,
int opt=0);
56 int Fill(TString vx,
double x,
double w=1,
int opt=0);
57 int FillPoly(TH2Poly *h,
double x,
double y,
double w=1,
int opt=1);
59 int FillHistosFromFile(TFile *,TString opt=
"");
61 int GetHistoDim(
int)
const;
62 TString GetHistoName(
int)
const;
63 TString GetHistoNameX(
int)
const;
64 TString GetHistoNameY(
int)
const;
65 TList *GetListOf(TString)
const;
66 TObject* GetObject(
int)
const;
67 float GetOutliersFrac(TString, TString =
"")
const;
68 TObject* GetTagHisto(TString, TString =
"")
const;
70 bool IsSumw2()
const {
return fSumw2;}
74 bool IsTH1(
const TObject& )
const;
75 bool IsTH2(
const TObject& )
const;
76 bool IsTH2Poly(
const TObject& )
const;
78 void PrependToAllNames(TString,TString sep=
"_");
79 void PrependToAllTitles(TString,TString sep=
" ");
80 void ReplaceToAllTitles(TString);
81 void RenameAllWithBase(TString,TString sep=
"_");
84 void SetSumw2(
bool =
false);
91 void ApplyTH2Style(TH2 *);
93 struct fHistoSettings{
101 std::map<int,fHistoSettings*> fHistoSetsList;
103 std::map<TString,int> fObjPos;
104 std::map<int,TString> fObjName;
106 std::map<int,TString> fObjNameX;
107 std::map<int,TString> fObjNameY;
int Fill(int N, TString *list, double *values)
Definition: TSHistogramFld.cc:308
Definition: TSHistogramFld.h:39
int FillPoly(TH2Poly *h, double x, double y, double w=1, int opt=1)
Definition: TSHistogramFld.cc:366