I have a question about RooFFTConvPdf (in ROOT 5.23). I read in the manual that even though RooFFTConvPdf only supports convolution in one observable, it can convolve multidimensional pdfs. This would solve my case, so I did the following:
// decay rate function (signal)
RooDecayRateFullModel decay(“RooDecayRateFullModel”," full decay rate model", *dectime,*angle_1,*angle_2,*angle_3,*par_0,*par_1,*par_2);
// resolution function: gaussian
m = new RooRealVar(“m”,"",0.);
s = new RooRealVar(“s”,"",0.1);
RooFFTConvPdf modelTest(“modelTest”," theory (x) resolution",*dectime,decay,resolution);
RooDataSet* data_sig = modelTest.generate(RooArgSet(*dectime),1000);
The output is 1000 values of the decay time taking in account the convolution with the resolution function.
Looking at the manual it is stated that one can do
So I tried to do this
but it crashes!
From the result it seems to me that the convolution does this
Now, what I was wondering is:
Is it possible to generate all the variables at the same time and not only the variable I convolve? Does anyone know anything about it? Am I allowed to do that or is there a different way to generate all the variables at the same time?
Thanks a lot in advance