Changeset 19254


Ignore:
Timestamp:
Oct 22, 2018, 6:42:24 PM (10 months ago)
Author:
tbretz
Message:
Compatibility with root 6 -- untested
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhbase/MH3.cc

    r17642 r19254  
    527527        InitLabels(*fHist->GetZaxis());
    528528
     529#if ROOT_VERSION_CODE < ROOT_VERSION(6,00,00)
    529530    if (type&kLabelsXYZ)
    530531        fHist->SetBit(TH1::kCanRebin);
     532#else
     533    // https://root.cern.ch/content/main-histogram-changes-root-6
     534    if (type&kLabelsXYZ)
     535        fHist->SetCanExtend(TH1::kAllAxes);
     536#endif
    531537}
    532538
Note: See TracChangeset for help on using the changeset viewer.