NOTE If using Final Fits with the output of HiggsDNA, then please switch to this branch
Welcome to the new Final Fits package. Here lies a a series of scripts which are used to run the final stages of the CMS Hgg analysis: signal modelling, background modelling, datacard creation, final statistical interpretation and final result plots.
Slides from the flashgg tutorial series can be found here
export SCRAM_ARCH=slc7_amd64_gcc700
cmsrel CMSSW_10_2_13
cd CMSSW_10_2_13/src
# Install the GBRLikelihood package which contains the RooDoubleCBFast implementation
git clone https://github.com/jonathon-langford/HiggsAnalysis.git
# Install Combine as per the documentation here: cms-analysis.github.io/HiggsAnalysis-CombinedLimit/
git clone -b v8.2.0 https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
# Install Combine Harvester for parallelizing fits
git clone -b 102x https://github.com/cms-analysis/CombineHarvester.git CombineHarvester
# Compile external libraries
cmsenv
scram b -j 9
# Install Flashgg Final Fit packages
<<<<<<< HEAD
git clone -b dev_fggfinalfits_lite [email protected]:Higgs-Anomalous-Couplings/flashggFinalFit.git
=======
git clone -b dev_fggfinalfits_lite https://github.com/cms-analysis/flashggFinalFit.git
>>>>>>> aeec9abcd702886cd16f201aaac3a88325992669
cd flashggFinalFit/
In every new shell run the following to add tools/commonTools and tools/commonObjects to your ${PYTHONPATH}:
cmsenv
source setup.sh
The Finals Fits package contains several subfolders which are used for the following steps:
- Create the Signal Model (see
Signaldir) - Create the Background Model (see
Backgrounddir) - Generate a Datacard (see
Datacarddir) - Running fits with combine (see
Combinedir) - Scripts to produce plots (see
Plotsdir)
The signal modelling, background modelling and datacard creation can be ran in parallel. Of course the final fits (Combine) requires the output of these three steps. In addition, the scripts in the Trees2WS dir are a series of lightweight scripts for converting standard ROOT trees into a RooWorkspace that can be read by the Final Fits package.
Finally, the objects and tools which are common to all subfolders are defined in the tools directory. If your input workspaces differ from the flashgg output workspace structure, then you may need to change the options here.
Each of the relevant folders are documented with specific README.md files. Some (temporary) instructions can be found in this google docs