Code Monkey home page Code Monkey logo

taufw's Introduction

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

taufw's People

Contributors

izaakwn avatar arturakh avatar smonig avatar cardinia avatar kchrisucy avatar ywen-ai avatar pmastrap avatar hephysicist avatar dennroy avatar harrypuuter 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.