Go to the documentation of this file.
17 #include <TProfile2D.h>
18 #include <TProfile3D.h>
40 if (ybins == 0 &&
f1D[name])
return;
41 if (
f2D[name])
return;
43 f1D[name] =
new TH1D(name.data(), name.data(), xbins, xlow, xhigh);
46 name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
59 if (
f3D[name])
return;
60 f3D[name] =
new TH3D(name.data(),
84 new TProfile(name.data(), name.data(), xbins, xlow, xhigh);
87 name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
101 fProfile3D[name] =
new TProfile3D(name.data(),
116 if (!
f1D[name])
return;
119 if (!
f2D[name])
return;
120 f2D[name]->Fill(
x,
y);
128 if (!
f3D[name])
return;
129 f3D[name]->Fill(
x,
y, z);
163 if (!
f2D[name])
return;
164 f2D[name]->Fill(
x,
y, z);
168 if (!
f1D[name])
return;
169 f1D[name]->Fill(
x, w);
void FillW(std::string name, Double_t x, Double_t w)
std::map< TString, TH2D * > f2D
void FillProfile3D(std::string name, Double_t x, Double_t y, Double_t z, Double_t w=1.)
void Fill3D(std::string name, Double_t x, Double_t y, Double_t z)
void CreateProfile3D(std::string name, Int_t xbins, Double_t xlow, Double_t xhigh, Int_t ybins, Double_t ylow, Double_t yhigh, Int_t zbins, Double_t zlow, Double_t zhigh)
std::map< TString, TProfile3D * > fProfile3D
CbmTrdCheckUtil()
default Constructor with messages
void CreateHist(std::string name, Int_t xbins, Double_t xlow, Double_t xhigh, Int_t ybins=0, Double_t ylow=1., Double_t yhigh=1.)
void Fill(std::string name, Double_t x, Double_t y=9999.)
std::map< TString, TH1D * > f1D
std::map< TString, TProfile2D * > fProfile2D
std::map< TString, TProfile * > fProfile1D
void CreateProfile(std::string name, Int_t xbins, Double_t xlow, Double_t xhigh, Int_t ybins=0, Double_t ylow=1., Double_t yhigh=1.)
void CreateHist3D(std::string name, Int_t xbins, Double_t xlow, Double_t xhigh, Int_t ybins, Double_t ylow, Double_t yhigh, Int_t zbins, Double_t zlow, Double_t zhigh)
std::map< TString, TH3D * > f3D
void FillProfile(std::string name, Double_t x, Double_t y, Double_t z=9999.)