Giter VIP home page Giter VIP logo

fiducialxsfwk's Introduction

Fiducial XS measurements in HZZ4L

Standalone framework for fiducial differential cross section measurements using CJLST TTrees for Run 2 data.

A CMSSW working area with the latest version of combine is required:

export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_2_13
cd CMSSW_10_2_13/src
cmsenv
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
git fetch origin
git checkout v8.1.0
scramv1 b clean; scramv1 b

The PhysicsModel(s) used in this analysis (cf. fit/createDatacard.py) can be found in the models folder. Please copy them in $CMSSW_VERSION/src/HiggsAnalysis/CombinedLimit/python before running the scipts in fit.

Workflow

A schematic representation of the framework's worflow is given in the two following sketches:

Preparation of the reduced trees and datacards Setting up the datacards and running the fits

The input files of the analysis workflow are the HZZ4L ntuples generated with the CJLST framework. This framework starts from those files and:

  1. config: Starting from CJLST TTrees, only relevant branches are selected and stored by skim_MC_tree.C and skim_data_tree.C macros.

Having created these skimmed TTrees, the next steps of the analysis involve the caluclation of the different coefficients needed for the pdf parameterisations and unfolding, as well as the creation of background templates. To do so:

  1. templates: Templates and normalization coefficients for the backgrounds' pdf are extracted from MC (ggZZ and qqZZ) and data (ZX) using RunTemplates.py
  2. coefficients: All the coefficients of the signal parameterization are calculated with RunCoefficients.py and stored in inputs folder.
  3. fit: The maximum likelihood fit is performed. This step relies on the RunFiducialXS.py script and it can be run either as part of the entire framework, creating the datacards and workspaces from scratch, or using pre-existing datacars as input. Datacards are produced and stored in a datacard directory, while fit results (combine .root files) are stored in combine_files folder.

Additional scripts are provided to plot negative log-likelihood scans and to produce the usual differential xsec plots:

  1. LHScans: Likelihood scans are plotted, best-fit values and the corresponding uncertainties are calculated using plotLHScans_compare.py.
  2. producePlots.py: Plot of unfolded differential xsec distributions.

fiducialxsfwk's People

Contributors

alessandrotarabini avatar bonanomi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.