I have saved RooWorkspace object in a root file it gets saved without any error but while creating a handle to access the object it is giving segmentation violation error(see image)
While running the code to create the RooWorkspace object I am getting following warning message.
[#0] WARNING:ObjectHandling -- RooWorkspace::autoImportClass(wspace.bin11) WARNING Cannot
access code of class RooBtosllModel because header file SingleBuToKstarMuMuFitter/cpp
/RooBtosllModel.h is not found in current directory nor in $ROOTSYS, nor in the search path
test/BuToKstarMuMuV2Fitter/SingleBuToKstarMuMuFitter/cpp
To fix this problem add the required directory to the search path using RooWorkspace::addClassDeclDir(const char* dir)""
Any idea about this error if anyone has encountered?