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:
0x55e80585de20 RooAddPdf::model = 750.5/1 [Auto,Clean]
0x55e80548c6c0/V- RooGaussian::gauss = 0 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e8050f6090/V- RooRealVar::meanG = 100
0x55e804ef6b40/V- RooRealVar::sigmaG = 3
0x55e805502910/V- RooRealVar::yieldSig = 1
0x55e80558bc80/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e80535a670/V- RooRealVar::pol1 = 1
0x55e805329090/V- RooRealVar::yieldBkg = 1
PDF 1 with a yield depending on M:
0x55e805adf780 RooAddPdf::model_Sample1 = 1156.8/1 [Auto,Clean]
0x55e805a5f090/V- RooGaussian::gauss_Sample1 = 0 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e805719b80/V- RooRealVar::meanG_Sample1 = 100
0x55e804ef6b40/V- RooRealVar::sigmaG = 3
0x55e805a4a410/V- RooFormulaVar::yieldSig_Sample1 = 0.29755 [Auto,Clean]
0x55e8058476f0/V- RooRealVar::M = 1
0x55e80558bc80/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e80535a670/V- RooRealVar::pol1 = 1
0x55e805329090/V- RooRealVar::yieldBkg = 1
PDF 2 with a yield depending on M:
0x55e805ab0dc0 RooAddPdf::model_Sample2 = 1000.67/1 [Auto,Clean]
0x55e805a48a00/V- RooGaussian::gauss_Sample2 = 0 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e80561de20/V- RooRealVar::meanG_Sample2 = 100
0x55e804ef6b40/V- RooRealVar::sigmaG = 3
0x55e805a72ec0/V- RooFormulaVar::yieldSig_Sample2 = 0.5 [Auto,Clean]
0x55e8058476f0/V- RooRealVar::M = 1
0x55e80558bc80/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e80535a670/V- RooRealVar::pol1 = 1
0x55e805329090/V- RooRealVar::yieldBkg = 1
PDF 3 with a free yield:
0x55e8059e4ef0 RooAddPdf::model_Sample3 = 750.5/1 [Auto,Clean]
0x55e805ae37b0/V- RooGaussian::gauss_Sample3 = 0 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e8011bb0f0/V- RooRealVar::meanG_Sample3 = 100
0x55e804ef6b40/V- RooRealVar::sigmaG = 3
0x55e800f72450/V- RooRealVar::yieldSig_Sample3 = 1
0x55e80558bc80/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55e805175660/V- RooRealVar::Energy = 1500
0x55e80535a670/V- RooRealVar::pol1 = 1
0x55e805329090/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