Hello,
I am using RooMCStudy and would like to apply a gaussian smearing to the number of events input in the generation cycle. To do this I am trying to use sampleGaussian from the class RooRandomizeParamMCSModule. I have attached some sample code. If you remove the line randModule.sampleGaussian(nsig,120,1); and instead comment in randModule.sampleSumUniform(nsig,50,500) ; it runs fine. However when I try to use sampleGaussian it seg faults with the error shown below. I am running ROOT version 5.26 and RooFit v3.12.
Best Regards,
Sinéad
#5 0x00007f9272bf9b44 in RooRandomizeParamMCSModule::processBeforeGen(int)
()
from
/home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#6 0x00007f9272ba928f in RooMCStudy::run(bool, bool, int, int, bool, char
const*) ()
from
/home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#7 0x00007f9272ba9bc1 in RooMCStudy::generateAndFit(int, int, bool, char
const*) ()
from
/home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#8 0x00007f9272f90aa3 in G__G__RooFitCore3_202_0_4(G__value*, char const*,
G__param*, int) ()
from
/home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#9 0x00007f9276cdd1f4 in Cint::G__ExceptionWrapper(int (*)(G__value*, char
const*, G__param*, int), G__value*, char*, G__param*, int) () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#10 0x00007f9276d8b2b0 in G__execute_call () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#11 0x00007f9276d8cad3 in G__call_cppfunc () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#12 0x00007f9276d6833d in G__interpret_func () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#13 0x00007f9276d571e8 in G__getfunction () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#14 0x00007f9276e43654 in G__getstructmem () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#15 0x00007f9276e3c8bd in G__getvariable () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#16 0x00007f9276d2950f in G__getitem () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#17 0x00007f9276d2dc50 in G__getexpr () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#18 0x00007f9276db933f in G__exec_statement () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#19 0x00007f9276d69aec in G__interpret_func () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#20 0x00007f9276d572c1 in G__getfunction () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#21 0x00007f9276d29c9a in G__getitem () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#22 0x00007f9276d2dc50 in G__getexpr () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#23 0x00007f9276d3b7d4 in G__calc_internal () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#24 0x00007f9276dc849c in G__process_cmd () from
/home/sinead/Software/ROOT_5_26/lib/root/libCint.so
#25 0x00007f92778b2515 in TCint::ProcessLine(char const*,
TInterpreter::EErrorCode*) ()
from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#26 0x00007f92778aedf3 in TCint::ProcessLineSynch(char const*,
TInterpreter::EErrorCode*) ()
from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#27 0x00007f92777e76b3 in TApplication::ExecuteFile(char const*, int*, bool)
()
from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#28 0x00007f92777e59f5 in TApplication::ProcessLine(char const*, bool, int*)
()
from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#29 0x00007f9276666e4f in TRint::HandleTermInput() () from
/home/sinead/Software/ROOT_5_26/lib/root/libRint.so
#30 0x00007f92778c4699 in TUnixSystem::CheckDescriptors() () from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#31 0x00007f92778c4cc0 in TUnixSystem::DispatchOneEvent(bool) () from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#32 0x00007f9277842c26 in TSystem::InnerLoop() () from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#33 0x00007f9277844e8c in TSystem::Run() () from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#34 0x00007f92777e36ef in TApplication::Run(bool) () from
/home/sinead/Software/ROOT_5_26/lib/root/libCore.so
#35 0x00007f92766687e8 in TRint::Run(bool) () from
/home/sinead/Software/ROOT_5_26/lib/root/libRint.so
#36 0x00000000004011cd in main
()
The lines below might hint at the cause of the crash. If they do not help you then please submit a bug report at http://root.cern.ch/bugs. Please post the ENTIRE stack trace from above as an attachment in addition to anything else that might help us fixing this issue.
from /home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#6 0x00007f9272ba928f in RooMCStudy::run(bool, bool, int, int, bool, char
const*) ()
from /home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
#7 0x00007f9272ba9bc1 in RooMCStudy::generateAndFit(int, int, bool, char
const*) ()
from /home/sinead/Software/ROOT_5_26/lib/root/libRooFitCore.so
This archive was generated by hypermail 2.2.0 : Tue Jan 12 2010 - 17:50:01 CET