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:
0x7fff3cd288f8 RooAddPdf::model = 750.5/1 [Auto,Clean]
0x7fff3cd272a0/V- RooGaussian::gauss = 0 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x7fff3cd29400/V- RooRealVar::meanG = 100
0x7fff3cd27d40/V- RooRealVar::sigmaG = 3
0x7fff3cd297e8/V- RooRealVar::yieldSig = 1
0x7fff3cd277f8/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x7fff3cd28128/V- RooRealVar::pol1 = 1
0x7fff3cd28510/V- RooRealVar::yieldBkg = 1
PDF 1 with a yield depending on M:
0x2c72ca0 RooAddPdf::model_Sample1 = 1156.8/1 [Auto,Clean]
0x2c2b740/V- RooGaussian::gauss_Sample1 = 0 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x2c8bf80/V- RooRealVar::meanG_Sample1 = 100
0x7fff3cd27d40/V- RooRealVar::sigmaG = 3
0x7fff3cd2a720/V- RooFormulaVar::yieldSig_Sample1 = 0.29755 [Auto,Clean]
0x7fff3cd29bd0/V- RooRealVar::M = 1
0x7fff3cd277f8/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x7fff3cd28128/V- RooRealVar::pol1 = 1
0x7fff3cd28510/V- RooRealVar::yieldBkg = 1
PDF 2 with a yield depending on M:
0x2c876e0 RooAddPdf::model_Sample2 = 1000.67/1 [Auto,Clean]
0x2c98250/V- RooGaussian::gauss_Sample2 = 0 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x429da20/V- RooRealVar::meanG_Sample2 = 100
0x7fff3cd27d40/V- RooRealVar::sigmaG = 3
0x7fff3cd2ab58/V- RooFormulaVar::yieldSig_Sample2 = 0.5 [Auto,Clean]
0x7fff3cd29bd0/V- RooRealVar::M = 1
0x7fff3cd277f8/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x7fff3cd28128/V- RooRealVar::pol1 = 1
0x7fff3cd28510/V- RooRealVar::yieldBkg = 1
PDF 3 with a free yield:
0x2c700b0 RooAddPdf::model_Sample3 = 750.5/1 [Auto,Clean]
0x2c80640/V- RooGaussian::gauss_Sample3 = 0 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x42b4430/V- RooRealVar::meanG_Sample3 = 100
0x7fff3cd27d40/V- RooRealVar::sigmaG = 3
0x2c8c370/V- RooRealVar::yieldSig_Sample3 = 1
0x7fff3cd277f8/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x7fff3cd29018/V- RooRealVar::Energy = 1500
0x7fff3cd28128/V- RooRealVar::pol1 = 1
0x7fff3cd28510/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