|
| 1 | +/// \file |
1 | 2 | /// \ingroup tutorial_roofit |
2 | 3 | /// \notebook -nodraw |
3 | 4 | /// |
@@ -62,17 +63,17 @@ void rf514_RooCustomizer() { |
62 | 63 |
|
63 | 64 | // 1. Each sample should have its own mean for the gaussian |
64 | 65 | // The customiser will make copies of `meanG` for each category. |
65 | | - // The they will all appear in the set `newLeafs`, which will own the new nodes. |
| 66 | + // These will all appear in the set `newLeafs`, which will own the new nodes. |
66 | 67 | RooCustomizer cust(model, sample, newLeafs, &allCustomiserNodes); |
67 | 68 | cust.splitArg(meanG, sample); |
68 | 69 |
|
69 | 70 |
|
70 | 71 | // 2. Each sample should have its own signal yield, but there is an extra complication: |
71 | | - // We need each yields 1 and 2 to be a function of the variable "mass". |
| 72 | + // We need the yields 1 and 2 to be a function of the variable "mass". |
72 | 73 | // For this, we pre-define nodes with exacly the names that the customiser would have created automatically, |
73 | 74 | // that is, "<nodeName>_<categoryName>", and we register them in the set of customiser nodes. |
74 | 75 | // The customiser will pick them up instead of creating new ones. |
75 | | - // If we don't provide one (e.g. for "yieldSig_Sample3"), it will be created by cloning `yieldSig`. |
| 76 | + // If we don't provide one (e.g. for "yieldSig_Sample3"), it will be created automatically by cloning `yieldSig`. |
76 | 77 | RooRealVar mass("M", "M", 1, 0, 12000); |
77 | 78 | RooFormulaVar yield1("yieldSig_Sample1", "Signal yield in the first sample", "M/3.360779", mass); |
78 | 79 | RooFormulaVar yield2("yieldSig_Sample2", "Signal yield in the second sample", "M/2", mass); |
|
0 commit comments