15#include <TProfile2D.h>
16#include <TProfile3D.h>
30 Double_t ylow, Double_t yhigh)
32 if (ybins == 0 &&
f1D[name])
return;
33 if (
f2D[name])
return;
34 if (ybins == 0)
f1D[name] =
new TH1D(name.data(), name.data(), xbins, xlow, xhigh);
36 f2D[name] =
new TH2D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
40 Double_t ylow, Double_t yhigh,
Int_t zbins, Double_t zlow, Double_t zhigh)
42 if (
f3D[name])
return;
43 f3D[name] =
new TH3D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh, zbins, zlow, zhigh);
47 Double_t ylow, Double_t yhigh)
51 if (ybins == 0)
fProfile1D[name] =
new TProfile(name.data(), name.data(), xbins, xlow, xhigh);
53 fProfile2D[name] =
new TProfile2D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
57 Double_t ylow, Double_t yhigh,
Int_t zbins, Double_t zlow, Double_t zhigh)
61 new TProfile3D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh, zbins, zlow, zhigh);
67 if (!
f1D[name])
return;
71 if (!
f2D[name])
return;
72 f2D[name]->Fill(
x,
y);
78 if (!
f3D[name])
return;
79 f3D[name]->Fill(
x,
y, z);
107 if (!
f2D[name])
return;
108 f2D[name]->Fill(
x,
y, z);
113 if (!
f1D[name])
return;
114 f1D[name]->Fill(
x, w);
CbmTrdCheckUtil()
default Constructor with messages
std::map< TString, TH1D * > f1D
std::map< TString, TH3D * > f3D
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.)
std::map< TString, TH2D * > f2D
void Fill(std::string name, Double_t x, Double_t y=9999.)
std::map< TString, TProfile3D * > fProfile3D
void FillW(std::string name, Double_t x, Double_t w)
std::map< TString, TProfile * > fProfile1D
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, TProfile2D * > fProfile2D
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)
void Fill3D(std::string name, Double_t x, Double_t y, Double_t z)
void FillProfile(std::string name, Double_t x, Double_t y, Double_t z=9999.)
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 FillProfile3D(std::string name, Double_t x, Double_t y, Double_t z, Double_t w=1.)