Skip to content

Commit

Permalink
Made TH1::CheckConsistency public
Browse files Browse the repository at this point in the history
  • Loading branch information
amecca authored and guitargeek committed Jan 2, 2025
1 parent 639c88d commit 0003ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hist/hist/inc/TH1.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ class TH1 : public TNamed, public TAttLine, public TAttFill, public TAttMarker {
static bool CheckBinLabels(const TAxis* a1, const TAxis* a2);
static bool CheckEqualAxes(const TAxis* a1, const TAxis* a2);
static bool CheckConsistentSubAxes(const TAxis *a1, Int_t firstBin1, Int_t lastBin1, const TAxis *a2, Int_t firstBin2=0, Int_t lastBin2=0);
static int CheckConsistency(const TH1* h1, const TH1* h2);
int LoggedInconsistency(const char* name, const TH1* h1, const TH1* h2, bool useMerge=false) const;

public:
Expand Down Expand Up @@ -199,6 +198,7 @@ class TH1 : public TNamed, public TAttLine, public TAttFill, public TAttMarker {
virtual Double_t Chi2Test(const TH1* h2, Option_t *option = "UU", Double_t *res = nullptr) const;
virtual Double_t Chi2TestX(const TH1* h2, Double_t &chi2, Int_t &ndf, Int_t &igood,Option_t *option = "UU", Double_t *res = nullptr) const;
virtual Double_t Chisquare(TF1 * f1, Option_t *option = "") const;
static Int_t CheckConsistency(const TH1* h1, const TH1* h2);
virtual void ClearUnderflowAndOverflow();
virtual Double_t ComputeIntegral(Bool_t onlyPositive = false);
TObject* Clone(const char *newname = "") const override;
Expand Down
2 changes: 1 addition & 1 deletion hist/hist/src/TH1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ bool TH1::CheckConsistentSubAxes(const TAxis *a1, Int_t firstBin1, Int_t lastBin
////////////////////////////////////////////////////////////////////////////////
/// Check histogram compatibility.

int TH1::CheckConsistency(const TH1* h1, const TH1* h2)
Int_t TH1::CheckConsistency(const TH1* h1, const TH1* h2)
{
if (h1 == h2) return kFullyConsistent;

Expand Down

0 comments on commit 0003ac8

Please sign in to comment.