Closed genevb closed 2 months ago
As a quick test, I tried changing from ProcessLineFast()
to ProcessLine()
, but this only caused a more detailed error message, but no change in the evaluated result:
input_line_722:2:3: error: use of undeclared identifier 'kTpcId'
(kTpcId)
^
StiMaker:ERROR - HandleInterpreterException : Error evaluating expression (kTpcId).
Execution of your code was aborted.
(StiMaker
is noted because that is the maker in which StEnumerations
is first initialized.)
Possibly a duplicate of https://github.com/star-bnl/star-sw/issues/454
Possibly a duplicate of #454
Definitely a duplicate....thanks for spotting this, @plexoos. I should have looked more carefully.
There is some initialization performed in
StEnumerations::detectorId()
where it appears agROOT->ProcessLineFast()
is used to evaluate an expression that is an enumeration handle, like "kTpcId", to get its numerical equivalent:https://github.com/star-bnl/star-sw/blob/2ffb8a419a411760a3d8187339c9685c93e2c750/StRoot/StEvent/StEnumerations.cxx#L60
This does not work in ROOT6, resulting in errors like:
...so the numerical equivalent does not get properly determined this way, and the direct consequence is that the local
ids[]
array is all zeros. I am not sure what any downstream consequences of this there are.How to reproduce: