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());
...
FairRoot version: v18.6.4
Errors while running examples/simulation/Tutorial4/macros/plots.C:
When I add
void
in front ofplots()
function declaration then following errors get when run macro: