As an extra complication, some of the new parameters need to be functions of a mass parameter.
[#0] WARNING:InputArguments -- The parameter 'sigmaG' with range [-inf, inf] of the RooGaussian 'gauss' exceeds the safe range of (0, inf). Advise to limit its range.
The proto model before customisation:
0x55b557398800 RooAddPdf::model = 750.5/1 [Auto,Clean]
0x55b55a8eac40/V- RooGaussian::gauss = 0 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b5576bac60/V- RooRealVar::meanG = 100
0x55b55a7c8070/V- RooRealVar::sigmaG = 3
0x55b55aa8c040/V- RooRealVar::yieldSig = 1
0x55b55aaca560/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b555274da0/V- RooRealVar::pol1 = 1
0x55b559cae170/V- RooRealVar::yieldBkg = 1
PDF 1 with a yield depending on M:
0x55b55b03f2a0 RooAddPdf::model_Sample1 = 1156.8/1 [Auto,Clean]
0x55b55ad8a2f0/V- RooGaussian::gauss_Sample1 = 0 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b55abfe390/V- RooRealVar::meanG_Sample1 = 100
0x55b55a7c8070/V- RooRealVar::sigmaG = 3
0x55b55b042520/V- RooFormulaVar::yieldSig_Sample1 = 0.29755 [Auto,Clean]
0x55b55ae04c70/V- RooRealVar::M = 1
0x55b55aaca560/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b555274da0/V- RooRealVar::pol1 = 1
0x55b559cae170/V- RooRealVar::yieldBkg = 1
PDF 2 with a yield depending on M:
0x55b55b04fcd0 RooAddPdf::model_Sample2 = 1000.67/1 [Auto,Clean]
0x55b55b035410/V- RooGaussian::gauss_Sample2 = 0 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b55b01fc10/V- RooRealVar::meanG_Sample2 = 100
0x55b55a7c8070/V- RooRealVar::sigmaG = 3
0x55b55b032380/V- RooFormulaVar::yieldSig_Sample2 = 0.5 [Auto,Clean]
0x55b55ae04c70/V- RooRealVar::M = 1
0x55b55aaca560/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b555274da0/V- RooRealVar::pol1 = 1
0x55b559cae170/V- RooRealVar::yieldBkg = 1
PDF 3 with a free yield:
0x55b55b04c8d0 RooAddPdf::model_Sample3 = 750.5/1 [Auto,Clean]
0x55b55ad89a60/V- RooGaussian::gauss_Sample3 = 0 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b55afd66a0/V- RooRealVar::meanG_Sample3 = 100
0x55b55a7c8070/V- RooRealVar::sigmaG = 3
0x55b55b03a9d0/V- RooRealVar::yieldSig_Sample3 = 1
0x55b55aaca560/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b558e3db00/V- RooRealVar::Energy = 1500
0x55b555274da0/V- RooRealVar::pol1 = 1
0x55b559cae170/V- RooRealVar::yieldBkg = 1
The following leaves have been created automatically while customising:
1) RooRealVar:: meanG_Sample1 = 100
2) RooRealVar:: meanG_Sample2 = 100
3) RooRealVar:: meanG_Sample3 = 100
4) RooRealVar:: yieldSig_Sample3 = 1
The following leaves have been used while customising
(partial overlap with the set of automatically created leaves.
a new customiser for a different PDF could reuse them if necessary.):
1) RooFormulaVar:: yieldSig_Sample1 = 0.29755
2) RooFormulaVar:: yieldSig_Sample2 = 0.5
3) RooRealVar:: meanG_Sample1 = 200
4) RooRealVar:: meanG_Sample2 = 300
5) RooRealVar:: meanG_Sample3 = 100
6) RooRealVar:: yieldSig_Sample3 = 1