Skip to content

CMSSNU/MultiUniv

Repository files navigation

SKFlatAnalyzer

Manual

https://jskim.web.cern.ch/jskim/SKFlat/Manual/Manual_SKFlat.pdf

First time setup

cp setup_tmp.sh setup.sh

Edit and Run setup.sh :

export SKFlatLogEmail='' # <- put your email address here
. setup.sh         ## you should do this for every pane of tmux again and again

Making libraries

make clean
make

Initializing

Everytime when using new shell,

source setup.sh
# If in KNU, need proxy
# voms-proxy-init --voms cms -valid 24:00

##############################################################################################################

Test job

SKFlat.py -a ExampleRun -i DYJets -n 50 &

Making a new Ananlyzer

cd script/MakeCycleSkeleton/

Edit MakeCycleSkeleton.py :

cyclename = "" # <- put new Analyzer name

Then, run

python MakeCycleSkeleton.py

It will print below lines :

mv NewAnalyzer.h $SKFlat_WD/Analyzers/include/
mv NewAnalyzer.C $SKFlat_WD/Analyzers/src/

Then, add

#pragma link C++ class NewAnalyzer+;

in Analyzers/include/Analyzers_LinkDef.h

Detailed descriptions

Look Analyzers/src/ExampleRun.C

How To update your forked repo to follow the original repository

To get your forked repo from this one

push "Fork" button on the right-top side of this web page

Go to you forked repo webpage and copy the address of it, then clone

How to update your forked repo to follow the original repository

git remote add upstream https://github.com/CMSSNU/SKFlatAnalyzer
git fetch upstream
git pull upstream master