Hello,
I have recently created a RooWorkspace and saved it to a file, but I receive an error when I try to open the file and retrieve the workspace. The error is lengthy, but it starts as follows:
input_line_48:5:21: error: allocating an object of abstract class type 'RooAbsPdf'
*ret = new RooAbsPdf;
^
/cvmfs/atlas.cern.ch/repo/sw/software/0.5/StatAnalysis/0.5.2/InstallArea/x86_64-el9-gcc13-opt/include/RooAbsArg.h:90:20: note: unimplemented pure virtual method 'clone' in 'RooAbsPdf'
virtual TObject* clone(const char* newname=nullptr) const = 0 ;
^
/cvmfs/atlas.cern.ch/repo/sw/software/0.5/StatAnalysis/0.5.2/InstallArea/x86_64-el9-gcc13-opt/include/RooAbsReal.h:453:18: note: unimplemented pure virtual method 'evaluate' in 'RooAbsPdf'
virtual double evaluate() const = 0;
^
input_line_48:8:21: error: allocating an object of abstract class type 'RooAbsPdf'
*ret = new RooAbsPdf[nary];
^
input_line_48:13:29: error: allocating an object of abstract class type 'RooAbsPdf'
*ret = new (arena) RooAbsPdf;
^
input_line_48:16:29: error: allocating an object of abstract class type 'RooAbsPdf'
*ret = new (arena) RooAbsPdf[nary];
^
Error in <TClingCallFunc::make_ctor_wrapper>: Failed to compile
==== SOURCE BEGIN ====
It should be noted that this workspace uses only native RooFit methods. No custom classes were built for this workspace, based on RooAbsPdf
or otherwise.
This error occurs if I try to open the file via a script (using a command such as RooWorkspace* ws = (RooWorkspace*)wsFile->Get(wsName);
where wsFile
is the name of the file (a const char*
) and wsName
is the name of the workspace (also a const char*
)) or via an interactive Root session (using a command such as wsName->Print()
where wsName
is the name of the workspace).
Furthermore, this error occurs across multiple versions of Root. I have tried to open the workspace in v6.32 and v6.34, and I receive the same error. The workspace is created using Root v6.32.02.
Any help would be greatly appreciated. Thank you
EDIT: The workspace can be found here on /eos
: CERNBox