ram1123 / 2l2Q_limitSettingTool

0 stars 0 forks source link

Introduction

This is a command line tool designed to perform a high mass Higgs search analysis using the combine software. It includes options for creating datacards, combining them, and running combine on the resulting cards to produce various results including limit values and impact plots.

Installation

Setup Higgs combine tool

Step-1: Combine setup inheritted from https://cms-analysis.github.io/HiggsAnalysis-CombinedLimit/

.. code:: bash

export SCRAM_ARCH=slc7_amd64_gcc700 cmsrel CMSSW_11_3_4 cd CMSSW_11_3_4/src cmsenv git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit cd HiggsAnalysis/CombinedLimit cd $CMSSW_BASE/src/HiggsAnalysis/CombinedLimit git fetch origin git checkout v9.0.0 scramv1 b clean; scramv1 b # always make a clean build cd $CMSSW_BASE/src bash <(curl -s https://raw.githubusercontent.com/cms-analysis/CombineHarvester/main/CombineTools/scripts/sparse-checkout-ssh.sh) scramv1 b -j 8

Step-2: Get the custom tool for datacard creation and limit computation

.. code:: bash

cd $CMSSW_BASE/src git clone git@github.com:ram1123/2l2q_limitsettingtool.git -b main

Usage

The tool is run from the command line with various options. Here is a list of command line available options:

General Settings

Mass Settings

Year and Condor Settings

Fit Settings

Logging Settings

Advanced Settings

Step Control

Usage Example

.. code:: bash

Datacard creation step for year 2018

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s dc

Combine card step for year 2018

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s cc

Asymptotic combine command step to get the limit for year 2018

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s rc

Asymptotic combine command step to get the limit for year 2018 and for all mass points in parallel using condor

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s rc -c -p

Impact plot step for year 2018. Impact plot has 3 steps: InitialFit, doFits, and plotImpacts.

Below commands will run each step for all mass points for 2018 using condor.

-p is used so that it will submit jobs in parallel for all mass points

-ss is used to specify which sub-step to run.

Don't submit next step until the previous step is finished. Otherwise, it won't find the input files and give you errors.

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s ri -ss 1 -c -p python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s ri -ss 2 -c -p python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s ri -ss 3 -c -p

To run the impact plot or any other step for once mass point use the option -mi and -mf to specify the mass point

python makeDCsandWSs.py -i HM_inputs_2018UL -y 2018 -s ri -ss 1 -mi 500 -mf 501

The above command will run only the mass point 500 GeV

Input Information Required

To run this tool, you will need to have the following input information:

Please make sure that you have all of these directories and files available and that they are properly formatted before running the tool.

Additional Information

Here are some additional details to keep in mind when running this tool: