Commit 1f0efbe
committed
[RF] Avoid confusing
In the documentation of the RooSimultaneous, it says about the
`ProjWData()` argument:
> For observables present in given dataset projection of PDF is achieved
by constructing an average over all observable values in given set.
And about `Slice()`, it says:
> Override default projection behaviour by omitting the specified
category observable from the projection, i.e., by not integrating over
all states of this category.
Starting from this explanation, it is highly unintuitive that one should
do things like `simPdf.plotOn(Slice(sample, "state"), ProjWData(same))` when
plotting the pdf of state `"state"` from a RooSimultaneous.
I think that instead, we should promote easy patterns in the tutorials.
That is, if you want to plot a slice pdf from a RooSimultaneous, you are
retreiving it with `getPdf()` and then plot it. The result is the same.plotOn(Slice(sample), ProjWData(same)) pattern1 parent 87df588 commit 1f0efbe
File tree
3 files changed
+42
-44
lines changed- roofit/roofitcore/test
- tutorials/roofit/roofit
3 files changed
+42
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2972 | 2972 | | |
2973 | 2973 | | |
2974 | 2974 | | |
2975 | | - | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
2976 | 2978 | | |
2977 | 2979 | | |
2978 | | - | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
2982 | | - | |
2983 | | - | |
2984 | | - | |
2985 | | - | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
2986 | 2984 | | |
2987 | | - | |
2988 | | - | |
2989 | | - | |
2990 | | - | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
2991 | 2990 | | |
2992 | 2991 | | |
2993 | 2992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
108 | 116 | | |
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 122 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 103 | + | |
| 104 | + | |
109 | 105 | | |
110 | 106 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments