MINT2
Public Member Functions | Protected Attributes | List of all members
TimePdfMaster Class Reference

#include <TimePdfMaster.h>

Public Member Functions

 TimePdfMaster (const MINT::FitParameter &Gamma, const MINT::FitParameter &dGamma, const MINT::FitParameter &dm, const MINT::FitParameter &offset_sigma_dt, const MINT::FitParameter &scale_mean_dt, const MINT::FitParameter &scale_sigma_dt, const MINT::FitParameter &scale_sigma_2_dt, const MINT::FitParameter &c0, const MINT::FitParameter &c1, const MINT::FitParameter &c2, const MINT::FitParameter &c3, const MINT::FitParameter &c4, const MINT::FitParameter &c5, const MINT::FitParameter &c6, const MINT::FitParameter &c7, const MINT::FitParameter &c8, const MINT::FitParameter &c9, const MINT::FitParameter &p0_os, const MINT::FitParameter &p1_os, const MINT::FitParameter &delta_p0_os, const MINT::FitParameter &delta_p1_os, const MINT::FitParameter &avg_eta_os, const MINT::FitParameter &tageff_os, const MINT::FitParameter &tageff_asym_os, const MINT::FitParameter &p0_ss, const MINT::FitParameter &p1_ss, const MINT::FitParameter &delta_p0_ss, const MINT::FitParameter &delta_p1_ss, const MINT::FitParameter &avg_eta_ss, const MINT::FitParameter &tageff_ss, const MINT::FitParameter &tageff_asym_ss, const MINT::FitParameter &production_asym, const MINT::FitParameter &detection_asym, string marginalPdfsPrefix)
 
RooDataSet * sampleEvents (int N=10000)
 
vector< double > getRandom_marginalVals ()
 
void fillProtoData (double dt, int f, int q_OS, double eta_OS, int q_SS, double eta_SS)
 
double getSamplingPdfVal (IDalitzEvent &evt)
 
double get_cosh_term_Val (IDalitzEvent &evt)
 
double get_cosh_term_Integral (IDalitzEvent &evt)
 
double get_sinh_term_Val (IDalitzEvent &evt)
 
double get_sinh_term_Integral (IDalitzEvent &evt)
 
double get_cos_term_Val (IDalitzEvent &evt)
 
double get_cos_term_Integral (IDalitzEvent &evt)
 
double get_sin_term_Val (IDalitzEvent &evt)
 
double get_sin_term_Integral (IDalitzEvent &evt)
 
double get_cosh_coeff_Val (IDalitzEvent &evt)
 
double get_cos_coeff_Val (IDalitzEvent &evt)
 
double get_sinh_coeff_Val (IDalitzEvent &evt)
 
double get_sin_coeff_Val (IDalitzEvent &evt)
 
double get_marginalPdfs_Val (IDalitzEvent &evt)
 
double get_marginalPdfs_product (IDalitzEvent &evt)
 
double get_spline_Val (IDalitzEvent &evt)
 
double get_tau_Val ()
 
double get_dm_Val ()
 
double get_dGamma_Val ()
 
std::pair< double, double > getCalibratedMistag_OS (IDalitzEvent &evt)
 
std::pair< double, double > getCalibratedMistag_OS (double &eta_OS)
 
std::pair< double, double > getCalibratedMistag_OS (IDalitzEvent &evt, double &avg_eta_os, double &p0_os, double &p1_os, double &delta_p0_os, double &delta_p1_os)
 
std::pair< double, double > getCalibratedMistag_SS (IDalitzEvent &evt)
 
std::pair< double, double > getCalibratedMistag_SS (IDalitzEvent &evt, double &avg_eta_ss, double &p0_ss, double &p1_ss, double &delta_p0_ss, double &delta_p1_ss)
 
std::pair< double, double > getCalibratedMistag (double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1)
 
std::pair< double, double > getCalibratedMistag_SS (double &eta_SS)
 
double getCalibratedResolution (double &dt)
 
double getCalibratedResolution (double &dt, double &scale_sigma_dt, double &scale_sigma_2_dt)
 
void listFitParDependencies ()
 
void setAllFitParameters ()
 
void setAllObservables (IDalitzEvent &evt)
 
void setAllObservablesToMean (IDalitzEvent &evt)
 
void setCP_coeff (double norm, double norm_bar, double C, double C_bar, double D, double D_bar, double S, double S_bar)
 
vector< double > getCP_coeff ()
 
void setAllObservablesAndFitParameters (IDalitzEvent &evt)
 
TH1D * plotSpline ()
 
virtual ~TimePdfMaster ()
 

Protected Attributes

const MINT::FitParameter_Gamma
 
const MINT::FitParameter_dGamma
 
const MINT::FitParameter_dm
 
const MINT::FitParameter_offset_sigma_dt
 
const MINT::FitParameter_scale_mean_dt
 
const MINT::FitParameter_scale_sigma_dt
 
const MINT::FitParameter_scale_sigma_2_dt
 
const MINT::FitParameter_c0
 
const MINT::FitParameter_c1
 
const MINT::FitParameter_c2
 
const MINT::FitParameter_c3
 
const MINT::FitParameter_c4
 
const MINT::FitParameter_c5
 
const MINT::FitParameter_c6
 
const MINT::FitParameter_c7
 
const MINT::FitParameter_c8
 
const MINT::FitParameter_c9
 
const MINT::FitParameter_p0_os
 
const MINT::FitParameter_p1_os
 
const MINT::FitParameter_delta_p0_os
 
const MINT::FitParameter_delta_p1_os
 
const MINT::FitParameter_avg_eta_os
 
const MINT::FitParameter_tageff_os
 
const MINT::FitParameter_tageff_asym_os
 
const MINT::FitParameter_p0_ss
 
const MINT::FitParameter_p1_ss
 
const MINT::FitParameter_delta_p0_ss
 
const MINT::FitParameter_delta_p1_ss
 
const MINT::FitParameter_avg_eta_ss
 
const MINT::FitParameter_tageff_ss
 
const MINT::FitParameter_tageff_asym_ss
 
const MINT::FitParameter_production_asym
 
const MINT::FitParameter_detection_asym
 
RooRealVar * _r_t
 Cast of MINT parameters to B2DX parameters. More...
 
RooRealVar * _r_dt
 
RooRealVar * _r_dt_scaled
 
RooCategory * _r_q_OS
 
RooRealVar * _r_eta_OS
 
RooCategory * _r_q_SS
 
RooRealVar * _r_eta_SS
 
RooCategory * _r_f
 
RooCategory * _r_run
 
RooCategory * _r_trigger
 
RooRealVar * _r_tau
 
RooRealVar * _r_dGamma
 
RooRealVar * _r_dm
 
RooRealVar * _r_scale_mean_dt
 
RooRealVar * _r_offset_sigma_dt
 
RooRealVar * _r_scale_sigma_dt
 
RooRealVar * _r_scale_sigma_2_dt
 
RooRealVar * _r_c0
 
RooRealVar * _r_c1
 
RooRealVar * _r_c2
 
RooRealVar * _r_c3
 
RooRealVar * _r_c4
 
RooRealVar * _r_c5
 
RooRealVar * _r_c6
 
RooRealVar * _r_c7
 
RooRealVar * _r_c8
 
RooRealVar * _r_c9
 
RooFormulaVar * _coeff_last
 
RooRealVar * _r_p0_os
 
RooRealVar * _r_p1_os
 
RooRealVar * _r_delta_p0_os
 
RooRealVar * _r_delta_p1_os
 
RooRealVar * _r_avg_eta_os
 
RooRealVar * _r_tageff_os
 
RooRealVar * _r_tageff_asym_os
 
RooRealVar * _r_p0_ss
 
RooRealVar * _r_p1_ss
 
RooRealVar * _r_delta_p0_ss
 
RooRealVar * _r_delta_p1_ss
 
RooRealVar * _r_avg_eta_ss
 
RooRealVar * _r_tageff_ss
 
RooRealVar * _r_tageff_asym_ss
 
RooRealVar * _r_production_asym
 
RooRealVar * _r_detection_asym
 
RooCubicSplineFun_spline
 
RooProduct * _splinePdf
 
RooGaussEfficiencyModel_efficiency
 
RooRealVar * _r_norm
 
RooRealVar * _r_norm_bar
 
RooRealVar * _r_C
 
RooRealVar * _r_C_bar
 
RooRealVar * _r_D
 
RooRealVar * _r_D_bar
 
RooRealVar * _r_S
 
RooRealVar * _r_S_bar
 
DecRateCoeff_Bd_cos_coeff
 
DecRateCoeff_Bd_cosh_coeff
 
DecRateCoeff_Bd_sin_coeff
 
DecRateCoeff_Bd_sinh_coeff
 
TimePdfIntegrator_cosh_term
 
TimePdfIntegrator_sinh_term
 
TimePdfIntegrator_cos_term
 
TimePdfIntegrator_sin_term
 
string _marginalPdfsPrefix
 
TFile * _f_pdfs
 
TH1D * _h_dt
 
RooDataHist * _r_h_dt
 
RooAbsPdf * _pdf_sigma_t
 
TH1D * _h_q_f
 
TH1D * _h_q_OS
 
TH1D * _h_q_SS
 
RooAbsPdf * _pdf_eta_OS
 
TH1D * _h_eta_OS
 
RooDataHist * _r_h_eta_OS
 
RooAbsPdf * _pdf_eta_SS
 
TH1D * _h_eta_SS
 
RooDataHist * _r_h_eta_SS
 
NamedParameter< double > _min_TAU
 
NamedParameter< double > _max_TAU
 
NamedParameter< double > _min_TAUERR
 
NamedParameter< double > _max_TAUERR
 
RooBDecay * _samplingPdf_t
 
RooBDecay * _fitPdf_t
 
RooGaussModel * _resmodel
 
RooEffProd * _samplingPdf_t_eff
 
RooProdPdf * _samplingPdf
 
RooProdPdf * _fitPdf
 
RooDataSet * _protoData
 
RooMCStudy * _sampleGen
 

Detailed Description

Definition at line 52 of file TimePdfMaster.h.

Constructor & Destructor Documentation

◆ TimePdfMaster()

