Hi guys.
I am using ROOT version 6.18.04 on macOS. So I am trying to run my code over a root file example_combined_ConstExample_model.root that I generated using HistFactory. Before I did this I modified the entire source code so that the members RooAbsPdf in each of the files in the ROOT source code were replaced with RooAbsPdf1. Now when I try to run my code over this root file I get the following error:
Warning in <TStreamerInfo::BuildCheck>:
The StreamerInfo of class RooGaussian read from file /Users/cashcrusaders/Documents/UJ_LimitSetting/Input/example_combined_ConstExample_model.root
has the same version (=1) as the active class but a different checksum.
You should update the version to ClassDef(RooGaussian,2).
Do not try to write objects with the current class definition,
the files will not be readable.
So now I am confused as to which version of RooGaussian.h I should update. I tried updating the version that is in my projected folder but I get the same error. I also tried using the following:
ws->addClassDeclImportDir("~/Documents/UJ_LimitSetting/src/inc/");
ws->addClassImplImportDir("~/Documents/UJ_LimitSetting/src/");
ws->importClassCode("RooGaussian1.cxx");
where RooGaussian1.cxx is the modified version