cmt.base_tasks.analysis
Analysis tasks.
Class FitBase
Class CombineBase
- class cmt.base_tasks.analysis.CombineBase(*args, **kwargs)[source]
Bases:
FeaturePlot,FitBaseBase task for all combine-related tasks
- Parameters:
Class CombineCategoriesTask
- class cmt.base_tasks.analysis.CombineCategoriesTask(*args, **kwargs)[source]
Bases:
CombineBaseBase task for all combine-related tasks with multiple categories
- Parameters:
category_names (list of str) – names of categories to run
combine_categories (bool) – whether to run on the combined datacard or per category
Class CreateDatacards
- class cmt.base_tasks.analysis.CreateDatacards(*args, **kwargs)[source]
Bases:
CombineBaseTask that creates datacards for its use inside the combine framework
- Parameters:
automcstats (int) – Value used for autoMCStats inside the datacard, -1 to avoid using it.
additional_lines (list of str) – Additional lines to write at the end of the datacard.
propagate_syst_qcd (bool) – Whether to propagate systematics to estimated qcd background.
counting (bool) – whether the datacard should consider a counting experiment
Class Fit
- class cmt.base_tasks.analysis.Fit(*args, **kwargs)[source]
Bases:
FeaturePlot,FitBaseTask that run fits over FeaturePlot histograms
- Parameters:
method (str) – Fitting method to consider. To choose between voigtian, polynomial, exponential, powerlaw.
process_name (str) – Process name to consider.
x_range (Two comma-separated float.) – Range of the x axis to consider in the fitting.
blind_range (Two comma-separated float.) – Range of the x axis to blind in the fitting.
fit_parameters (str representing a dict (e.g. ‘{“mean”: “(20, -100, 100)”}’).) – Initial values for the parameters involved in the fit.
Class InspectFitSyst
Class CombineDatacards
- class cmt.base_tasks.analysis.CombineDatacards(*args, **kwargs)[source]
Bases:
CombineCategoriesTaskTask that combines datacards coming from
CreateDatacards.
Class CreateWorkspace
- class cmt.base_tasks.analysis.CreateWorkspace(*args, **kwargs)[source]
Bases:
CreateDatacards,CombineCategoriesTask,LocalWorkflow,HTCondorWorkflow,SGEWorkflowTask that creates the Combine workspace from the datacards obtained from
CreateDatacardsorCombineDatacards.- create_branch_map()[source]
Returns one branch if categories are combined or one branch per category
- requires()[source]
Requires the datacard coming from CombineDatacards or one datacard per category obtained by CreateDatacards.
- workflow_requires()[source]
Requires the datacard coming from CombineDatacards or one datacard per category obtained by CreateDatacards.
Class RunCombine
- class cmt.base_tasks.analysis.RunCombine(*args, **kwargs)[source]
Bases:
CreateWorkspaceTask that runs the combine tool over the workspace created by
CreateWorkspace.- Parameters:
method (bool) – Combine method to consider. Only limits (AsymptoticLimits) is implemented for now.
unblind – Whether to run combine unblinded.
Class PullsAndImpacts
- class cmt.base_tasks.analysis.PullsAndImpacts(*args, **kwargs)[source]
Bases:
RunCombineTask that obtains the pulls and impacts over the workspace created by
CreateWorkspace. Based on https://gitlab.cern.ch/hh/tools/inference/-/blob/master/dhi/tasks/pulls_impacts.py
Class MergePullsAndImpacts
- class cmt.base_tasks.analysis.MergePullsAndImpacts(*args, **kwargs)[source]
Bases:
CombineCategoriesTaskTask that merges the pulls and impacts for each systematic obtained by
PullsAndImpacts.
Class PlotPullsAndImpacts
- class cmt.base_tasks.analysis.PlotPullsAndImpacts(*args, **kwargs)[source]
Bases:
MergePullsAndImpactsTask that plots pulls and impacts coming from
MergePullsAndImpacts.