TimePdfMaster::TimePdfMaster ( const MINT::FitParameter Gamma,
const MINT::FitParameter dGamma,
const MINT::FitParameter dm,
const MINT::FitParameter offset_sigma_dt,
const MINT::FitParameter scale_mean_dt,
const MINT::FitParameter scale_sigma_dt,
const MINT::FitParameter scale_sigma_2_dt,
const MINT::FitParameter c0,
const MINT::FitParameter c1,
const MINT::FitParameter c2,
const MINT::FitParameter c3,
const MINT::FitParameter c4,
const MINT::FitParameter c5,
const MINT::FitParameter c6,
const MINT::FitParameter c7,
const MINT::FitParameter c8,
const MINT::FitParameter c9,
const MINT::FitParameter p0_os,
const MINT::FitParameter p1_os,
const MINT::FitParameter delta_p0_os,
const MINT::FitParameter delta_p1_os,
const MINT::FitParameter avg_eta_os,
const MINT::FitParameter tageff_os,
const MINT::FitParameter tageff_asym_os,
const MINT::FitParameter p0_ss,
const MINT::FitParameter p1_ss,
const MINT::FitParameter delta_p0_ss,
const MINT::FitParameter delta_p1_ss,
const MINT::FitParameter avg_eta_ss,
const MINT::FitParameter tageff_ss,
const MINT::FitParameter tageff_asym_ss,
const MINT::FitParameter production_asym,
const MINT::FitParameter detection_asym,
string  marginalPdfsPrefix 
)
inline

Init B2DX parameters

Acceptance

Decay rate coefficients

Time pdf integrators

Marginal pdfs

Definition at line 211 of file TimePdfMaster.h.

