Hi,
I defined a Pdf(m,t) that I use to generate data with m in the range [m_min=5190,m_max=5500] and t in [t_min=-2,t_max=12]
I would like to fit the data selecting only the events with t in the subrange [t_1=0.5;t_2=12]
So I defined
t->setRange(“largeTimes”,0.5,12);
If I define:
RooNLLVar nll_TOT = new RooNLLVar(name.c_str(),“log(L)”,pdf_TOT,*data,Extended(true),Range(“largeTimes”));
I get this message:
RooRealVar::setRange(m) new range named ‘NormalizationRange’ created with bounds [5190,5500]
RooRealVar::setRange(t) new range named ‘NormalizationRange’ created with bounds [-2,12]
RooRealVar::setRange(m) new range named ‘fit’ created with bounds [5190,5500]
RooRealVar::setRange(t) new range named ‘fit’ created with bounds [-2,12]
_refCoefRangeName = 0x3e7eff0
RooAddPdf::syncCoefProjList(pdf_TOT) creating coefficient projection integrals
from current normalization: (m,t)
with current range:
to reference normalization: (m,t)
with reference range: NormalizationRange
_refCoefRangeName = 0x3e7eff0
RooAddPdf::syncCoefProjList(pdf_sig_mass) creating coefficient projection integrals
from current normalization: (m)
with current range:
to reference normalization: (m)
with reference range: NormalizationRange
RooNLLVar::RooNLLVar ERROR: unrecognized command: RangeWithName
The fit works anyways, but the plots I do after minimization indicate that the normalization of the pdf might have some problems
While if I type
RooNLLVar nll_TOT = new RooNLLVar(name.c_str(),"-log(L)",pdf_TOT,*data,true,“t>0.5”);
I get no error
RooRealVar::setRange(m) new range named ‘NormalizationRange’ created with bounds [5190,5500]
RooRealVar::setRange(t) new range named ‘NormalizationRange’ created with bounds [-2,12]
RooRealVar::setRange(m) new range named ‘fit’ created with bounds [5190,5500]
RooRealVar::setRange(t) new range named ‘fit’ created with bounds [-2,12]
_refCoefRangeName = 0x3e7ef70
RooAddPdf::syncCoefProjList(pdf_TOT) creating coefficient projection integrals
from current normalization: (m,t)
with current range:
to reference normalization: (m,t)
with reference range: NormalizationRange
_refCoefRangeName = 0x3e7ef70
RooAddPdf::syncCoefProjList(pdf_sig_mass) creating coefficient projection integrals
from current normalization: (m)
with current range:
to reference normalization: (m)
with reference range: NormalizationRange
and the same problems of normalization.
From the message above it seems that the fit and normalization range is still m=[5190,5500] t=[-2,12]
Could you help me to understand if this is correct?
Thanks,
Stefania