15#include <TProfile2D.h>
16#include <TProfile3D.h>
31 Double_t ylow, Double_t yhigh)
33 if (ybins == 0 &&
f1D[name])
return;
34 if (
f2D[name])
return;
35 if (ybins == 0)
f1D[name] =
new TH1D(name.data(), name.data(), xbins, xlow, xhigh);
37 f2D[name] =
new TH2D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
41 Double_t ylow, Double_t yhigh, Int_t zbins, Double_t zlow, Double_t zhigh)
43 if (
f3D[name])
return;
44 f3D[name] =
new TH3D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh, zbins, zlow, zhigh);
48 Double_t ylow, Double_t yhigh)
52 if (ybins == 0)
fProfile1D[name] =
new TProfile(name.data(), name.data(), xbins, xlow, xhigh);
54 fProfile2D[name] =
new TProfile2D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh);
58 Double_t ylow, Double_t yhigh, Int_t zbins, Double_t zlow, Double_t zhigh)
62 new TProfile3D(name.data(), name.data(), xbins, xlow, xhigh, ybins, ylow, yhigh, zbins, zlow, zhigh);
68 if (!
f1D[name])
return;
72 if (!
f2D[name])
return;
73 f2D[name]->Fill(
x,
y);
79 if (!
f3D[name])
return;
80 f3D[name]->Fill(
x,
y, z);
108 if (!
f2D[name])
return;
109 f2D[name]->Fill(
x,
y, z);
114 if (!
f1D[name])
return;
115 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.)