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:
0x55b969eb5e60 RooAddPdf::model = 750.5/1 [Auto,Clean]
0x55b9699e9880/V- RooGaussian::gauss = 0 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b96946c7f0/V- RooRealVar::meanG = 100
0x55b9691b8260/V- RooRealVar::sigmaG = 3
0x55b969a7a760/V- RooRealVar::yieldSig = 1
0x55b969b97910/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b969995450/V- RooRealVar::pol1 = 1
0x55b9698aa290/V- RooRealVar::yieldBkg = 1
PDF 1 with a yield depending on M:
0x55b96a08de40 RooAddPdf::model_Sample1 = 1156.8/1 [Auto,Clean]
0x55b96a037970/V- RooGaussian::gauss_Sample1 = 0 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b9673587f0/V- RooRealVar::meanG_Sample1 = 100
0x55b9691b8260/V- RooRealVar::sigmaG = 3
0x55b96a08a820/V- RooFormulaVar::yieldSig_Sample1 = 0.29755 [Auto,Clean]
0x55b967407740/V- RooRealVar::M = 1
0x55b969b97910/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b969995450/V- RooRealVar::pol1 = 1
0x55b9698aa290/V- RooRealVar::yieldBkg = 1
PDF 2 with a yield depending on M:
0x55b96a060970 RooAddPdf::model_Sample2 = 1000.67/1 [Auto,Clean]
0x55b96a098f90/V- RooGaussian::gauss_Sample2 = 0 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b9698eb300/V- RooRealVar::meanG_Sample2 = 100
0x55b9691b8260/V- RooRealVar::sigmaG = 3
0x55b96a047e20/V- RooFormulaVar::yieldSig_Sample2 = 0.5 [Auto,Clean]
0x55b967407740/V- RooRealVar::M = 1
0x55b969b97910/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b969995450/V- RooRealVar::pol1 = 1
0x55b9698aa290/V- RooRealVar::yieldBkg = 1
PDF 3 with a free yield:
0x55b96a03e3a0 RooAddPdf::model_Sample3 = 750.5/1 [Auto,Clean]
0x55b96a01d710/V- RooGaussian::gauss_Sample3 = 0 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b96556dcf0/V- RooRealVar::meanG_Sample3 = 100
0x55b9691b8260/V- RooRealVar::sigmaG = 3
0x55b9652843c0/V- RooRealVar::yieldSig_Sample3 = 1
0x55b969b97910/V- RooPolynomial::linear = 1501 [Auto,Dirty]
0x55b9696698a0/V- RooRealVar::Energy = 1500
0x55b969995450/V- RooRealVar::pol1 = 1
0x55b9698aa290/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