Giter Site home page Giter Site logo

Comments (9)

VinzenzBildstein avatar VinzenzBildstein commented on July 17, 2024 1

I added the changes (plus a few minor improvements and bug fixes). This should solve this issue, but the automatic closing done by GitHub might have been too early, so I re-opened it for now.
@rumashan can you please update your GRSISort and GRSIData to the newest versions and check that those compile on your system as well?

from grsisort.

VinzenzBildstein avatar VinzenzBildstein commented on July 17, 2024

Thank you for reporting these issues. The problem with using functions not available in older root versions is an old one, I think this will keep coming up until I can find an easy way to do test compilations with different ROOT versions. I am working on making GRSISort build with cmake, which should enable us to do this as a part of the GitHub actions whenever someone creates a pull request.
I'm a bit surprised by the problems with the wigner_6j function, because I did encounter that problem recently and added another check for the HAS_MATHMORE variable around it. But you are saying that your root version does have mathmore installed (meaning root-config --has-mathmore returns yes)?

from grsisort.

rumashan avatar rumashan commented on July 17, 2024

Thanks for your response, Vinzenz. I double checked like you suggested. root-config --has-mathmore does return yes.

from grsisort.

VinzenzBildstein avatar VinzenzBildstein commented on July 17, 2024

I just checked this, and noticed the actual error for the wigner_6j function is because it tries to use TGRSIFunctions::ROOT::Math. I think this might be due to the NamespaceImp macro called at the beginning of the source file, but I'm not sure as I didn't find any documentation of that having been changed (and doing a vimdiff between the Rtypes.h files in 6.08.06 and 6.30.02 doesn't show a big difference).
But I moved the definition of that function to the header, and now that part at least compiles under 6.08.06.
I will check the other errors this is throwing and push all the changes once that version compiles as well.

from grsisort.

rumashan avatar rumashan commented on July 17, 2024

Thanks Vinzenz. I'm being curious and this is possibly irrelevant - In the same source file TGRSIFunctions.cxx, the LegendrePolynomial() function also uses ROOT::Math but on compilation, it doesn't throw an error. If the issue is with the NamespaceImp macro, shouldn't this also throw errors?

from grsisort.

VinzenzBildstein avatar VinzenzBildstein commented on July 17, 2024

You are right. Careful comparison of the two statements shows that the one in LegendrePolynomial starts with ::ROOT::TMath, whereas the statement in the wigner_6j function was just ROOT::TMath. The leading colons ensure that this namespace starts in the global namespace, not the current one. With that change (leaving the definition in the source file and adding the leading colons) and a few others, GRSISort compiles for me using ROOT 6.08.06. Next step is to get GRSIData to compile as well (and double-check that everything still compiles with a newer version).

from grsisort.

rumashan avatar rumashan commented on July 17, 2024

Ah gotcha, that makes sense. Thanks for looking into GRSIData as well.

from grsisort.

rumashan avatar rumashan commented on July 17, 2024

I checked your recent changes and both GRSISort and GRSIData compiled successfully. Thank you Vinzenz!

PS. The GRSISort compilation had a couple of minor warnings. In case you're interested in seeing what they are, I've attached my console output.
grsisort-compile.txt

from grsisort.

rumashan avatar rumashan commented on July 17, 2024

Before this gets closed, I want to bring up something possibly related. I'm having some issues with running the standard ExampleEventHelper using GRSIFrame. I'm testing it on analysis20323_000.root which is an in-beam run from S1723 (Aug-2021) beamtime. I unpacked this run using the latest version of GRSISort
The Helper compiles successfully but crashes promptly after that. The output .root file does not contain any histograms. I don't see anything overtly wrong with the Helper or my Analysis Tree and I'm at a loss to what could be causing this. Apologies if it's a separate issue and should've been opened in a new thread.

Here is the terminal output after running grsiframe and also the output of ErrorReport.sh.
grsiframe-log.txt
error-report.txt

from grsisort.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.