Skip to content

cms-tau-pog/TauFW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TauFW

Framework for tau analysis using NanoAOD at CMS. Three main packages are

  1. PicoProducer: Tools to process nanoAOD and make custom analysis ntuples.
  2. Plotter: Tools for further analysis, auxiliary measurements, validation and plotting.
  3. Fitter: Tools for measurements and fits in combine. [Under development.]

Installation

Table of Contents

CMSSW environment

First, setup a CMSSW release. For example,

nanoAODv10 (python3) Older versions (python2)
export CMSSW=CMSSW_12_4_8
export SCRAM_ARCH=slc7_amd64_gcc10
cmsrel $CMSSW
cd $CMSSW/src
cmsenv
export CMSSW=CMSSW_11_3_4
export SCRAM_ARCH=slc7_amd64_gcc900
cmsrel $CMSSW
cd $CMSSW/src
cmsenv

On a Linux 8 node like lxplus8, you can use the el8_amd64_gcc10 architecture instead of slc7_*.

Which CMSSW release should not really matter for post-processing of nanoAOD, but if you like to use combine in the same repository, it is better to use at least the recommended release for the latest Combine version, see below.

TauFW

To install TauFW:

cd $CMSSW_BASE/src/
git clone https://github.com/cms-tau-pog/TauFW TauFW
scram b -j4

With each new session, do

export SCRAM_ARCH=slc7_amd64_gcc700
cd $CMSSW/src
cmsenv

PicoProducer

If you want to process nanoAOD using PicoProducer, install NanoAODTools:

cd $CMSSW_BASE/src/
git clone https://github.com/cms-nanoAOD/nanoAOD-tools.git PhysicsTools/NanoAODTools
scram b -j4

If you want to use tau ID SFs, please install TauIDSFs tool:

cd $CMSSW_BASE/src/
git clone https://github.com/cms-tau-pog/TauIDSFs TauPOG/TauIDSFs
cmsenv
scram b -j4

If you want to use the lepton SFs from the HTT group, please do

cd $CMSSW_BASE/src/TauFW/PicoProducer/data/lepton/
rm -rf HTT
git clone https://github.com/CMS-HTT/LeptonEfficiencies HTT

Combine

If you want to use the combine tools in Fitter, install combine following the latest instructions, for example

cd $CMSSW_BASE/src
git clone https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit.git HiggsAnalysis/CombinedLimit
cd HiggsAnalysis/CombinedLimit
git fetch origin
git checkout v8.1.0 # for CMSSW_10_X
git checkout v9.1.0 # for CMSSW_11_X

and then CombineHarvester,

cd $CMSSW_BASE/src
git clone https://github.com/cms-analysis/CombineHarvester.git CombineHarvester
scramv1 b clean; scramv1 b
git checkout v2.0.0 # for CMSSW_11_X only

TauPOG corrections

For TauPOG-internal work: To create JSON files with TauPOG corrections for correctionlib, please follow the instructions here. From at least CMSSW_11_3_X, correctionlib should be pre-installed.

To create ROOT files including the measured SFs please install TauIDSFs tool. Modify the TauIDSFs/utils/createSFFiles.py script to include your measured SFs into the script. Finally, run the TauFW/scripts/tau_createROOT.sh to generate your ROOT files. They will be created into TauFW/scripts/data/ IMPORTANT: please comment and do not delete older SFs

The latest code used to create root files for SF can be taken from here