Skip to content

Latest commit

 

History

History
93 lines (65 loc) · 2.31 KB

README.md

File metadata and controls

93 lines (65 loc) · 2.31 KB

BLT

BLT is a framework for analyzing bacon ntuples originally developed by @jiafulow.

Setup

The has been tested to run with CMSSW_8_0_20 with ROOT6. This will work cmslpc using scientific linux 6.

Build and source environment

source /cvmfs/cms.cern.ch/cmsset_default.sh
export SCRAM_ARCH=slc6_amd64_gcc530
cmsrel CMSSW_8_0_20
cd CMSSW_8_0_20/src
cmsenv

Checkout dependencies

These forks are sync'ed to Kevin's repositories on 2015/11/17

git clone git@github.com:NWUHEP/BaconProd.git # this is not needed for running BLT
git clone git@github.com:NWUHEP/BaconAna.git

If you plan on producing ntuples using the bacon framework, you will need to checkout some additional CMSSW dependencies,

source BaconProd/scripts/setup_prod.sh
# If copying via AFS is too slow, use scp instead:
#   scp -r -C <USERNAME>@lxplus.cern.ch:/afs/cern.ch/work/k/ksung/public/Development/Run2Packages/* ./

Checkout and compile BLT code

git clone git@github.com:NWUHEP/BLT.git
scram b -j 12

Make Bacon ntuples

cd BLT/BLTAnalysis/test
cmsRun makingBacon_MC_25ns_MINIAOD.py 

(Optional) Sync forked repositories

cd BaconProd && git checkout master && git fetch upstream && git merge upstream/master && git push origin master && cd -
cd BaconAna && git checkout master && git fetch upstream && git merge upstream/master && git push origin master && cd -

Running the demo analyzer

There are two example analyzers included in the BLT repository. These produce a set of skimmed ntuples...

7 input arguments are mandatory: [input file] [no of events] [dataset] [datasetgroup] [selection] [period] [jobid]

cd BLT/BLTAnalysis/test
DemoAnalyzer Output.root 1000 DYJetsToLL_M-50 DYJetsToLL mumu 2015 0

or alternatively you can provide a text file with a list of input files,

DemoAnalyzer input.txt 1000 DYJetsToLL_M-50 DYJetsToLL mumu 2015 0

Running a BLT analyzer with condor

These instructions are intended for running on the Northwestern tier 3, but can be easily modified to run on any batch system that uses condor as a scheduler (e.g., cmslpc).

cd BLT/BLTAnalysis/test/condor

Edit jobify.py L49 from 'MACHINE':'cmslpc' to 'MACHINE' : 'ttgrid',

./run_all_20151119.sh

When the condor jobs are done, run the following,

python retrieve.py