'ADDITION AND CONVOLUTION' RooFit tutorial macro #210
Convolution in cyclical angular observables theta, and construction of p.d.f in terms of transformed angular coordinates, e.g. cos(theta), where the convolution is performed in theta rather than cos(theta)
(require ROOT to be compiled with –enable-fftw3)
pdf(theta) = T(theta) (x) gauss(theta) pdf(cosTheta) = T(acos(cosTheta)) (x) gauss(acos(cosTheta))
Processing /mnt/build/workspace/root-makedoc-v608/rootspi/rdoc/src/v6-08-00-patches/tutorials/roofit/rf210_angularconv.C...
void rf210_angularconv()
{
Mpsi.setBufferFraction(0) ;
Mpsi.fitTo(*data_psi) ;
RooPlot* frame1 = psi.frame(
Title(
"Cyclical convolution in angle psi")) ;
Mpsi.plotOn(frame1) ;
Mcpsi.setBufferFraction(0) ;
RooDataSet* data_cpsi = Mcpsi.generate(cpsi,10000) ;
psi.setConstant(true);
Mcpsi.fitTo(*data_cpsi) ;
RooPlot* frame2 = cpsi.frame(
Title(
"Same convolution in psi, expressed in cos(psi)")) ;
Mcpsi.plotOn(frame2) ;
TCanvas* c =
new TCanvas(
"rf210_angularconv",
"rf210_angularconv",800,400) ;
}
- Author
- 04/2009 - Wouter Verkerke
Definition in file rf210_angularconv.C.