FairRoot icon indicating copy to clipboard operation
FairRoot copied to clipboard

Tutorial4 plots.C: errors in macro

Open pbelecky opened this issue 2 years ago • 1 comments

FairRoot version: v18.6.4

Errors while running examples/simulation/Tutorial4/macros/plots.C:

$ cd examples/simulation/Tutorial4/macros
$ root plots.C
/simulation/Tutorial4/macros/plots.C:8:1: error: C++ requires a type specifier for all declarations
plots(Int_t nEvents = 1000, Int_t iout = 1, TString mcEngine = "TGeant3")
...

When I add void in front of plots() function declaration then following errors get when run macro:

$ root plots.C
...
simulation/Tutorial4/macros/plots.C:22:11: error: no member named 'AddFriend' in 'FairRunAna'
    fRun->AddFriend(RecoFile.Data());
...

pbelecky avatar Jul 08 '22 12:07 pbelecky

Hi @pavel532,

#1212 has been merged and should fix this. Can you take a look?

ChristianTackeGSI avatar Jul 19 '22 11:07 ChristianTackeGSI

Problem has been fixed.

karabowi avatar Jul 11 '24 13:07 karabowi