Hi, For any RooStats applicaton I am trying to use I am getting a lot of these warning messages, and then the program terminates. Anyone has any idea what are all these warnings messages are and how to get rid of them?
Warning in TBufferFile::WriteObjectAny:
since RooAbsPdf has no public constructor
which can be called without argument, objects of this class
can not be read with the current library. You will need to
add a default constructor before attempting to read it.
Hi, I am using 5.24. The code compiles under CMT; ROOT is called as an external package. I have no problems using any other ROOT/ROOFit applications…
Cheers.
Hi, I have partially solved this issue… The problem seems to arise from a pdf component which is constructed using the RooNDKeysPdf. It appears that this pdf constructor has a problem with persistence.
Is there any other way to overcome this problem, without the need to change the pdf constructor?
Almost all pdfs can be persisted, but RooNDKeysPdf is an exception
for now because it contains complex STL data members that
are incorrectly parsed by rootcint, so that standard ROOT persistence
wil not work. I am in contact with the author on this, but I do not
foresee a solution on a very short time scale.
Warning in TBufferFile::WriteObjectAny: since RooNDKeysPdf has no public constructor
which can be called without argument, objects of this class
can not be read with the current library. You will need to
add a default constructor before attempting to read it.
Warning in TClass::TClass: no dictionary for class RooNDKeysPdf::BoxInfo is available
Warning in TStreamerInfo::Build:: RooNDKeysPdf: RooNDKeysPdf::BoxInfo has no streamer or dictionary, data member “_fullBoxInfo” will not be saved
And I am using version 5.34, is this still not available?
Yes, sorry for the late response, I did not see your reply. I attached the code if you start a root session in the run directory it compiles and then you have to
root [0] Test_RooNDKeysPdf()
To make it run, you can see that it says:
[#1] INFO:Eval -- RooAbsReal::attachToTree(wt) TTree Float_t branch wt will be converted to double precision
[#1] INFO:Eval -- RooAbsReal::attachToTree(wtPRW) TTree Float_t branch wtPRW will be converted to double precision
Warning in <TKey::TKey>: since RooNDKeysPdf has no public constructor
which can be called without argument, objects of this class
can not be read with the current library. You will need to
add a default constructor before attempting to read it.
Warning in <TClass::TClass>: no dictionary for class RooNDKeysPdf::BoxInfo is available
Warning in <TStreamerInfo::Build:>: RooNDKeysPdf: RooNDKeysPdf::BoxInfo has no streamer or dictionary, data member "_fullBoxInfo" will not be saved
Could you please modify it so that it works? then I can adapt accordingly my code.