Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.29 KB

File metadata and controls

46 lines (39 loc) · 1.29 KB

MuonAnalysis

Analyzer to produce custom NanoAOD ntuples from MiniAOD or AOD. Below are the instructions to run the analyzer

Setup

cmsrel CMSSW_10_6_29
cd CMSSW_10_6_29/src
cmsenv
git init
git remote add -f origin https://github.com/dbruschi/cmssw.git
git config core.sparseCheckout true
echo "PhysicsTools/PatAlgos/" >> .git/info/sparse-checkout
git pull origin CMSSW_10_6_X
scram b
mkdir MuonAnalysis
cd MuonAnalysis
git clone https://github.com/dbruschi/MuonAnalysis.git
cd MuonAnalysis
scram b

Run on MiniAOD

CmsRun config files are available in the python/ directory. Select according to desired era

voms-proxy-init -voms cms #to run on files available remotely
cmsRun python/ConfFile_cfg_2016postVFP.py

Run on AOD

CmsRun config files are available in the python/ directory. Select according to desired era

voms-proxy-init -voms cms #to run on files available remotely
cmsRun python/ConfFile_cfg_AOD_2016postVFP.py

CRAB submission

voms-proxy-init -voms cms
export X509_USER_PROXY = {name of the proxy file}
crab submit -c crab_config.py #to be modified to be run on MiniAOD or AOD.
#In particular "config.JobType.psetName = python/ConfFile_cfg_{era}.py" or "config.JobType.psetName = python/ConfFile_cfg_AOD_{era}.py"
#and config.Data.inputDataset need to be modified