HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
datacards.Datacards Class Reference
+ Inheritance diagram for datacards.Datacards:

Public Member Functions

def __init__
 
def add_processes
 
def get_samples_per_shape_systematic
 
def lnN2shape
 
def extract_shapes
 
def create_morphing_signals
 
def add_bin_by_bin_uncertainties
 
def scale_expectation
 
def scale_processes
 
def remove_shape_uncertainties
 
def replace_observation_by_asimov_dataset
 
def read_datacards
 
def write_datacards
 
def text2workspace
 
def combine
 
def annotate_trees
 
def hypotestresulttree
 
def plot1DScan
 
def postfit_shapes
 
def postfit_shapes_fromworkspace
 
def prefit_postfit_plots
 
def print_pulls
 
def pull_plots
 This method is depreceated since there exists an official way to produce the impacts of nuisance parameters. More...
 
def nuisance_impacts
 
def auto_rebin
 

Static Public Member Functions

def get_yield_unc_rel
 Extracts the data from background estimation methods stored in the metadata TObjString. More...
 

Public Attributes

 cb
 
 configs
 
 stable_options
 
 workspace
 
 morphing_variable
 

Constructor & Destructor Documentation

def datacards.Datacards.__init__ (   self,
  cb = None 
)

Member Function Documentation

def datacards.Datacards.add_bin_by_bin_uncertainties (   self,
  processes,
  add_threshold = 0.1,
  merge_threshold = 0.5,
  fix_norm = True 
)
def datacards.Datacards.add_processes (   self,
  channel,
  categories,
  bkg_processes,
  sig_processes = ["ztt"],
  add_data = True,
  args,
  kwargs 
)
def datacards.Datacards.annotate_trees (   self,
  datacards_workspaces,
  root_filename,
  value_regex_list,
  value_replacements = None,
  n_processes = 1,
  values_tree_files = None,
  args 
)
def datacards.Datacards.auto_rebin (   self,
  bin_threshold = 1.0,
  rebin_mode = 0 
)
def datacards.Datacards.combine (   self,
  datacards_cbs,
  datacards_workspaces,
  datacards_poi_ranges = None,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.create_morphing_signals (   self,
  morphing_variable_name,
  nominal_value,
  min_value,
  max_value 
)
def datacards.Datacards.extract_shapes (   self,
  root_filename_template,
  bkg_histogram_name_template,
  sig_histogram_name_template,
  bkg_syst_histogram_name_template,
  sig_syst_histogram_name_template,
  update_systematics = False 
)
def datacards.Datacards.get_samples_per_shape_systematic (   self,
  channel = None,
  category = None,
  kwargs 
)
def datacards.Datacards.get_yield_unc_rel (   histogram_path,
  root_file,
  root_object_paths 
)
static

Extracts the data from background estimation methods stored in the metadata TObjString.

def datacards.Datacards.hypotestresulttree (   self,
  datacards_cbs,
  n_processes = 1,
  rvalue = "1",
  poiname = "x" 
)
def datacards.Datacards.lnN2shape (   self,
  kwargs 
)
def datacards.Datacards.nuisance_impacts (   self,
  datacards_cbs,
  datacards_workspaces,
  n_processes = 1,
  args 
)
def datacards.Datacards.plot1DScan (   self,
  datacards_cbs,
  datacards_workspaces,
  poi,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.postfit_shapes (   self,
  datacards_cbs,
  s_fit_only = False,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.postfit_shapes_fromworkspace (   self,
  datacards_cbs,
  datacards_workspaces,
  s_fit_only = False,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.prefit_postfit_plots (   self,
  datacards_cbs,
  datacards_postfit_shapes,
  plotting_args = None,
  n_processes = 1,
  signal_stacked_on_bkg = False,
  args,
  kwargs 
)
def datacards.Datacards.print_pulls (   self,
  datacards_cbs,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.pull_plots (   self,
  datacards_postfit_shapes,
  s_fit_only = False,
  plotting_args = None,
  n_processes = 1,
  args 
)

This method is depreceated since there exists an official way to produce the impacts of nuisance parameters.

def datacards.Datacards.read_datacards (   self,
  datacard_filename_template,
  root_filename_template,
  input_directory = "." 
)
def datacards.Datacards.remove_shape_uncertainties (   self)
def datacards.Datacards.replace_observation_by_asimov_dataset (   self,
  signal_mass = None,
  signal_processes = None 
)
def datacards.Datacards.scale_expectation (   self,
  scale_factor,
  no_norm_rate_bkg = False,
  no_norm_rate_sig = False 
)
def datacards.Datacards.scale_processes (   self,
  scale_factor,
  processes,
  no_norm_rate = False 
)
def datacards.Datacards.text2workspace (   self,
  datacards_cbs,
  n_processes = 1,
  args,
  kwargs 
)
def datacards.Datacards.write_datacards (   self,
  datacard_filename_template,
  root_filename_template,
  output_directory = "." 
)

Member Data Documentation

datacards.Datacards.cb
datacards.Datacards.configs
datacards.Datacards.morphing_variable
datacards.Datacards.stable_options
datacards.Datacards.workspace

The documentation for this class was generated from the following file: