Hello,
I am using RooUnfold on lxplus7 and to do so I use a specific source command:
source /cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc10-opt/setup.sh
source build/setup.sh
In the same code, I try to fill a TProfile histogram:
TProfile *h_profV2_5_gen = new TProfile("h_profV2_5_gen","Profile v2 5 gen",5,0,40,-1,1);
h_profV2_5_gen->Fill(cos_2phi_gen);
And I get the error:
In file included from input_line_8:1:
/afs/cern.ch/user/c/clemahie/Unfold2/RooUnfold/examples/test4_fit_eff.cxx:293:23: error: ‘Fill’ is a private member of ‘TProfile’
h_profV2_5_gen->Fill(cos_2phi_gen);
~~~~~~~~~~~~~~^~
/cvmfs/sft.cern.ch/lcg/releases/ROOT/v6.24.00-a725e/x86_64-centos7-gcc10-opt/include/TProfile.h:62:10: note: declared private here
Int_t Fill(Double_t) { MayNotUse(“Fill(Double_t)”); return -1;}
^
root [1]
I haven’t gotten this error before with TProfiles, so I assume this is specific to the ROOT setup I’m using. Is there a way around this?
Thanks,
Cole
Please read tips for efficient and successful posting and posting code
Please fill also the fields below. Note that root -b -q
will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug
from the ROOT prompt to pre-populate a topic.
ROOT Version: ROOT 6.24/00
Platform: Ubuntu
Compiler: Not Provided