WRanalysis
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Instructions
Prerequisites for using GIT with github
Please make sure you have your github account, you have properly added your private key such that you are able to use the SSH protocol

Download the code:

scram project CMSSW_7_4_15_patch1
cd CMSSW_7_4_15_patch1/src/
cmsenv 
git cms-init
git cms-merge-topic shervin86:WR7415patch1
git cms-addpkg FWCore/ParameterSet
mkdir ExoAnalysis/
cd ExoAnalysis/
git clone git@github.com:UMN-CMS/cms-WR.git cmsWR
git clone https://github.com/ECALELFS/Utilities.git Utilities/scripts/
cd ../
git clone -b WR7415patch1 https://github.com/ECALELFS/ECALELF.git Calibration

#git cms-addpkg RecoEgamma/ElectronIdentification
#git apply ExoAnalysis/cmsWR/test/HEEP_Et.patch
scram b -j16
cd ExoAnalysis/cmsWR/
mkdir data/
cp /afs/cern.ch/user/s/skalafut/public/WR_starting2015/puReweightingFiles/*Pileup.root data/
make

Check if you have astyle command installed:

which astyle

If you don't, please install it from http://sourceforge.net/projects/astyle/ and put it into your $HOME/bin directory

Then add the following pre-commit hook into your GIT_DIR:

if [ -d ".git/hooks" ];then
cat > .git/hooks/pre-commit <<EOF
#!/bin/sh
fileList=\`git diff --cached --name-only\`

command="astyle -A3 -t -p  -n" 
for file in \$fileList
do
    case \$file in
    *.c | *.cc) \$command \$file; git add \$file;;
    *.h | *.hh) \$command \$file; git add \$file;;
    *.cpp)      \$command \$file; git add \$file;;
    esac
done
exit 0
EOF
else 
echo "[ERROR] You are not in the main directory of this repository" >> /dev/stderr
fi

DIGI-RECO from GEN-SIM

# copy file in local to be faster
xrdcp -v root://xrootd.unl.edu//store/mc/RunIIFall14GS/WRToNuEToEEJJ_MW-2600_MNu-1300_TuneCUETP8M1_13TeV-pythia8/GEN-SIM/MCRUN2_71_V1-v1/10000/5E57FB53-7987-E411-8A59-90B11C06E1A0.root myFile.root
cmsDriver.py rec --pileup AVE_40_BX_25ns   --mc --eventcontent AODSIM --datatier GEN-SIM   --beamspot Realistic8TeVCollision --step DIGI,L1,DIGI2RAW,HLT:GRun,RAW2DIGI,L1Reco,RECO  --customise Configuration/DataProcessing/Utils.addMonitoring --filein=file://myFile.root  --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1 --pileup_input "dbs:/MinBias_TuneA2MB_13TeV-pythia8/Fall13-POSTLS162_V1-v1/GEN-SIM" --conditions auto:run2_mc

miniAOD from RECO

cmsDriver.py miniAOD --filein file:rec_DIGI_L1_DIGI2RAW_HLT_RAW2DIGI_L1Reco_RECO_PU.root --fileout file:EXO-Phys14DR-00009.root --mc --eventcontent MINIAODSIM --runUnscheduled --datatier MINIAODSIM --conditions auto:run2_mc --step PA

Testing skims

did Peter Hansen make a script to run a sanity check on the skims?

TTBar to LL cross section

the cross section used to normalize events from the ttbar->dilepton dataset should be 85.67 pb, not 56. 56 pb was calculated using genXsecanalyzer, but 85.67 is based on the PDG branching fraction of ttbar to leptons. See page 3 of this pdf.

http://pdg.arsip.lipi.go.id/2013/reviews/rpp2012-rev-top-quark.pdf

Go back to index