rootpy.stats.histfactory.Channel¶
-
class
rootpy.stats.histfactory.
Channel
(name, samples=None, data=None, inputfile='')[source]¶ -
apply_snapshot
(argset)[source]¶ Create a clone of this Channel where histograms are modified according to the values of the nuisance parameters in the snapshot. This is useful when creating post-fit distribution plots.
Parameters: argset : RooArtSet
A RooArgSet of RooRealVar nuisance parameters
Returns: channel : Channel
The modified channel
-
sys_hist
(name=None, where=None)[source]¶ Return the effective total low and high histogram for a given systematic over samples in this channel. If a sample does not contain the named systematic then its nominal histogram is used for both low and high variations.
Parameters: name : string, optional (default=None)
The systematic name otherwise nominal if None
where : callable, optional (default=None)
A callable taking one argument: the sample, and returns True if this sample should be included in the total.
Returns: total_low, total_high : histograms
The total low and high histograms for this systematic
-