221  :
222  _Gamma(Gamma),
223  _dGamma(dGamma),
224  _dm(dm),
225  _offset_sigma_dt(offset_sigma_dt),
226  _scale_mean_dt(scale_mean_dt),
227  _scale_sigma_dt(scale_sigma_dt),
228  _scale_sigma_2_dt(scale_sigma_2_dt),
229  _c0(c0),
230  _c1(c1),
231  _c2(c2),
232  _c3(c3),
233  _c4(c4),
234  _c5(c5),
235  _c6(c6),
236  _c7(c7),
237  _c8(c8),
238  _c9(c9),
239  _p0_os(p0_os),
240  _p1_os(p1_os),
241  _delta_p0_os(delta_p0_os),
242  _delta_p1_os(delta_p1_os),
243  _avg_eta_os(avg_eta_os),
244  _tageff_os(tageff_os),
245  _tageff_asym_os(tageff_asym_os),
246  _p0_ss(p0_ss),
247  _p1_ss(p1_ss),
248  _delta_p0_ss(delta_p0_ss),
249  _delta_p1_ss(delta_p1_ss),
250  _avg_eta_ss(avg_eta_ss),
251  _tageff_ss(tageff_ss),
252  _tageff_asym_ss(tageff_asym_ss),
253  _production_asym(production_asym),
254  _detection_asym(detection_asym),
255  _marginalPdfsPrefix(marginalPdfsPrefix),
256  _min_TAU("min_TAU", 0.4),
257  _max_TAU("max_TAU", 10.),
258  _min_TAUERR("min_TAUERR", 0.),
259  _max_TAUERR("max_TAUERR", 0.1)
260  {
262 
263  // Observables
264  _r_t = new RooRealVar("t", "t", _min_TAU, _max_TAU);
265  _r_dt = new RooRealVar("dt", "dt",_min_TAUERR,_max_TAUERR);
266  _r_f = new RooCategory("qf", "qf");
267  _r_f->defineType("h+", +1);
268  _r_f->defineType("h-", -1);
269  _r_f->setRange("Range_p","h+");
270  _r_f->setRange("Range_m","h-");
271  _r_q_OS = new RooCategory("q_OS", "q_OS");
272  _r_q_OS->defineType("B+", +1);
273  _r_q_OS->defineType("B-", -1) ;
274  _r_q_OS->defineType("untagged", 0);
275  _r_eta_OS = new RooRealVar("eta_OS", "eta_OS",0.,0.5);
276  _r_q_SS = new RooCategory("q_SS", "q_SS");
277  _r_q_SS->defineType("B+", +1);
278  _r_q_SS->defineType("B-", -1) ;
279  _r_q_SS->defineType("untagged", 0);
280  _r_eta_SS = new RooRealVar("eta_SS", "eta_SS",0.,0.5);
281  _r_run = new RooCategory("run", "run");
282  _r_run->defineType("Run1", 1);
283  _r_run->defineType("Run2", 2);
284  _r_trigger = new RooCategory("trigger", "trigger");
285  _r_trigger->defineType("t0", 0);
286  _r_trigger->defineType("t1", 1);
287 
288  // Fit parameters
289  _r_tau = new RooRealVar("tau", "tau",1./_Gamma);
290  _r_dGamma = new RooRealVar("dGamma", "dGamma",_dGamma);
291  _r_dm = new RooRealVar("dm", "dm",_dm);
292 
293  _r_scale_mean_dt = new RooRealVar("scale_mean_dt", "scale_mean_dt", _scale_mean_dt);
294  _r_offset_sigma_dt = new RooRealVar("offset_sigma_dt", "offset_sigma_dt", _offset_sigma_dt);
295  _r_scale_sigma_dt = new RooRealVar("scale_sigma_dt", "scale_sigma_dt", _scale_sigma_dt);
296  _r_scale_sigma_2_dt = new RooRealVar("scale_sigma_2_dt", "scale_sigma_2_dt", _scale_sigma_2_dt);
297 
298  _r_c0 = new RooRealVar("coeff_0", "coeff_0",_c0);
299  _r_c1 = new RooRealVar("coeff_1", "coeff_1",_c1);
300  _r_c2 = new RooRealVar("coeff_2", "coeff_2",_c2);
301  _r_c3 = new RooRealVar("coeff_3", "coeff_3",_c3);
302  _r_c4 = new RooRealVar("coeff_4", "coeff_4",_c4);
303  _r_c5 = new RooRealVar("coeff_5", "coeff_5",_c5);
304  _r_c6 = new RooRealVar("coeff_6", "coeff_6",_c6);
305  _r_c7 = new RooRealVar("coeff_7", "coeff_7",_c7);
306  _r_c8 = new RooRealVar("coeff_8", "coeff_8",_c8);
307  _r_c9 = new RooRealVar("coeff_9", "coeff_9",_c9);
308 
309  _r_p0_os = new RooRealVar("p0_os", "p0_os",_p0_os);
310  _r_p1_os = new RooRealVar("p1_os", "p1_os",_p1_os);
311  _r_delta_p0_os = new RooRealVar("delta_p0_os", "delta_p0_os",_delta_p0_os);
312  _r_delta_p1_os = new RooRealVar("delta_p1_os", "delta_p1_os",_delta_p1_os);
313  _r_avg_eta_os = new RooRealVar("avg_eta_os", "avg_eta_os",_avg_eta_os);
314  _r_tageff_os = new RooRealVar("tageff_os", "tageff_os",_tageff_os);
315  _r_tageff_asym_os = new RooRealVar("tageff_asym_os", "tageff_asym_os",_tageff_asym_os);
316  _r_p0_ss = new RooRealVar("p0_ss", "p0_ss",_p0_ss);
317  _r_p1_ss = new RooRealVar("p1_ss", "p1_ss",_p1_ss);
318  _r_delta_p0_ss = new RooRealVar("delta_p0_ss", "delta_p0_ss",_delta_p0_ss);
319  _r_delta_p1_ss = new RooRealVar("delta_p1_ss", "delta_p1_ss",_delta_p1_ss);
320  _r_avg_eta_ss = new RooRealVar("avg_eta_ss", "avg_eta_ss",_avg_eta_ss);
321  _r_tageff_ss = new RooRealVar("tageff_ss", "tageff_ss",_tageff_ss);
322  _r_tageff_asym_ss= new RooRealVar("tageff_asym_ss", "tageff_asym_ss",_tageff_asym_ss);
323 
324  _r_production_asym = new RooRealVar("production_asym", "production_asym",_production_asym);
325  _r_detection_asym = new RooRealVar("detection_asym", "detection_asym",_detection_asym);
326 
328  vector<RooRealVar*> v_coeff;
329  v_coeff.push_back(_r_c0);
330  v_coeff.push_back(_r_c1);
331  v_coeff.push_back(_r_c2);
332  v_coeff.push_back(_r_c3);
333  v_coeff.push_back(_r_c4);
334  v_coeff.push_back(_r_c5);
335  v_coeff.push_back(_r_c6);
336  v_coeff.push_back(_r_c7);
337  v_coeff.push_back(_r_c8);
338  v_coeff.push_back(_r_c9);
339 
340  //SPLINE KNOTS
341  NamedParameter<double> knot_positions("knot_positions", 0.5, 1., 1.5, 2., 3., 6., 9.5);
342  vector<double> myBinning = knot_positions.getVector();
343 
344  RooArgList tacc_list;
345  for(int i= 0; i<= myBinning.size(); i++){
346  tacc_list.add(*v_coeff[i]);
347  }
348 
349  _coeff_last = new RooFormulaVar(("coeff_"+anythingToString((int)myBinning.size()+1)).c_str(),("coeff_"+anythingToString((int)myBinning.size()+1)).c_str(), "@0 + ((@0-@1)/(@2-@3)) * (@4 - @2)", RooArgList(RooRealConstant::value(1.0), *tacc_list.find(("coeff_"+anythingToString((int)myBinning.size()-1)).c_str()) , RooRealConstant::value(myBinning[myBinning.size()-1]), RooRealConstant::value(myBinning[myBinning.size()-2]), RooRealConstant::value(_r_t->getMax()) ));
350 
351  tacc_list.add(*_coeff_last);
352 
353  // Cubic spline function
354  _spline = new RooCubicSplineFun("spline", "spline", *_r_t, myBinning, tacc_list);
355  //_splinePdf = new RooCubicSplinePdf("splinePdf", "splinePdf", *_r_t, myBinning, tacc_list);
356  _splinePdf = new RooProduct("splinePdf", "splinePdf", RooArgList(*_spline,RooRealConstant::value(0.1)));
357 
358  //_efficiency = new RooGaussEfficiencyModel("resmodel", "resmodel", *_r_t, *_spline, RooRealConstant::value(0.), *_r_dt, *_r_scale_mean_dt, *_r_scale_sigma_dt );
359  _r_dt_scaled = (RooRealVar*) new RooFormulaVar( "r_dt_scaled","r_dt_scaled", "@0+@1*@2+@3*@2*@2",RooArgList(*_r_offset_sigma_dt,*_r_scale_sigma_dt,*_r_dt,*_r_scale_sigma_2_dt));
360  _efficiency = new RooGaussEfficiencyModel("resmodel", "resmodel", *_r_t, *_spline, RooRealConstant::value(0.), *_r_dt_scaled, *_r_scale_mean_dt, RooRealConstant::value(1.) );
361 
362  // CP coefficients
363  _r_norm = new RooRealVar("norm", "norm",1);
364  _r_norm_bar = new RooRealVar("norm_bar", "norm_bar",1);
365  _r_C = new RooRealVar("C", "C",1);
366  _r_C_bar = new RooRealVar("Cbar", "Cbar",-1);
367  //_r_C_bar= (RooRealVar*) new RooFormulaVar("Cbar","-1. * @0",RooArgList(*_r_C));
368  _r_D= new RooRealVar("D", "D",0);
369  _r_D_bar= new RooRealVar("Dbar", "Dbar",0);
370  _r_S= new RooRealVar("S", "S",0);
371  _r_S_bar= new RooRealVar("Sbar", "Sbar",0);
372 
374  _cosh_coeff = new DecRateCoeff_Bd("cosh_coeff",
375  "cosh_coeff",
377  *_r_f,
378  *_r_norm,
379  *_r_norm_bar,
380  *_r_q_OS,
381  *_r_eta_OS,
382  *_r_p0_os,
383  *_r_p1_os,
386  *_r_avg_eta_os,
387  *_r_tageff_os,
389  *_r_q_SS,
390  *_r_eta_SS,
391  *_r_p0_ss,
392  *_r_p1_ss,
395  *_r_avg_eta_ss,
396  *_r_tageff_ss,
400 
401  _cos_coeff = new DecRateCoeff_Bd("cos_coeff",
402  "cos_coeff",
404  *_r_f,
405  *_r_C,
406  *_r_C_bar,
407  *_r_q_OS,
408  *_r_eta_OS,
409  *_r_p0_os,
410  *_r_p1_os,
413  *_r_avg_eta_os,
414  *_r_tageff_os,
416  *_r_q_SS,
417  *_r_eta_SS,
418  *_r_p0_ss,
419  *_r_p1_ss,
422  *_r_avg_eta_ss,
423  *_r_tageff_ss,
427 
428  _sinh_coeff = new DecRateCoeff_Bd("sinh_coeff",
429  "sinh_coeff",
431  *_r_f,
432  *_r_D,
433  *_r_D_bar,
434  *_r_q_OS,
435  *_r_eta_OS,
436  *_r_p0_os,
437  *_r_p1_os,
440  *_r_avg_eta_os,
441  *_r_tageff_os,
443  *_r_q_SS,
444  *_r_eta_SS,
445  *_r_p0_ss,
446  *_r_p1_ss,
449  *_r_avg_eta_ss,
450  *_r_tageff_ss,
454 
455  _sin_coeff = new DecRateCoeff_Bd("sin_coeff",
456  "sin_coeff",
458  *_r_f,
459  *_r_S,
460  *_r_S_bar,
461  *_r_q_OS,
462  *_r_eta_OS,
463  *_r_p0_os,
464  *_r_p1_os,
467  *_r_avg_eta_os,
468  *_r_tageff_os,
470  *_r_q_SS,
471  *_r_eta_SS,
472  *_r_p0_ss,
473  *_r_p1_ss,
476  *_r_avg_eta_ss,
477  *_r_tageff_ss,
481 
486  ,_c0, _c1, _c2
487  ,_c3, _c4, _c5
488  ,_c6, _c7, _c8
489  ,_c9);
493  ,_c0, _c1, _c2
494  ,_c3, _c4, _c5
495  ,_c6, _c7, _c8
496  ,_c9);
500  ,_c0, _c1, _c2
501  ,_c3, _c4, _c5
502  ,_c6, _c7, _c8
503  ,_c9);
507  ,_c0, _c1, _c2
508  ,_c3, _c4, _c5
509  ,_c6, _c7, _c8
510  ,_c9);
511 
513  cout << (string)_marginalPdfsPrefix << endl;
514  if((string)_marginalPdfsPrefix == "Uniform"){
515  _pdf_sigma_t = (RooAbsPdf*) (new RooUniform("pdf_sigma_t","pdf_sigma_t",*_r_dt));
516  _pdf_eta_OS = (RooAbsPdf*) (new RooUniform("pdf_eta_OS","pdf_eta_OS",*_r_eta_OS));
517  _pdf_eta_SS = (RooAbsPdf*) (new RooUniform("pdf_eta_SS","pdf_eta_SS",*_r_eta_SS));
518  }
519  else {
520  _f_pdfs = new TFile("Mistag_pdfs.root","OPEN");
521 
522  _h_dt = new TH1D( *((TH1D*) _f_pdfs->Get(("h_dt_norm_"+(string)_marginalPdfsPrefix).c_str())));
523  // RooHistPdf doesn't like negative or 0 bins (can happen due to sweights), set them to a small positive number
524  _h_dt->Smooth();
525  for(int i= 1 ; i<=_h_dt->GetNbinsX(); i++){
526  if(_h_dt->GetBinContent(i) <= 0.)_h_dt->SetBinContent(i,0.000000001*_h_dt->GetMaximum());
527  }
528  _r_h_dt = new RooDataHist("r_h_dt","r_h_dt",*_r_dt,_h_dt);
529  _pdf_sigma_t = (RooAbsPdf*) (new RooHistPdf("pdf_sigma_t","pdf_sigma_t",*_r_dt,*_r_h_dt));
530 
531  _h_eta_OS = new TH1D( *((TH1D*) _f_pdfs->Get(("h_w_OS_norm_"+(string)_marginalPdfsPrefix).c_str())));
532  _h_eta_OS->Smooth();
533  for(int i= 1 ; i<=_h_eta_OS->GetNbinsX(); i++){
534  if(_h_eta_OS->GetBinContent(i) <= 0.)_h_eta_OS->SetBinContent(i,0.000000001*_h_eta_OS->GetMaximum());
535  }
536  _r_h_eta_OS = new RooDataHist("r_eta_OS","r_eta_OS",*_r_eta_OS,_h_eta_OS);
537  _pdf_eta_OS = (RooAbsPdf*) (new RooHistPdf("pdf_eta_OS","pdf_eta_OS",*_r_eta_OS,*_r_h_eta_OS));
538 
539  _h_eta_SS = new TH1D( *((TH1D*) _f_pdfs->Get(("h_w_SS_norm_"+(string)_marginalPdfsPrefix).c_str())));
540  _h_eta_SS->Smooth();
541  for(int i= 1 ; i<=_h_eta_SS->GetNbinsX(); i++){
542  if(_h_eta_SS->GetBinContent(i) <= 0.)_h_eta_SS->SetBinContent(i,0.000000001*_h_eta_SS->GetMaximum());
543  }
544  _r_h_eta_SS = new RooDataHist("r_eta_SS","r_eta_SS",*_r_eta_SS,_h_eta_SS);
545  _pdf_eta_SS = (RooAbsPdf*) (new RooHistPdf("pdf_eta_SS","pdf_eta_SS",*_r_eta_SS,*_r_h_eta_SS));
546 
547 // _h_q_f = new TH1D( *((TH1D*) _f_pdfs->Get(("h_q_f_norm_"+(string)_marginalPdfsPrefix).c_str())));
548 // _h_q_OS = new TH1D( *((TH1D*) _f_pdfs->Get(("h_q_OS_norm_"+(string)_marginalPdfsPrefix).c_str())));
549 // _h_q_SS = new TH1D( *((TH1D*) _f_pdfs->Get(("h_q_SS_norm_"+(string)_marginalPdfsPrefix).c_str())));
550  }
551 
552  _resmodel = new RooGaussModel("resmodel", "resmodel", *_r_t, RooRealConstant::value(0.), *_r_dt_scaled);
553 
554  _samplingPdf_t = new RooBDecay(("samplingPdf_t"+(string)_marginalPdfsPrefix).c_str(), ("samplingPdf_t"+(string)_marginalPdfsPrefix).c_str(),
555  *_r_t,*_r_tau, *_r_dGamma,
557  *_r_dm, *_resmodel, RooBDecay::SingleSided);
558 
559  _samplingPdf_t_eff = new RooEffProd(("samplingPdf_t_eff"+(string)_marginalPdfsPrefix).c_str(), ("samplingPdf_t_eff"+(string)_marginalPdfsPrefix).c_str(),
561 
562  _samplingPdf = new RooProdPdf(("samplingPdf"+(string)_marginalPdfsPrefix).c_str(),("samplingPdf"+(string)_marginalPdfsPrefix).c_str(),
563  RooArgSet(*_pdf_sigma_t,*_pdf_eta_OS,*_pdf_eta_SS),Conditional(RooArgSet(*_samplingPdf_t_eff),RooArgSet(*_r_t,*_r_f,*_r_q_OS,*_r_q_SS)));
564 
565 
566  _fitPdf_t = new RooBDecay(("fitPdf_t"+(string)_marginalPdfsPrefix).c_str(), ("fitPdf_t"+(string)_marginalPdfsPrefix).c_str(),
567  *_r_t,*_r_tau, *_r_dGamma,
569  *_r_dm, *_efficiency, RooBDecay::SingleSided);
570 
571  _fitPdf = new RooProdPdf(("fitPdf"+(string)_marginalPdfsPrefix).c_str(),("fitPdf"+(string)_marginalPdfsPrefix).c_str(),
572  RooArgSet(*_pdf_sigma_t,*_pdf_eta_OS,*_pdf_eta_SS),Conditional(RooArgSet(*_fitPdf_t),RooArgSet(*_r_t,*_r_f,*_r_q_OS,*_r_q_SS)));
573 
574  _sampleGen = 0;
575  }
RooRealVar * _r_p1_os
RooRealVar * _r_eta_OS
RooRealVar * _r_scale_mean_dt
RooRealVar * _r_avg_eta_os
RooCategory * _r_trigger
RooRealVar * _r_avg_eta_ss
const MINT::FitParameter & _tageff_asym_ss
Definition: TimePdfMaster.h:91
RooRealVar * _r_tageff_os
RooMCStudy * _sampleGen
const MINT::FitParameter & _c8
Definition: TimePdfMaster.h:74
RooRealVar * _r_c9
RooFormulaVar * _coeff_last
const MINT::FitParameter & _detection_asym
Definition: TimePdfMaster.h:94
RooRealVar * _r_delta_p0_os
const MINT::FitParameter & _tageff_asym_os
Definition: TimePdfMaster.h:83
const MINT::FitParameter & _avg_eta_ss
Definition: TimePdfMaster.h:89
RooRealVar * _r_c6
const MINT::FitParameter & _p1_ss
Definition: TimePdfMaster.h:86
RooRealVar * _r_eta_SS
RooCategory * _r_run
RooRealVar * _r_c0
const MINT::FitParameter & _dm
Definition: TimePdfMaster.h:59
string _marginalPdfsPrefix
const MINT::FitParameter & _delta_p1_ss
Definition: TimePdfMaster.h:88
RooRealVar * _r_D
NamedParameter< double > _max_TAU
const MINT::FitParameter & _dGamma
Definition: TimePdfMaster.h:58
RooDataHist * _r_h_eta_OS
RooGaussModel * _resmodel
const MINT::FitParameter & _c5
Definition: TimePdfMaster.h:71
TimePdfIntegrator * _sinh_term
RooRealVar * _r_delta_p0_ss
RooRealVar * _r_tau
RooRealVar * _r_p0_os
RooRealVar * _r_offset_sigma_dt
RooRealVar * _r_tageff_ss
RooRealVar * _r_delta_p1_ss
RooEffProd * _samplingPdf_t_eff
RooRealVar * _r_p0_ss
RooRealVar * _r_c3
RooBDecay * _samplingPdf_t
RooRealVar * _r_c8
DecRateCoeff_Bd * _cos_coeff
const MINT::FitParameter & _tageff_ss
Definition: TimePdfMaster.h:90
const MINT::FitParameter & _c4
Definition: TimePdfMaster.h:70
NamedParameter< double > _max_TAUERR
RooRealVar * _r_C
const MINT::FitParameter & _delta_p0_ss
Definition: TimePdfMaster.h:87
RooRealVar * _r_c2
DecRateCoeff_Bd * _sin_coeff
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
const MINT::FitParameter & _c1
Definition: TimePdfMaster.h:67
const MINT::FitParameter & _tageff_os
Definition: TimePdfMaster.h:82
const MINT::FitParameter & _scale_sigma_dt
Definition: TimePdfMaster.h:63
RooRealVar * _r_S
const MINT::FitParameter & _p0_os
Definition: TimePdfMaster.h:77
RooRealVar * _r_delta_p1_os
RooDataHist * _r_h_eta_SS
RooDataHist * _r_h_dt
RooCubicSplineFun * _spline
RooRealVar * _r_detection_asym
RooRealVar * _r_norm_bar
const MINT::FitParameter & _c6
Definition: TimePdfMaster.h:72
RooCategory * _r_q_OS
const MINT::FitParameter & _Gamma
Definition: TimePdfMaster.h:57
TimePdfIntegrator * _sin_term
RooProdPdf * _samplingPdf
RooRealVar * _r_dGamma
const MINT::FitParameter & _scale_mean_dt
Definition: TimePdfMaster.h:62
const MINT::FitParameter & _c7
Definition: TimePdfMaster.h:73
const MINT::FitParameter & _p0_ss
Definition: TimePdfMaster.h:85
RooRealVar * _r_C_bar
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
TimePdfIntegrator * _cosh_term
RooRealVar * _r_tageff_asym_os
const MINT::FitParameter & _delta_p1_os
Definition: TimePdfMaster.h:80
DecRateCoeff_Bd * _sinh_coeff
RooRealVar * _r_production_asym
const MINT::FitParameter & _avg_eta_os
Definition: TimePdfMaster.h:81
RooRealVar * _r_S_bar
const MINT::FitParameter & _offset_sigma_dt
Definition: TimePdfMaster.h:61
const MINT::FitParameter & _production_asym
Definition: TimePdfMaster.h:93
NamedParameter< double > _min_TAUERR
const MINT::FitParameter & _c9
Definition: TimePdfMaster.h:75
RooRealVar * _r_c5
RooRealVar * _r_c7
std::string anythingToString(const T &anything)
Definition: Utils.h:62
RooCategory * _r_q_SS
const MINT::FitParameter & _c2
Definition: TimePdfMaster.h:68
RooBDecay * _fitPdf_t
const MINT::FitParameter & _c0
Definition: TimePdfMaster.h:66
RooRealVar * _r_dt_scaled
Definition: TimePdfMaster.h:99
RooRealVar * _r_scale_sigma_2_dt
RooRealVar * _r_c1
cosh/sinh/cos/sin coefficients in decay rate equations
RooGaussEfficiencyModel * _efficiency
const MINT::FitParameter & _delta_p0_os
Definition: TimePdfMaster.h:79
RooProdPdf * _fitPdf
RooAbsPdf * _pdf_sigma_t
RooRealVar * _r_dm
const MINT::FitParameter & _scale_sigma_2_dt
Definition: TimePdfMaster.h:64
RooAbsPdf * _pdf_eta_SS
RooAbsPdf * _pdf_eta_OS
DecRateCoeff_Bd * _cosh_coeff
RooRealVar * _r_tageff_asym_ss
RooCategory * _r_f
RooRealVar * _r_p1_ss
const MINT::FitParameter & _c3
Definition: TimePdfMaster.h:69
RooProduct * _splinePdf
RooRealVar * _r_scale_sigma_dt
RooRealVar * _r_norm
RooRealVar * _r_D_bar
TimePdfIntegrator * _cos_term
RooRealVar * _r_c4
const MINT::FitParameter & _p1_os
Definition: TimePdfMaster.h:78
NamedParameter< double > _min_TAU

◆ ~TimePdfMaster()

virtual TimePdfMaster::~TimePdfMaster ( )
inlinevirtual

Definition at line 879 of file TimePdfMaster.h.

879  {
880  // Plot acceptance
881  TH1D* h_spline = plotSpline();
882  TCanvas* c = new TCanvas();
883  h_spline->SetLineColor(kRed);
884  h_spline->Draw("histc");
885  c->Print("spline.eps");
886  //c->Print("spline.pdf");
887  }
TH1D * plotSpline()

Member Function Documentation

◆ fillProtoData()

void TimePdfMaster::fillProtoData ( double  dt,
int  f,
int  q_OS,
double  eta_OS,
int  q_SS,
double  eta_SS 
)
inline

Definition at line 602 of file TimePdfMaster.h.

602  {
603  _r_dt->setVal(dt);
604  _r_q_SS->setIndex(q_SS);
605  _r_q_OS->setIndex(q_OS);
606  _r_f->setIndex(f);
607  _r_eta_OS->setVal(eta_OS);
608  _r_eta_SS->setVal(eta_SS);
609  _protoData->add(RooArgSet(*_r_dt,*_r_f,*_r_q_OS,*_r_eta_OS,*_r_q_SS,*_r_eta_SS));
610  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
RooCategory * _r_q_OS
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
RooCategory * _r_q_SS
RooDataSet * _protoData
RooCategory * _r_f

◆ get_cos_coeff_Val()

double TimePdfMaster::get_cos_coeff_Val ( IDalitzEvent evt)
inline

Definition at line 653 of file TimePdfMaster.h.

653  {
654  return _cos_coeff->evaluate();
655  }
Double_t evaluate() const
DecRateCoeff_Bd * _cos_coeff

◆ get_cos_term_Integral()

double TimePdfMaster::get_cos_term_Integral ( IDalitzEvent evt)
inline

Definition at line 637 of file TimePdfMaster.h.

637  {
638  return _cos_coeff->analyticalIntegral(2) * _cos_term->getVal(evt).imag();
639  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
DecRateCoeff_Bd * _cos_coeff
TimePdfIntegrator * _cos_term

◆ get_cos_term_Val()

double TimePdfMaster::get_cos_term_Val ( IDalitzEvent evt)
inline

Definition at line 633 of file TimePdfMaster.h.

633  {
634  return _cos_coeff->evaluate() * _cos_term->getVal(evt).real();
635  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t evaluate() const
DecRateCoeff_Bd * _cos_coeff
TimePdfIntegrator * _cos_term

◆ get_cosh_coeff_Val()

double TimePdfMaster::get_cosh_coeff_Val ( IDalitzEvent evt)
inline

Definition at line 649 of file TimePdfMaster.h.

649  {
650  return _cosh_coeff->evaluate();
651  }
Double_t evaluate() const
DecRateCoeff_Bd * _cosh_coeff

◆ get_cosh_term_Integral()

double TimePdfMaster::get_cosh_term_Integral ( IDalitzEvent evt)
inline

Definition at line 621 of file TimePdfMaster.h.

621  {
622  return _cosh_coeff->analyticalIntegral(2) * _cosh_term->getVal(evt).imag();
623  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
TimePdfIntegrator * _cosh_term
DecRateCoeff_Bd * _cosh_coeff

◆ get_cosh_term_Val()

double TimePdfMaster::get_cosh_term_Val ( IDalitzEvent evt)
inline

Definition at line 617 of file TimePdfMaster.h.

617  {
618  return _cosh_coeff->evaluate() * _cosh_term->getVal(evt).real();
619  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t evaluate() const
TimePdfIntegrator * _cosh_term
DecRateCoeff_Bd * _cosh_coeff

◆ get_dGamma_Val()

double TimePdfMaster::get_dGamma_Val ( )
inline

Definition at line 711 of file TimePdfMaster.h.

711  {
712  return (double)_dGamma;
713  }
const MINT::FitParameter & _dGamma
Definition: TimePdfMaster.h:58

◆ get_dm_Val()

double TimePdfMaster::get_dm_Val ( )
inline

Definition at line 707 of file TimePdfMaster.h.

707  {
708  return (double)_dm;
709  }
const MINT::FitParameter & _dm
Definition: TimePdfMaster.h:59

◆ get_marginalPdfs_product()

double TimePdfMaster::get_marginalPdfs_product ( IDalitzEvent evt)
inline

Definition at line 695 of file TimePdfMaster.h.

695  {
696  return _pdf_sigma_t->getVal(RooArgSet(*_r_dt)) * _pdf_eta_OS->getVal(RooArgSet(*_r_eta_OS)) * _pdf_eta_SS->getVal(RooArgSet(*_r_eta_SS));
697  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
RooAbsPdf * _pdf_sigma_t
RooAbsPdf * _pdf_eta_SS
RooAbsPdf * _pdf_eta_OS

◆ get_marginalPdfs_Val()

double TimePdfMaster::get_marginalPdfs_Val ( IDalitzEvent evt)
inline

Definition at line 665 of file TimePdfMaster.h.

665  {
666  const int q_OS = (int)evt.getValueFromVector(3);
667  const int q_SS = (int)evt.getValueFromVector(5);
668 
669  /*
670  // check norm
671  TRandom3 r(0);
672  double sum1 = 0.;
673  double sum2 = 0.;
674  double sum3 = 0.;
675 
676  for (int i=0; i < 1000000; i++) {
677  _r_eta_OS->setVal(r.Uniform(0,0.5));
678  _r_eta_SS->setVal(r.Uniform(0,0.5));
679  _r_dt->setVal(r.Uniform(0,0.1));
680  sum1 += _pdf_eta_OS->getVal(RooArgSet(*_r_eta_OS));
681  sum2 += _pdf_eta_SS->getVal(RooArgSet(*_r_eta_SS));
682  sum3 += _pdf_sigma_t->getVal(RooArgSet(*_r_dt));
683  }
684  cout << "norm = " << 0.5 * sum1/1000000. << endl;
685  cout << "norm = " << 0.5 * sum2/1000000. << endl;
686  cout << "norm = " << 0.1 * sum3/1000000. << endl;
687  throw "";
688  */
689 
690  return _pdf_sigma_t->getVal(RooArgSet(*_r_dt))
691  * ( abs(q_OS) * _pdf_eta_OS->getVal(RooArgSet(*_r_eta_OS)) + ( 1. - abs(q_OS)) * 1./0.5 )
692  * ( abs(q_SS) * _pdf_eta_SS->getVal(RooArgSet(*_r_eta_SS)) + ( 1. - abs(q_SS)) * 1./0.5 );
693  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
virtual double getValueFromVector(unsigned int i) const =0
RooAbsPdf * _pdf_sigma_t
RooAbsPdf * _pdf_eta_SS
RooAbsPdf * _pdf_eta_OS

◆ get_sin_coeff_Val()

double TimePdfMaster::get_sin_coeff_Val ( IDalitzEvent evt)
inline

Definition at line 661 of file TimePdfMaster.h.

661  {
662  return _sin_coeff->evaluate();
663  }
Double_t evaluate() const
DecRateCoeff_Bd * _sin_coeff

◆ get_sin_term_Integral()

double TimePdfMaster::get_sin_term_Integral ( IDalitzEvent evt)
inline

Definition at line 645 of file TimePdfMaster.h.

645  {
646  return _sin_coeff->analyticalIntegral(2) * _sin_term->getVal(evt).imag();
647  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
DecRateCoeff_Bd * _sin_coeff
TimePdfIntegrator * _sin_term

◆ get_sin_term_Val()

double TimePdfMaster::get_sin_term_Val ( IDalitzEvent evt)
inline

Definition at line 641 of file TimePdfMaster.h.

641  {
642  return _sin_coeff->evaluate() * _sin_term->getVal(evt).real();
643  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t evaluate() const
DecRateCoeff_Bd * _sin_coeff
TimePdfIntegrator * _sin_term

◆ get_sinh_coeff_Val()

double TimePdfMaster::get_sinh_coeff_Val ( IDalitzEvent evt)
inline

Definition at line 657 of file TimePdfMaster.h.

657  {
658  return _sinh_coeff->evaluate();
659  }
Double_t evaluate() const
DecRateCoeff_Bd * _sinh_coeff

◆ get_sinh_term_Integral()

double TimePdfMaster::get_sinh_term_Integral ( IDalitzEvent evt)
inline

Definition at line 629 of file TimePdfMaster.h.

629  {
630  return _sinh_coeff->analyticalIntegral(2) * _sinh_term->getVal(evt).imag();
631  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
TimePdfIntegrator * _sinh_term
DecRateCoeff_Bd * _sinh_coeff

◆ get_sinh_term_Val()

double TimePdfMaster::get_sinh_term_Val ( IDalitzEvent evt)
inline

Definition at line 625 of file TimePdfMaster.h.

625  {
626  return _sinh_coeff->evaluate() * _sinh_term->getVal(evt).real();
627  }
virtual std::complex< double > getVal(IDalitzEvent &evt)
Double_t evaluate() const
TimePdfIntegrator * _sinh_term
DecRateCoeff_Bd * _sinh_coeff

◆ get_spline_Val()

double TimePdfMaster::get_spline_Val ( IDalitzEvent evt)
inline

Definition at line 699 of file TimePdfMaster.h.

699  {
700  return _spline->getVal();
701  }
RooCubicSplineFun * _spline

◆ get_tau_Val()

double TimePdfMaster::get_tau_Val ( )
inline

Definition at line 703 of file TimePdfMaster.h.

703  {
704  return (double) 1./_Gamma;
705  }
const MINT::FitParameter & _Gamma
Definition: TimePdfMaster.h:57

◆ getCalibratedMistag()

std::pair<double, double> TimePdfMaster::getCalibratedMistag ( double  eta,
double  avg_eta,
double  p0,
double  p1,
double  delta_p0,
double  delta_p1 
)
inline

Definition at line 735 of file TimePdfMaster.h.

735  {
736  return _cosh_coeff->calibrate(eta, avg_eta, p0, p1, delta_p0, delta_p1);
737  }
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
DecRateCoeff_Bd * _cosh_coeff

◆ getCalibratedMistag_OS() [1/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_OS ( IDalitzEvent evt)
inline

Definition at line 715 of file TimePdfMaster.h.

715  {
717  }
const MINT::FitParameter & _p0_os
Definition: TimePdfMaster.h:77
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
const MINT::FitParameter & _delta_p1_os
Definition: TimePdfMaster.h:80
virtual double getValueFromVector(unsigned int i) const =0
const MINT::FitParameter & _avg_eta_os
Definition: TimePdfMaster.h:81
const MINT::FitParameter & _delta_p0_os
Definition: TimePdfMaster.h:79
DecRateCoeff_Bd * _cosh_coeff
const MINT::FitParameter & _p1_os
Definition: TimePdfMaster.h:78

◆ getCalibratedMistag_OS() [2/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_OS ( double &  eta_OS)
inline

Definition at line 719 of file TimePdfMaster.h.

719  {
721  }
const MINT::FitParameter & _p0_os
Definition: TimePdfMaster.h:77
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
const MINT::FitParameter & _delta_p1_os
Definition: TimePdfMaster.h:80
const MINT::FitParameter & _avg_eta_os
Definition: TimePdfMaster.h:81
const MINT::FitParameter & _delta_p0_os
Definition: TimePdfMaster.h:79
DecRateCoeff_Bd * _cosh_coeff
const MINT::FitParameter & _p1_os
Definition: TimePdfMaster.h:78

◆ getCalibratedMistag_OS() [3/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_OS ( IDalitzEvent evt,
double &  avg_eta_os,
double &  p0_os,
double &  p1_os,
double &  delta_p0_os,
double &  delta_p1_os 
)
inline

Definition at line 723 of file TimePdfMaster.h.

723  {
724  return _cosh_coeff->calibrate(evt.getValueFromVector(4), avg_eta_os, p0_os, p1_os, delta_p0_os, delta_p1_os);
725  }
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
virtual double getValueFromVector(unsigned int i) const =0
DecRateCoeff_Bd * _cosh_coeff

◆ getCalibratedMistag_SS() [1/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_SS ( IDalitzEvent evt)
inline

Definition at line 727 of file TimePdfMaster.h.

727  {
729  }
const MINT::FitParameter & _avg_eta_ss
Definition: TimePdfMaster.h:89
const MINT::FitParameter & _p1_ss
Definition: TimePdfMaster.h:86
const MINT::FitParameter & _delta_p1_ss
Definition: TimePdfMaster.h:88
const MINT::FitParameter & _delta_p0_ss
Definition: TimePdfMaster.h:87
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
const MINT::FitParameter & _p0_ss
Definition: TimePdfMaster.h:85
virtual double getValueFromVector(unsigned int i) const =0
DecRateCoeff_Bd * _cosh_coeff

◆ getCalibratedMistag_SS() [2/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_SS ( IDalitzEvent evt,
double &  avg_eta_ss,
double &  p0_ss,
double &  p1_ss,
double &  delta_p0_ss,
double &  delta_p1_ss 
)
inline

Definition at line 731 of file TimePdfMaster.h.

731  {
732  return _cosh_coeff->calibrate(evt.getValueFromVector(6), avg_eta_ss, p0_ss, p1_ss, delta_p0_ss, delta_p1_ss);
733  }
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
virtual double getValueFromVector(unsigned int i) const =0
DecRateCoeff_Bd * _cosh_coeff

◆ getCalibratedMistag_SS() [3/3]

std::pair<double, double> TimePdfMaster::getCalibratedMistag_SS ( double &  eta_SS)
inline

Definition at line 739 of file TimePdfMaster.h.

739  {
741  }
const MINT::FitParameter & _avg_eta_ss
Definition: TimePdfMaster.h:89
const MINT::FitParameter & _p1_ss
Definition: TimePdfMaster.h:86
const MINT::FitParameter & _delta_p1_ss
Definition: TimePdfMaster.h:88
const MINT::FitParameter & _delta_p0_ss
Definition: TimePdfMaster.h:87
std::pair< double, double > calibrate(double eta, double avg_eta, double p0, double p1, double delta_p0, double delta_p1) const
const MINT::FitParameter & _p0_ss
Definition: TimePdfMaster.h:85
DecRateCoeff_Bd * _cosh_coeff

◆ getCalibratedResolution() [1/2]

double TimePdfMaster::getCalibratedResolution ( double &  dt)
inline

Definition at line 743 of file TimePdfMaster.h.

743  {
744  return _offset_sigma_dt + _scale_sigma_dt * dt + _scale_sigma_2_dt * dt *dt;
745  }
const MINT::FitParameter & _scale_sigma_dt
Definition: TimePdfMaster.h:63
const MINT::FitParameter & _offset_sigma_dt
Definition: TimePdfMaster.h:61
const MINT::FitParameter & _scale_sigma_2_dt
Definition: TimePdfMaster.h:64

◆ getCalibratedResolution() [2/2]

double TimePdfMaster::getCalibratedResolution ( double &  dt,
double &  scale_sigma_dt,
double &  scale_sigma_2_dt 
)
inline

Definition at line 747 of file TimePdfMaster.h.

747  {
748  return _offset_sigma_dt + scale_sigma_dt * dt + scale_sigma_2_dt * dt *dt;
749  }
const MINT::FitParameter & _offset_sigma_dt
Definition: TimePdfMaster.h:61

◆ getCP_coeff()

vector<double> TimePdfMaster::getCP_coeff ( )
inline

Definition at line 840 of file TimePdfMaster.h.

840  {
841 
842  vector<double> vals;
843  vals.push_back(_r_norm->getVal());
844  vals.push_back(_r_norm_bar->getVal());
845  vals.push_back(_r_C->getVal());
846  vals.push_back(_r_C_bar->getVal());
847  vals.push_back(_r_D->getVal());
848  vals.push_back(_r_D_bar->getVal());
849  vals.push_back(_r_S->getVal());
850  vals.push_back(_r_S_bar->getVal());
851 
852  return vals;
853  }
RooRealVar * _r_D
RooRealVar * _r_C
RooRealVar * _r_S
RooRealVar * _r_norm_bar
RooRealVar * _r_C_bar
RooRealVar * _r_S_bar
RooRealVar * _r_norm
RooRealVar * _r_D_bar

◆ getRandom_marginalVals()

vector<double> TimePdfMaster::getRandom_marginalVals ( )
inline

Definition at line 594 of file TimePdfMaster.h.

594  {
595  vector<double> vals;
596  vals.push_back(_h_dt->GetRandom());
597  vals.push_back(_h_eta_OS->GetRandom());
598  vals.push_back(_h_eta_SS->GetRandom());
599  return vals;
600  }

◆ getSamplingPdfVal()

double TimePdfMaster::getSamplingPdfVal ( IDalitzEvent evt)
inline

Definition at line 612 of file TimePdfMaster.h.

612  {
614  return _fitPdf->getVal(RooArgSet(*_r_t,*_r_dt,*_r_eta_OS,*_r_eta_SS,*_r_f,*_r_q_OS,*_r_q_SS));
615  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
RooCategory * _r_q_OS
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
RooCategory * _r_q_SS
RooProdPdf * _fitPdf
RooCategory * _r_f
void setAllObservablesAndFitParameters(IDalitzEvent &evt)

◆ listFitParDependencies()

void TimePdfMaster::listFitParDependencies ( )
inline

Definition at line 751 of file TimePdfMaster.h.

751  {
752  std::cout << "TimePDfIntegrator depends on these fitParameters:" << std::endl;
754  //std::cout << "TimePDfMaster depends on these fitParameters (sinh):" << std::endl;
755  //_sinh_term->listFitParDependencies(std::cout);
756  //std::cout << "" << std::endl;
757  }
TimePdfIntegrator * _cosh_term
void listFitParDependencies(std::ostream &os=std::cout) const

◆ plotSpline()

TH1D* TimePdfMaster::plotSpline ( )
inline

Definition at line 860 of file TimePdfMaster.h.

860  {
862  TH1D *h_spline = new TH1D("", ";t (ps);Efficiency (a.u.)", 100, _min_TAU, _max_TAU);
863  for (int i = 1; i<=h_spline->GetNbinsX(); i++) {
864  _r_t->setVal(h_spline->GetXaxis()->GetBinCenter(i));
865  h_spline->SetBinContent(i,_spline->getVal());
866  }
867  TCanvas* c = new TCanvas();
868  h_spline->SetLineColor(kRed);
869  h_spline->SetLineWidth(5);
870 
871  h_spline->SetMinimum(0.);
872  h_spline->SetMaximum(1.2);
873 
874  h_spline->Draw("histc");
875  c->Print("spline.eps");
876  return h_spline;
877  }
NamedParameter< double > _max_TAU
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
void setAllFitParameters()
RooCubicSplineFun * _spline
NamedParameter< double > _min_TAU

◆ sampleEvents()

RooDataSet* TimePdfMaster::sampleEvents ( int  N = 10000)
inline

Definition at line 577 of file TimePdfMaster.h.

577  {
578  if(_sampleGen == 0){
579  _protoData = new RooDataSet("protoData","protoData",RooArgSet(*_r_dt,*_r_eta_OS,*_r_eta_SS));
580  int N_proto = N > 100000 ? N : 100000;
581  for(int i = 0 ; i < N; i++){
582  _r_dt->setVal(_h_dt->GetRandom());
583  _r_eta_OS->setVal(_h_eta_OS->GetRandom());
584  _r_eta_SS->setVal(_h_eta_SS->GetRandom());
585  _protoData->add(RooArgSet(*_r_dt,*_r_eta_OS,*_r_eta_SS));
586  }
587  _sampleGen = new RooMCStudy(*_samplingPdf,RooArgSet(*_r_t,*_r_q_OS,*_r_q_SS,*_r_f),ProtoData(*_protoData,kFALSE,kTRUE));
588  }
589  _sampleGen->generate(1,N,kTRUE);
590  RooDataSet* data = (RooDataSet*)_sampleGen->genData(0);
591  return data;
592  }
RooRealVar * _r_eta_OS
RooMCStudy * _sampleGen
RooRealVar * _r_eta_SS
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
RooCategory * _r_q_OS
RooProdPdf * _samplingPdf
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
RooCategory * _r_q_SS
RooDataSet * _protoData
RooCategory * _r_f

◆ setAllFitParameters()

void TimePdfMaster::setAllFitParameters ( )
inline

Definition at line 759 of file TimePdfMaster.h.

759  {
760  _r_tau->setVal(1./_Gamma);
761  _r_dGamma->setVal(_dGamma);
762  _r_dm->setVal(_dm);
763 
768  _r_c0->setVal(_c0);
769  _r_c1->setVal(_c1);
770  _r_c2->setVal(_c2);
771  _r_c3->setVal(_c3);
772  _r_c4->setVal(_c4);
773  _r_c5->setVal(_c5);
774  _r_c6->setVal(_c6);
775  _r_c7->setVal(_c7);
776  _r_c8->setVal(_c8);
777  _r_c9->setVal(_c9);
778 
779  _r_p0_os->setVal(_p0_os);
780  _r_p1_os->setVal(_p1_os);
781  _r_delta_p0_os->setVal(_delta_p0_os);
782  _r_delta_p1_os->setVal(_delta_p1_os);
783  _r_avg_eta_os->setVal(_avg_eta_os);
784  _r_tageff_os->setVal(_tageff_os);
786  _r_p0_ss->setVal(_p0_ss);
787  _r_p1_ss->setVal(_p1_ss);
788  _r_delta_p0_ss->setVal(_delta_p0_ss);
789  _r_delta_p1_ss->setVal(_delta_p1_ss);
790  _r_avg_eta_ss->setVal(_avg_eta_ss);
791  _r_tageff_ss->setVal(_tageff_ss);
793 
796  }
RooRealVar * _r_p1_os
RooRealVar * _r_scale_mean_dt
RooRealVar * _r_avg_eta_os
RooRealVar * _r_avg_eta_ss
const MINT::FitParameter & _tageff_asym_ss
Definition: TimePdfMaster.h:91
RooRealVar * _r_tageff_os
const MINT::FitParameter & _c8
Definition: TimePdfMaster.h:74
RooRealVar * _r_c9
const MINT::FitParameter & _detection_asym
Definition: TimePdfMaster.h:94
RooRealVar * _r_delta_p0_os
const MINT::FitParameter & _tageff_asym_os
Definition: TimePdfMaster.h:83
const MINT::FitParameter & _avg_eta_ss
Definition: TimePdfMaster.h:89
RooRealVar * _r_c6
const MINT::FitParameter & _p1_ss
Definition: TimePdfMaster.h:86
RooRealVar * _r_c0
const MINT::FitParameter & _dm
Definition: TimePdfMaster.h:59
const MINT::FitParameter & _delta_p1_ss
Definition: TimePdfMaster.h:88
const MINT::FitParameter & _dGamma
Definition: TimePdfMaster.h:58
const MINT::FitParameter & _c5
Definition: TimePdfMaster.h:71
RooRealVar * _r_delta_p0_ss
RooRealVar * _r_tau
RooRealVar * _r_p0_os
RooRealVar * _r_offset_sigma_dt
RooRealVar * _r_tageff_ss
RooRealVar * _r_delta_p1_ss
RooRealVar * _r_p0_ss
RooRealVar * _r_c3
RooRealVar * _r_c8
const MINT::FitParameter & _tageff_ss
Definition: TimePdfMaster.h:90
const MINT::FitParameter & _c4
Definition: TimePdfMaster.h:70
const MINT::FitParameter & _delta_p0_ss
Definition: TimePdfMaster.h:87
RooRealVar * _r_c2
const MINT::FitParameter & _c1
Definition: TimePdfMaster.h:67
const MINT::FitParameter & _tageff_os
Definition: TimePdfMaster.h:82
const MINT::FitParameter & _scale_sigma_dt
Definition: TimePdfMaster.h:63
const MINT::FitParameter & _p0_os
Definition: TimePdfMaster.h:77
RooRealVar * _r_delta_p1_os
RooRealVar * _r_detection_asym
const MINT::FitParameter & _c6
Definition: TimePdfMaster.h:72
const MINT::FitParameter & _Gamma
Definition: TimePdfMaster.h:57
RooRealVar * _r_dGamma
const MINT::FitParameter & _scale_mean_dt
Definition: TimePdfMaster.h:62
const MINT::FitParameter & _c7
Definition: TimePdfMaster.h:73
const MINT::FitParameter & _p0_ss
Definition: TimePdfMaster.h:85
RooRealVar * _r_tageff_asym_os
const MINT::FitParameter & _delta_p1_os
Definition: TimePdfMaster.h:80
RooRealVar * _r_production_asym
const MINT::FitParameter & _avg_eta_os
Definition: TimePdfMaster.h:81
const MINT::FitParameter & _offset_sigma_dt
Definition: TimePdfMaster.h:61
const MINT::FitParameter & _production_asym
Definition: TimePdfMaster.h:93
const MINT::FitParameter & _c9
Definition: TimePdfMaster.h:75
RooRealVar * _r_c5
RooRealVar * _r_c7
const MINT::FitParameter & _c2
Definition: TimePdfMaster.h:68
const MINT::FitParameter & _c0
Definition: TimePdfMaster.h:66
RooRealVar * _r_scale_sigma_2_dt
RooRealVar * _r_c1
const MINT::FitParameter & _delta_p0_os
Definition: TimePdfMaster.h:79
RooRealVar * _r_dm
const MINT::FitParameter & _scale_sigma_2_dt
Definition: TimePdfMaster.h:64
RooRealVar * _r_tageff_asym_ss
RooRealVar * _r_p1_ss
const MINT::FitParameter & _c3
Definition: TimePdfMaster.h:69
RooRealVar * _r_scale_sigma_dt
RooRealVar * _r_c4
const MINT::FitParameter & _p1_os
Definition: TimePdfMaster.h:78

◆ setAllObservables()

void TimePdfMaster::setAllObservables ( IDalitzEvent evt)
inline

Definition at line 798 of file TimePdfMaster.h.

798  {
799  const double t = (double) evt.getValueFromVector(0);
800  const double dt = (double) evt.getValueFromVector(1);
801  const int f = (int)evt.getValueFromVector(2);
802  const int q_OS = (int)evt.getValueFromVector(3);
803  const double eta_OS = (double) evt.getValueFromVector(4);
804  const int q_SS = (int)evt.getValueFromVector(5);
805  const double eta_SS = (double) evt.getValueFromVector(6);
806 
807  _r_t->setVal(t);
808  _r_dt->setVal(dt);
809  _r_f->setIndex(f);
810  _r_q_OS->setIndex(q_OS);
811  _r_eta_OS->setVal(eta_OS);
812  _r_q_SS->setIndex(q_SS);
813  _r_eta_SS->setVal(eta_SS);
814  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
RooCategory * _r_q_OS
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
virtual double getValueFromVector(unsigned int i) const =0
RooCategory * _r_q_SS
RooCategory * _r_f

◆ setAllObservablesAndFitParameters()

void TimePdfMaster::setAllObservablesAndFitParameters ( IDalitzEvent evt)
inline

Definition at line 855 of file TimePdfMaster.h.

855  {
856  setAllObservables(evt);
858  }
void setAllObservables(IDalitzEvent &evt)
void setAllFitParameters()

◆ setAllObservablesToMean()

void TimePdfMaster::setAllObservablesToMean ( IDalitzEvent evt)
inline

Definition at line 816 of file TimePdfMaster.h.

816  {
817  _r_t->setVal(1./_Gamma);
818  if((string)_marginalPdfsPrefix == "Uniform")_r_dt->setVal(1./_Gamma/100.);
819  else _r_dt->setVal(_h_dt->GetMean());
820  _r_f->setIndex((int)evt.getValueFromVector(2));
821  _r_q_OS->setIndex(0);
822  if((string)_marginalPdfsPrefix == "Uniform")_r_eta_OS->setVal(0.);
823  else _r_eta_OS->setVal(_h_eta_OS->GetMean());
824  _r_q_SS->setIndex(0);
825  if((string)_marginalPdfsPrefix == "Uniform")_r_eta_SS->setVal(0.);
826  else _r_eta_SS->setVal(_h_eta_SS->GetMean());
827  }
RooRealVar * _r_eta_OS
RooRealVar * _r_eta_SS
string _marginalPdfsPrefix
RooRealVar * _r_t
Cast of MINT parameters to B2DX parameters.
Definition: TimePdfMaster.h:97
RooCategory * _r_q_OS
const MINT::FitParameter & _Gamma
Definition: TimePdfMaster.h:57
RooRealVar * _r_dt
Definition: TimePdfMaster.h:98
virtual double getValueFromVector(unsigned int i) const =0
RooCategory * _r_q_SS
RooCategory * _r_f

◆ setCP_coeff()

void TimePdfMaster::setCP_coeff ( double  norm,
double  norm_bar,
double  C,
double  C_bar,
double  D,
double  D_bar,
double  S,
double  S_bar 
)
inline

Definition at line 829 of file TimePdfMaster.h.

829  {
830  _r_norm->setVal(norm);
831  _r_norm_bar->setVal(norm_bar);
832  _r_C->setVal(C);
833  _r_C_bar->setVal(C_bar);
834  _r_D->setVal(D);
835  _r_D_bar->setVal(D_bar);
836  _r_S->setVal(S);
837  _r_S_bar->setVal(S_bar);
838  }
RooRealVar * _r_D
RooRealVar * _r_C
RooRealVar * _r_S
RooRealVar * _r_norm_bar
RooRealVar * _r_C_bar
RooRealVar * _r_S_bar
RooRealVar * _r_norm
RooRealVar * _r_D_bar

Member Data Documentation

◆ _avg_eta_os

const MINT::FitParameter& TimePdfMaster::_avg_eta_os
protected

Definition at line 81 of file TimePdfMaster.h.

◆ _avg_eta_ss

const MINT::FitParameter& TimePdfMaster::_avg_eta_ss
protected

Definition at line 89 of file TimePdfMaster.h.

◆ _c0

const MINT::FitParameter& TimePdfMaster::_c0
protected

Definition at line 66 of file TimePdfMaster.h.

◆ _c1

const MINT::FitParameter& TimePdfMaster::_c1
protected

Definition at line 67 of file TimePdfMaster.h.

◆ _c2

const MINT::FitParameter& TimePdfMaster::_c2
protected

Definition at line 68 of file TimePdfMaster.h.

◆ _c3

const MINT::FitParameter& TimePdfMaster::_c3
protected

Definition at line 69 of file TimePdfMaster.h.

◆ _c4

const MINT::FitParameter& TimePdfMaster::_c4
protected

Definition at line 70 of file TimePdfMaster.h.

◆ _c5

const MINT::FitParameter& TimePdfMaster::_c5
protected

Definition at line 71 of file TimePdfMaster.h.

◆ _c6

const MINT::FitParameter& TimePdfMaster::_c6
protected

Definition at line 72 of file TimePdfMaster.h.

◆ _c7

const MINT::FitParameter& TimePdfMaster::_c7
protected

Definition at line 73 of file TimePdfMaster.h.

◆ _c8

const MINT::FitParameter& TimePdfMaster::_c8
protected

Definition at line 74 of file TimePdfMaster.h.

◆ _c9

const MINT::FitParameter& TimePdfMaster::_c9
protected

Definition at line 75 of file TimePdfMaster.h.

◆ _coeff_last

RooFormulaVar* TimePdfMaster::_coeff_last
protected

Definition at line 127 of file TimePdfMaster.h.

◆ _cos_coeff

DecRateCoeff_Bd* TimePdfMaster::_cos_coeff
protected

Definition at line 163 of file TimePdfMaster.h.

◆ _cos_term

TimePdfIntegrator* TimePdfMaster::_cos_term
protected

Definition at line 171 of file TimePdfMaster.h.

◆ _cosh_coeff

DecRateCoeff_Bd* TimePdfMaster::_cosh_coeff
protected

Definition at line 164 of file TimePdfMaster.h.

◆ _cosh_term

TimePdfIntegrator* TimePdfMaster::_cosh_term
protected

Definition at line 169 of file TimePdfMaster.h.

◆ _delta_p0_os

const MINT::FitParameter& TimePdfMaster::_delta_p0_os
protected

Definition at line 79 of file TimePdfMaster.h.

◆ _delta_p0_ss

const MINT::FitParameter& TimePdfMaster::_delta_p0_ss
protected

Definition at line 87 of file TimePdfMaster.h.

◆ _delta_p1_os

const MINT::FitParameter& TimePdfMaster::_delta_p1_os
protected

Definition at line 80 of file TimePdfMaster.h.

◆ _delta_p1_ss

const MINT::FitParameter& TimePdfMaster::_delta_p1_ss
protected

Definition at line 88 of file TimePdfMaster.h.

◆ _detection_asym

const MINT::FitParameter& TimePdfMaster::_detection_asym
protected

Definition at line 94 of file TimePdfMaster.h.

◆ _dGamma

const MINT::FitParameter& TimePdfMaster::_dGamma
protected

Definition at line 58 of file TimePdfMaster.h.

◆ _dm

const MINT::FitParameter& TimePdfMaster::_dm
protected

Definition at line 59 of file TimePdfMaster.h.

◆ _efficiency

RooGaussEfficiencyModel* TimePdfMaster::_efficiency
protected

Definition at line 150 of file TimePdfMaster.h.

◆ _f_pdfs

TFile* TimePdfMaster::_f_pdfs
protected

Definition at line 176 of file TimePdfMaster.h.

◆ _fitPdf

RooProdPdf* TimePdfMaster::_fitPdf
protected

Definition at line 206 of file TimePdfMaster.h.

◆ _fitPdf_t

RooBDecay* TimePdfMaster::_fitPdf_t
protected

Definition at line 202 of file TimePdfMaster.h.

◆ _Gamma

const MINT::FitParameter& TimePdfMaster::_Gamma
protected

Definition at line 57 of file TimePdfMaster.h.

◆ _h_dt

TH1D* TimePdfMaster::_h_dt
protected

Definition at line 178 of file TimePdfMaster.h.

◆ _h_eta_OS

TH1D* TimePdfMaster::_h_eta_OS
protected

Definition at line 187 of file TimePdfMaster.h.

◆ _h_eta_SS

TH1D* TimePdfMaster::_h_eta_SS
protected

Definition at line 191 of file TimePdfMaster.h.

◆ _h_q_f

TH1D* TimePdfMaster::_h_q_f
protected

Definition at line 182 of file TimePdfMaster.h.

◆ _h_q_OS

TH1D* TimePdfMaster::_h_q_OS
protected

Definition at line 183 of file TimePdfMaster.h.

◆ _h_q_SS

TH1D* TimePdfMaster::_h_q_SS
protected

Definition at line 184 of file TimePdfMaster.h.

◆ _marginalPdfsPrefix

string TimePdfMaster::_marginalPdfsPrefix
protected

Definition at line 175 of file TimePdfMaster.h.

◆ _max_TAU

NamedParameter<double> TimePdfMaster::_max_TAU
protected

Definition at line 196 of file TimePdfMaster.h.

◆ _max_TAUERR

NamedParameter<double> TimePdfMaster::_max_TAUERR
protected

Definition at line 198 of file TimePdfMaster.h.

◆ _min_TAU

NamedParameter<double> TimePdfMaster::_min_TAU
protected

Definition at line 195 of file TimePdfMaster.h.

◆ _min_TAUERR

NamedParameter<double> TimePdfMaster::_min_TAUERR
protected

Definition at line 197 of file TimePdfMaster.h.

◆ _offset_sigma_dt

const MINT::FitParameter& TimePdfMaster::_offset_sigma_dt
protected

Definition at line 61 of file TimePdfMaster.h.

◆ _p0_os

const MINT::FitParameter& TimePdfMaster::_p0_os
protected

Definition at line 77 of file TimePdfMaster.h.

◆ _p0_ss

const MINT::FitParameter& TimePdfMaster::_p0_ss
protected

Definition at line 85 of file TimePdfMaster.h.

◆ _p1_os

const MINT::FitParameter& TimePdfMaster::_p1_os
protected

Definition at line 78 of file TimePdfMaster.h.

◆ _p1_ss

const MINT::FitParameter& TimePdfMaster::_p1_ss
protected

Definition at line 86 of file TimePdfMaster.h.

◆ _pdf_eta_OS

RooAbsPdf* TimePdfMaster::_pdf_eta_OS
protected

Definition at line 186 of file TimePdfMaster.h.

◆ _pdf_eta_SS

RooAbsPdf* TimePdfMaster::_pdf_eta_SS
protected

Definition at line 190 of file TimePdfMaster.h.

◆ _pdf_sigma_t

RooAbsPdf* TimePdfMaster::_pdf_sigma_t
protected

Definition at line 180 of file TimePdfMaster.h.

◆ _production_asym

const MINT::FitParameter& TimePdfMaster::_production_asym
protected

Definition at line 93 of file TimePdfMaster.h.

◆ _protoData

RooDataSet* TimePdfMaster::_protoData
protected

Definition at line 207 of file TimePdfMaster.h.

◆ _r_avg_eta_os

RooRealVar* TimePdfMaster::_r_avg_eta_os
protected

Definition at line 133 of file TimePdfMaster.h.

◆ _r_avg_eta_ss

RooRealVar* TimePdfMaster::_r_avg_eta_ss
protected

Definition at line 140 of file TimePdfMaster.h.

◆ _r_C

RooRealVar* TimePdfMaster::_r_C
protected

Definition at line 155 of file TimePdfMaster.h.

◆ _r_c0

RooRealVar* TimePdfMaster::_r_c0
protected

Definition at line 117 of file TimePdfMaster.h.

◆ _r_c1

RooRealVar* TimePdfMaster::_r_c1
protected

Definition at line 118 of file TimePdfMaster.h.

◆ _r_c2

RooRealVar* TimePdfMaster::_r_c2
protected

Definition at line 119 of file TimePdfMaster.h.

◆ _r_c3

RooRealVar* TimePdfMaster::_r_c3
protected

Definition at line 120 of file TimePdfMaster.h.

◆ _r_c4

RooRealVar* TimePdfMaster::_r_c4
protected

Definition at line 121 of file TimePdfMaster.h.

◆ _r_c5

RooRealVar* TimePdfMaster::_r_c5
protected

Definition at line 122 of file TimePdfMaster.h.

◆ _r_c6

RooRealVar* TimePdfMaster::_r_c6
protected

Definition at line 123 of file TimePdfMaster.h.

◆ _r_c7

RooRealVar* TimePdfMaster::_r_c7
protected

Definition at line 124 of file TimePdfMaster.h.

◆ _r_c8

RooRealVar* TimePdfMaster::_r_c8
protected

Definition at line 125 of file TimePdfMaster.h.

◆ _r_c9

RooRealVar* TimePdfMaster::_r_c9
protected

Definition at line 126 of file TimePdfMaster.h.

◆ _r_C_bar

RooRealVar* TimePdfMaster::_r_C_bar
protected

Definition at line 156 of file TimePdfMaster.h.

◆ _r_D

RooRealVar* TimePdfMaster::_r_D
protected

Definition at line 157 of file TimePdfMaster.h.

◆ _r_D_bar

RooRealVar* TimePdfMaster::_r_D_bar
protected

Definition at line 158 of file TimePdfMaster.h.

◆ _r_delta_p0_os

RooRealVar* TimePdfMaster::_r_delta_p0_os
protected

Definition at line 131 of file TimePdfMaster.h.

◆ _r_delta_p0_ss

RooRealVar* TimePdfMaster::_r_delta_p0_ss
protected

Definition at line 138 of file TimePdfMaster.h.

◆ _r_delta_p1_os

RooRealVar* TimePdfMaster::_r_delta_p1_os
protected

Definition at line 132 of file TimePdfMaster.h.

◆ _r_delta_p1_ss

RooRealVar* TimePdfMaster::_r_delta_p1_ss
protected

Definition at line 139 of file TimePdfMaster.h.

◆ _r_detection_asym

RooRealVar* TimePdfMaster::_r_detection_asym
protected

Definition at line 145 of file TimePdfMaster.h.

◆ _r_dGamma

RooRealVar* TimePdfMaster::_r_dGamma
protected

Definition at line 109 of file TimePdfMaster.h.

◆ _r_dm

RooRealVar* TimePdfMaster::_r_dm
protected

Definition at line 110 of file TimePdfMaster.h.

◆ _r_dt

RooRealVar* TimePdfMaster::_r_dt
protected

Definition at line 98 of file TimePdfMaster.h.

◆ _r_dt_scaled

RooRealVar* TimePdfMaster::_r_dt_scaled
protected

Definition at line 99 of file TimePdfMaster.h.

◆ _r_eta_OS

RooRealVar* TimePdfMaster::_r_eta_OS
protected

Definition at line 101 of file TimePdfMaster.h.

◆ _r_eta_SS

RooRealVar* TimePdfMaster::_r_eta_SS
protected

Definition at line 103 of file TimePdfMaster.h.

◆ _r_f

RooCategory* TimePdfMaster::_r_f
protected

Definition at line 104 of file TimePdfMaster.h.

◆ _r_h_dt

RooDataHist* TimePdfMaster::_r_h_dt
protected

Definition at line 179 of file TimePdfMaster.h.

◆ _r_h_eta_OS

RooDataHist* TimePdfMaster::_r_h_eta_OS
protected

Definition at line 188 of file TimePdfMaster.h.

◆ _r_h_eta_SS

RooDataHist* TimePdfMaster::_r_h_eta_SS
protected

Definition at line 192 of file TimePdfMaster.h.

◆ _r_norm

RooRealVar* TimePdfMaster::_r_norm
protected

Definition at line 153 of file TimePdfMaster.h.

◆ _r_norm_bar

RooRealVar* TimePdfMaster::_r_norm_bar
protected

Definition at line 154 of file TimePdfMaster.h.

◆ _r_offset_sigma_dt

RooRealVar* TimePdfMaster::_r_offset_sigma_dt
protected

Definition at line 113 of file TimePdfMaster.h.

◆ _r_p0_os

RooRealVar* TimePdfMaster::_r_p0_os
protected

Definition at line 129 of file TimePdfMaster.h.

◆ _r_p0_ss

RooRealVar* TimePdfMaster::_r_p0_ss
protected

Definition at line 136 of file TimePdfMaster.h.

◆ _r_p1_os

RooRealVar* TimePdfMaster::_r_p1_os
protected

Definition at line 130 of file TimePdfMaster.h.

◆ _r_p1_ss

RooRealVar* TimePdfMaster::_r_p1_ss
protected

Definition at line 137 of file TimePdfMaster.h.

◆ _r_production_asym

RooRealVar* TimePdfMaster::_r_production_asym
protected

Definition at line 144 of file TimePdfMaster.h.

◆ _r_q_OS

RooCategory* TimePdfMaster::_r_q_OS
protected

Definition at line 100 of file TimePdfMaster.h.

◆ _r_q_SS

RooCategory* TimePdfMaster::_r_q_SS
protected

Definition at line 102 of file TimePdfMaster.h.

◆ _r_run

RooCategory* TimePdfMaster::_r_run
protected

Definition at line 105 of file TimePdfMaster.h.

◆ _r_S

RooRealVar* TimePdfMaster::_r_S
protected

Definition at line 159 of file TimePdfMaster.h.

◆ _r_S_bar

RooRealVar* TimePdfMaster::_r_S_bar
protected

Definition at line 160 of file TimePdfMaster.h.

◆ _r_scale_mean_dt

RooRealVar* TimePdfMaster::_r_scale_mean_dt
protected

Definition at line 112 of file TimePdfMaster.h.

◆ _r_scale_sigma_2_dt

RooRealVar* TimePdfMaster::_r_scale_sigma_2_dt
protected

Definition at line 115 of file TimePdfMaster.h.

◆ _r_scale_sigma_dt

RooRealVar* TimePdfMaster::_r_scale_sigma_dt
protected

Definition at line 114 of file TimePdfMaster.h.

◆ _r_t

RooRealVar* TimePdfMaster::_r_t
protected

Cast of MINT parameters to B2DX parameters.

Definition at line 97 of file TimePdfMaster.h.

◆ _r_tageff_asym_os

RooRealVar* TimePdfMaster::_r_tageff_asym_os
protected

Definition at line 135 of file TimePdfMaster.h.

◆ _r_tageff_asym_ss

RooRealVar* TimePdfMaster::_r_tageff_asym_ss
protected

Definition at line 142 of file TimePdfMaster.h.

◆ _r_tageff_os

RooRealVar* TimePdfMaster::_r_tageff_os
protected

Definition at line 134 of file TimePdfMaster.h.

◆ _r_tageff_ss

RooRealVar* TimePdfMaster::_r_tageff_ss
protected

Definition at line 141 of file TimePdfMaster.h.

◆ _r_tau

RooRealVar* TimePdfMaster::_r_tau
protected

Definition at line 108 of file TimePdfMaster.h.

◆ _r_trigger

RooCategory* TimePdfMaster::_r_trigger
protected

Definition at line 106 of file TimePdfMaster.h.

◆ _resmodel

RooGaussModel* TimePdfMaster::_resmodel
protected

Definition at line 203 of file TimePdfMaster.h.

◆ _sampleGen

RooMCStudy* TimePdfMaster::_sampleGen
protected

Definition at line 208 of file TimePdfMaster.h.

◆ _samplingPdf

RooProdPdf* TimePdfMaster::_samplingPdf
protected

Definition at line 205 of file TimePdfMaster.h.

◆ _samplingPdf_t

RooBDecay* TimePdfMaster::_samplingPdf_t
protected

Definition at line 201 of file TimePdfMaster.h.

◆ _samplingPdf_t_eff

RooEffProd* TimePdfMaster::_samplingPdf_t_eff
protected

Definition at line 204 of file TimePdfMaster.h.

◆ _scale_mean_dt

const MINT::FitParameter& TimePdfMaster::_scale_mean_dt
protected

Definition at line 62 of file TimePdfMaster.h.

◆ _scale_sigma_2_dt

const MINT::FitParameter& TimePdfMaster::_scale_sigma_2_dt
protected

Definition at line 64 of file TimePdfMaster.h.

◆ _scale_sigma_dt

const MINT::FitParameter& TimePdfMaster::_scale_sigma_dt
protected

Definition at line 63 of file TimePdfMaster.h.

◆ _sin_coeff

DecRateCoeff_Bd* TimePdfMaster::_sin_coeff
protected

Definition at line 165 of file TimePdfMaster.h.

◆ _sin_term

TimePdfIntegrator* TimePdfMaster::_sin_term
protected

Definition at line 172 of file TimePdfMaster.h.

◆ _sinh_coeff

DecRateCoeff_Bd* TimePdfMaster::_sinh_coeff
protected

Definition at line 166 of file TimePdfMaster.h.

◆ _sinh_term

TimePdfIntegrator* TimePdfMaster::_sinh_term
protected

Definition at line 170 of file TimePdfMaster.h.

◆ _spline

RooCubicSplineFun* TimePdfMaster::_spline
protected

Definition at line 148 of file TimePdfMaster.h.

◆ _splinePdf

RooProduct* TimePdfMaster::_splinePdf
protected

Definition at line 149 of file TimePdfMaster.h.

◆ _tageff_asym_os

const MINT::FitParameter& TimePdfMaster::_tageff_asym_os
protected

Definition at line 83 of file TimePdfMaster.h.

◆ _tageff_asym_ss

const MINT::FitParameter& TimePdfMaster::_tageff_asym_ss
protected

Definition at line 91 of file TimePdfMaster.h.

◆ _tageff_os

const MINT::FitParameter& TimePdfMaster::_tageff_os
protected

Definition at line 82 of file TimePdfMaster.h.

◆ _tageff_ss

const MINT::FitParameter& TimePdfMaster::_tageff_ss
protected

Definition at line 90 of file TimePdfMaster.h.


The documentation for this class was generated from the following file: