# Time dependant resolution

**URL:** <https://root-forum.cern.ch/t/time-dependant-resolution/64362>\
**Category:** Roofit and RooStats\
**Created:** [October 28, 2025, 1:37pm UTC](https://root-forum.cern.ch/t/time-dependant-resolution/64362 "2025-10-28T13:37:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aljaz](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@aljaz](https://root-forum.cern.ch/u/aljaz)\
**Post date:** [October 28, 2025, 1:37pm UTC](https://root-forum.cern.ch/t/time-dependant-resolution/64362/1 "2025-10-28T13:37:07Z")

</div>

Dear experts, I am trying to do a convolution of a signal pdf S(t\_reconstructed) with a resolution function R where sigmas depend on t\_generated. I believe this is not in fact a convolution but an integral of: S(x’) R(x-x’, sigma(x’)) dx’, x’ is t\_gen and x is t\_rec. Currently I do:

RooFormulaVar sigma(“sigma”, “\*A\*\*abs(t\_gen)”, RooArgList(t\_gen, A));

RooGaussian R(“R”, “R”, t\_rec, t\_gen, sigma);  
RooProdPdf prod(“prod”, “prod”, S, Conditional(R, t\_rec));

TH2D\* hh = (TH2D\*)prod.createHistogram(“hh”, t\_gen, Binning(10000), YVar(t\_rec,Binning(1000)));

TH1D\* recoProj = hh-\>ProjectionY(“recoProj”);

and than recoProj is my model. I would rather do

RooAbsPdf\* recoProj = prod.createProjection(t\_gen);  
but it doesn’t work with RooBDecay. Any suggestions on how to improve this or do it differently?  
Thanks!

---

<div class="post-metadata">

**Author:** ![devajith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/devajith/32/37165_2.png) [@devajith](https://root-forum.cern.ch/u/devajith)\
**Post date:** [October 28, 2025, 4:02pm UTC](https://root-forum.cern.ch/t/time-dependant-resolution/64362/2 "2025-10-28T16:02:29Z")

</div>

Hi @aljaz,

Welcome to the ROOT forum and thank you for your question.

I’m not entirely sure I understand your issue yet. Could you please share a bit more context?

For eg, the ROOT version you’re using, a minimal reproducer, and the error message you’re seeing.

Cheers,

Dev

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 11, 2025, 4:02pm UTC](https://root-forum.cern.ch/t/time-dependant-resolution/64362/3 "2025-11-11T16:02:55Z")

</div>

Closed on November 11, 2025, 4:02pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
