Open teteumac opened 1 week ago
Hi, I have never seen this before, but assume that this might be related to the version of certain packages you are using. Could you let me know what versions of coffea, uproot and awkward you are using?
Did you do source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86_64-centos7-gcc11-opt/setup.sh
?
Hi. This environment no longer exists for the sl7 architecture, now only these environments are available:
arm64-mac12-clang140-opt x86_64-el8-gcc11-opt x86_64-el9-clang16-opt x86_64-el9-gcc12-dbg x86_64-el9-gcc13-dbg x86_64-el9-gcc14fp-opt x86_64-ubuntu2004-gcc9-opt
arm64-mac13-clang150-opt x86_64-el9-clang16-dbg x86_64-el9-gcc11-opt x86_64-el9-gcc12-opt x86_64-el9-gcc13-opt x86_64-el9-gcc14-opt x86_64-ubuntu2204-gcc11-opt
For the versions, I have Name: coffea Version: 2024.8.3
Name: uproot Version: 5.3.12
Name: awkward Version: 2.6.7
Best, Matheus Macedo
Hi, this is what I assumed. The tool was written a while back and has not (as far as I know) been used for a while. So it only ever was run under the old el7 architecture, and most likely did not survive the recent OS switch (as most tools did not...)
So there are two options now that I can think of:
1) Running the tool within a singularity container (which you can create with cmssw-el7
)
2) Updating the code to run with a newer version of the packages.
The former is easy if you want to run locally, but will most likely not work for submitting condor jobs.
The latter is a bit more involved. In general, the code provided here is meant as an example on how to implement something like this and is not maintained (anymore) for direct usage (at least I am not doing that since I am no longer involved in B2G triggering, and I do not know whether the current contacts still use the tool). Therefore I unfortunately can not fix this for you, but I can help you with some pointers on how one might do so.
The issue arises when reading events with the coffea NanoEventsFactory
. If I understand the error message correctly, the tool is complaining that the file contains more than one TTree, and it does not know which one to read. Looking at the NanoEventsFactory
method from_root
in the documentation, you should be able to pass the TTree which you want to read (probably Events
) as an option called treepath
. I would suggest to give this a try, maybe this is already enough to fix your problem.
Otherwise, please let me know and we can discuss further!
TL;DR:
Try adding your desired TTree as treepath
to the NanoEventsFactory.from_root
method here.
Dear users, I am using your code to work efficiently with the trigger in my study, however, when I download the repository to my lxplus directory and run the command
python3 runTriggerEfficiencies.py -i example/local/inputfiles.txt -r example/local/refTriggers.txt -t example/local/testTriggers.txt -e 22RunD --doJECs --useGoldenJSON
without making any changes. However, it gives me this error
Can you help me try to solve this problem?