Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-6220

Bug or feature in TH3::Project3DProfile (should be changed to to bug in TProfile3D::Project3DProfile and TProfile2D::ProfileX(Y) )

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • 5.34/00
    • None
    • Other
    • None
    • Any

    Description

      The results of TH3::Project3DProfile() are not meaningful.

      I believe I found the faulty line in this member function:
      TProfile2D TH3::DoProjectProfile2D(const char name, const char * title, TAxis* projX, TAxis* projY,
      bool originalRange, bool useUF, bool useOF)
      (line 2707):
      p2->Fill( projY->GetBinCenter(iybin) , projX->GetBinCenter(ixbin), outAxis->GetBinCenter(outbin), cont);

      Could it be that this line should read:
      p2->Fill( projY->GetBinCenter(iybin) , projX->GetBinCenter(ixbin), cont);

      I am currently using Root 5.34/18, but this feature has occurred in previous versions as well. I would appreciate if this could be fixed in the next version.

      Thanks.

      Attachments

        Activity

          People

            moneta Lorenzo Moneta
            9090dacc98af0ee34916 Patricia Liebing (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: