Skip to content

hexutils/Combine-Template-Creation

Repository files navigation

Template Creation for Higgs Combine

This repository holds a class that is designed to create templates for Higgs Combine. It will generate the histograms for Combine, as well as the datacards required for both a 1-dimensional fit using $m_{4\mu}$, and a 2-dimensional fit using both $m_{4\mu}$ and an optimal observable discriminant (ex: $D_{0-}$).

Dependencies

  • You will need following packages. Some packages have dependencies (which are not listed). I would recommend using conda to do any package installations, as it will automatically download any dependencies you may need. For packages that require a conda installation, the conda webpage for each package required is linked below:

  • Some of the packages are also packages that come with a default installation of Python. These packages, alongside their documentation, are listed below:

How to use this package

The Template_creator.py function holds the majority of the content in this package. It contains classes for select 1d and 2d Templates, all inheriting from the same parent 1d and 2d template classes. Further development comes as is necessary.

---
title: Class Structure
---
classDiagram
  Template_creator <|-- Template_Creator_1D
  Template_creator <|-- Template_Creator_2D
  Template_Creator_2D <|-- Interf_Coupling_template_creator
  Template_Creator_1D <|-- Interf_Reso_template_creator_1D
  Template_Creator_1D <|-- Significance_Hypothesis_template_creator_1D
  class Template_creator{
    +int dimension
    +float lowerlim
    +float upperlim
    +tuple discr_range
    +dict signals
    +dict scaled_signals
    +dict signal_weights
    +dict discr_signals
    +dict bkgs
    +dict scaled_bkgs
    +dict bkg_weights
    +dict discr_bkgs
    +create_datacards(verbose=False, clean=True)
    +scale_and_add_bkgs()
    +stackPlot(nbins=40)
  }
  class Template_Creator_1D{
    +scale_and_add_bkgs(bins=40, scaleTo=True)
  }
  class Template_Creator_2D{
    +scale_and_add_bkgs(bins=40, scaleTo=True)
  }
  class Interf_Coupling_template_creator{
  }
  class Interf_Reso_template_creator_1D{
    +plot_overall_interference()
  }
  class Significance_Hypothesis_template_creator_1D{
  }
Loading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •