Hi
I am using root-6.18.04 on MacOS Catalina. I want to importClass code of a renamed version of RooSimultaneous into my RooWorkspace. So I have managed to store simpdf using RooSimultaneous1 which is the renamed version of RooSimultaneous. I am thinking that the first step to do this is:
combined->addClassImplImportDir("/Users/cashcrusaders/Documents/UJ_LimitSetting/src/")
which is the directory where my implementation code is located.
But I get the following error:
Error in <TBufferFile::ReadObject>: trying to read an emulated class (RooSimultaneous1) to store in a compiled pointer (RooAbsArg)
*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TGenCollectionStreamer::ReadBufferGeneric(TBuffer&, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TGenCollectionStreamer.cxx:1337
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadFastArray(void*, TClass const*, int, TMemberStreamer*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:1609
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] int TStreamerInfoActions::ReadSTL<&(TStreamerInfoActions::ReadSTLMemberWiseSameClass(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*, short)), &(TStreamerInfoActions::ReadSTLObjectWiseFastArray(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*, short, unsigned int))>(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoActions.cxx:0
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1390
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadClassBuffer(TClass const*, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3486
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoReadBuffer.cxx:1315
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TStreamerInfoActions::GenericReadAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoActions.cxx:185
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1390
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadClassBuffer(TClass const*, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3486
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRooFitCore.so] RooAbsArg::Streamer(TBuffer&) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/deque:2614
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libCore.so] TStreamerBase::ReadBuffer(TBuffer&, char*) /Users/cashcrusaders/Applications/root-6.18.04_limit/core/meta/src/TStreamerElement.cxx:0
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoReadBuffer.cxx:1342
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TStreamerInfoActions::GenericReadAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoActions.cxx:185
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1390
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadClassBuffer(TClass const*, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3486
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libCore.so] TStreamerBase::ReadBuffer(TBuffer&, char*) /Users/cashcrusaders/Applications/root-6.18.04_limit/core/meta/src/TStreamerElement.cxx:0
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoReadBuffer.cxx:1342
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TStreamerInfoActions::GenericReadAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoActions.cxx:185
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1390
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadClassBuffer(TClass const*, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3486
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libCore.so] TStreamerBase::ReadBuffer(TBuffer&, char*) /Users/cashcrusaders/Applications/root-6.18.04_limit/core/meta/src/TStreamerElement.cxx:0
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoReadBuffer.cxx:1342
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TStreamerInfoActions::GenericReadAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TStreamerInfoActions.cxx:185
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:1390
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadClassEmulated(TClass const*, void*, TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3254
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadObjectAny(TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:2473
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::CheckObject(unsigned int, TClass const*, bool) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:3140
[/Users/cashcrusaders/Applications/root-6.18.04_limit/root-6.18.04-builddir/lib/libRIO.so] TBufferFile::ReadObjectAny(TClass const*) /Users/cashcrusaders/Applications/root-6.18.04_limit/io/io/src/TBufferFile.cxx:2423