Skip to content

CMSSW tools for analyzing TTH events with boosted objects

Notifications You must be signed in to change notification settings

HerrHorizontal/BoostedTTH

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BoostedTTH

CMSSW tools for analyzing TTH events with boosted objects

Build Status

Installation

Follow These Steps:

# setup environment
export SCRAM_ARCH="slc6_amd64_gcc630"
export CMSSW_VERSION="CMSSW_9_4_9"


# create new CMSSW environment
scram project $CMSSW_VERSION
cd $CMSSW_VERSION/src
export CMSSWSRCDIR="$( pwd )"
eval `scramv1 runtime -sh` 

git cms-merge-topic yrath:deterministicSeeds
    
git cms-merge-topic michaelwassmer:CMSSW_9_4_6_patch1_changed_SmearedJetProducer

git cms-merge-topic cms-egamma:EgammaPostRecoTools_940 #just adds in an extra file to have a setup function to make things easier
#git cms-merge-topic cms-egamma:Egamma80XMiniAODV2_946 #adds the c++ changes necessary to enable 2016 scale & smearing corrections (is loaded per default)


# install common classifier
mkdir TTH
cd TTH
git clone https://gitlab.cern.ch/ttH/CommonClassifier.git
source CommonClassifier/setup/install_mem.sh
# use recent version of LHAPDF header
sed -i '6i#include "LHAPDF/LHAPDF.h"' MEIntegratorStandalone/interface/Integrand.h
sed -i '32i /*' MEIntegratorStandalone/interface/Integrand.h
sed -i '44i */' MEIntegratorStandalone/interface/Integrand.h
# install reco likelihood variables
source CommonClassifier/setup/install_recoLikelihood.sh

# install miniaod and boostedtth
cd $CMSSWSRCDIR
git clone -b CMSSW_9_4_5 https://github.com/cms-ttH/MiniAOD.git
git clone -b CMSSW_9_4_3 https://github.com/cms-ttH/BoostedTTH.git

# Download the JER correction files
cd $CMSSWSRCDIR/BoostedTTH/BoostedAnalyzer/data
mkdir jerfiles
cd jerfiles
wget "https://raw.githubusercontent.com/cms-jet/JRDatabase/master/textFiles/Summer16_25nsV1_MC/Summer16_25nsV1_MC_PtResolution_AK4PFchs.txt"
wget "https://raw.githubusercontent.com/cms-jet/JRDatabase/master/textFiles/Summer16_25nsV1_MC/Summer16_25nsV1_MC_SF_AK4PFchs.txt"
wget "https://raw.githubusercontent.com/cms-jet/JRDatabase/master/textFiles/Summer16_25nsV1_MC/Summer16_25nsV1_MC_PtResolution_AK8PFchs.txt"
wget "https://raw.githubusercontent.com/cms-jet/JRDatabase/master/textFiles/Summer16_25nsV1_MC/Summer16_25nsV1_MC_SF_AK8PFchs.txt"
cd $CMSSWSRCDIR

#compile
scram b -j 12

### only for crab use ###
cp /cvmfs/cms.cern.ch/slc6_amd64_gcc630/external/gsl/2.2.1/lib/* $CMSSWSRCDIR/../lib/slc6_amd64_gcc630
scram b -j 12

Overview

BoostedObjects contains the classes needed for subjet-analysis. They associate fat jets with the corresponding filtered objects.

BoostedProduces contains the tools used to run the HEPTopTagger and SubjetFilterJet algorithm on MiniAOD and add the output as the above collections.

BoostedAnalyzer can be used to analyze MiniAOD files. The plugin itself takes care of objectselections and stores the objects in InputCollections. Different event selection can be used in this step, too. The inputcollections can be analyzed with a TreeWriter that can load different Processors. Every processor writes a certain class of output variables in a flat TTree.

About

CMSSW tools for analyzing TTH events with boosted objects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 57.8%
  • Python 38.8%
  • Shell 3.2%
  • Other 0.2%