56 v.assign(
a,
a + (
size_t)(size + 1));
68 const auto size = axis->
GetNbins() + 1;
100 std::shared_ptr<::TH1D>
h;
106 h->SetDirectory(
nullptr);
154 std::shared_ptr<::TH2D>
h;
155 if (xEdgesEmpty && yEdgesEmpty)
157 else if (!xEdgesEmpty && yEdgesEmpty)
159 else if (xEdgesEmpty && !yEdgesEmpty)
164 h->SetDirectory(
nullptr);
179 double yup,
int nbinsz,
double zlow,
double zup)
185 const double *ybins,
int nbinsz,
const double *zbins)
193 const float *ybins,
int nbinsz,
const float *zbins)
202 std::shared_ptr<::TH3D>
h;
204 h = std::make_shared<::TH3D>(
fName,
fTitle,
fNbinsX,
fXLow,
fXUp,
fNbinsY,
fYLow,
fYUp,
fNbinsZ,
fZLow,
fZUp);
209 h->SetDirectory(
nullptr);
220 fXUp(h.GetXaxis()->GetXmax()),
fYLow(h.GetYmin()),
fYUp(h.GetYmax()), fOption(h.GetErrorOption())
231 double yup,
const char *option)
249 double yup,
const char *option)
256 std::shared_ptr<::TProfile> prof;
263 prof->SetDirectory(
nullptr);
272 fXUp(h.GetXaxis()->GetXmax()), fNbinsY(h.GetNbinsY()),
fYLow(h.GetYaxis()->GetXmin()),
273 fYUp(h.GetYaxis()->GetXmax()), fZLow(h.GetZmin()), fZUp(h.GetZmax()),
fOption(h.GetErrorOption())
279 double ylow,
double yup,
const char *option)
286 double ylow,
double yup,
double zlow,
double zup,
const char *option)
293 double ylow,
double yup,
const char *option)
300 const double *ybins,
const char *option)
307 const double *ybins,
const char *option)
323 std::shared_ptr<::TProfile2D> prof;
324 if (xEdgesEmpty && yEdgesEmpty) {
325 prof = std::make_shared<::TProfile2D>(
fName,
fTitle,
fNbinsX,
fXLow,
fXUp,
fNbinsY,
fYLow,
fYUp,
fZLow,
fZUp,
327 }
else if (!xEdgesEmpty && yEdgesEmpty) {
329 }
else if (xEdgesEmpty && !yEdgesEmpty) {
std::string GetName(const std::string &scope_name)
std::vector< double > fBinYEdges
TProfile2DModel()=default
std::vector< double > fBinYEdges
Namespace for new ROOT classes and functions.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
void FillVector< double >(std::vector< double > &v, int size, double *a)
std::vector< double > fBinZEdges
std::vector< double > fBinYEdges
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
std::vector< double > fBinXEdges
std::shared_ptr<::TH3D > GetHistogram() const
void SetAxisProperties(const TAxis *axis, double &low, double &up, std::vector< double > &edges)
THist< 3, double, THistStatContent, THistStatUncertainty > TH3D
std::vector< double > fBinXEdges
Class to manage histogram axis.
std::vector< double > fBinXEdges
std::shared_ptr<::TH2D > GetHistogram() const
std::shared_ptr<::TProfile > GetProfile() const
std::shared_ptr<::TProfile2D > GetProfile() const
TProfile1DModel()=default
std::vector< double > fBinXEdges
A pseudo container class which is a generator of indices.
THist< 2, double, THistStatContent, THistStatUncertainty > TH2D
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
void FillVector(std::vector< double > &v, int size, T *a)
std::shared_ptr<::TH1D > GetHistogram() const
std::vector< double > fBinXEdges
const TArrayD * GetXbins() const