REST version : v2.3.15
REST commit : 3b4459c.
ROOT version: v6.26/06
Geant4 version: v11.0.3
Garfield version: 6
cmake version: 3.25.2
Systems: macOS Monterey v. 12.6.3 (Intel i5 chip), macOS Monterey v. 12.5 (Apple M1 Pro chip).
Dear REST experts,
I just wanted to test the fixes for the MacOS REST installations, described in this post: macOS installation issue: missing files, headers, bin on my local MacOS devices.
However, unfortunately I get some compilation errors within the TRestDataSetOdds.cxx in the latest (02.05.2023) RESTFramework commit, for both devices, see below:
/Users/heucheld/software/rest_test_new/framework/source/framework/analysis/src/TRestDataSetOdds.cxx:242:29: error: ‘histo’ in capture list does not name a variable
auto GetLogOdds = [&histo](double val) {
^
/Users/heucheld/software/rest_test_new/framework/source/framework/analysis/src/TRestDataSetOdds.cxx:243:27: error: reference to local binding ‘histo’ declared in enclosing function ‘TRestDataSetOdds::ComputeLogOdds’
double odds = histo->GetBinContent(histo->GetXaxis()->FindBin(val));
^
/Users/heucheld/software/rest_test_new/framework/source/framework/analysis/src/TRestDataSetOdds.cxx:240:32: note: ‘histo’ declared here
for (const auto& [obsName, histo] : fHistos) {
^
/Users/heucheld/software/rest_test_new/framework/source/framework/analysis/src/TRestDataSetOdds.cxx:243:48: error: reference to local binding ‘histo’ declared in enclosing function ‘TRestDataSetOdds::ComputeLogOdds’
double odds = histo->GetBinContent(histo->GetXaxis()->FindBin(val));
Something stupid from my side? Can you help with that?
Cheers,
Daniel