27model = 
ROOT.RooAddPdf(
"model", 
"S + B model", [gauss, linear], [yieldSig, yieldBkg])
 
   29print(
"The proto model before customisation:\n")
 
   34sample = 
ROOT.RooCategory(
"sample", 
"sample", {
"Sample1": 1, 
"Sample2": 2, 
"Sample3": 3})
 
   59yield1 = 
ROOT.RooFormulaVar(
"yieldSig_Sample1", 
"Signal yield in the first sample", 
"M/3.360779", mass)
 
   60yield2 = 
ROOT.RooFormulaVar(
"yieldSig_Sample2", 
"Signal yield in the second sample", 
"M/2", mass)
 
   74print(
"\nPDF 1 with a yield depending on M:\n")
 
   76print(
"\nPDF 2 with a yield depending on M:\n")
 
   78print(
"\nPDF 3 with a free yield:\n")
 
   81print(
"\nThe following leaves have been created automatically while customising:\n")
 
   85meanG1 = allCustomiserNodes[
"meanG_Sample1"]
 
   87meanG2 = allCustomiserNodes[
"meanG_Sample2"]
 
   91    "\nThe following leaves have been used while customising\n\t(partial overlap with the set of automatically created leaves.\n\ta new customiser for a different PDF could reuse them if necessary.):" 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.