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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/00
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:

      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

        1. Example_TH3Project3DProfile.pdf
          41 kB
          Patricia Liebing
        2. testProfileProjections.C
          2 kB
          Lorenzo Moneta

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: