Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

231 Commits
 
 
 
 
 
 

Repository files navigation

CATTools

for cms analysis

Test file : catTuple.root can be found in https://www.dropbox.com/s/40tvwebdv6g0x1m/catTuple.root?dl=0

scram p -n cat CMSSW CMSSW_7_2_2_patch1
cd cat/src
cmsenv
git clone git@github.com:vallot/CATTools.git
cd CATTools
git checkout cat72x
cd ..
scram b -j 8

cmsRun $SRT_CMSSW_BASE_SCRAMRTDEL/src/CATTools/CatProducer/prod/runCat.py useMiniAOD=True inputFiles=file:/pnfs/user/jlee/DYJetsToLL_M-50_13TeV-madgraph-pythia8/miniaod.root

or 

cmsRun $SRT_CMSSW_BASE_SCRAMRTDEL/src/CATTools/CatProducer/prod/runCat.py useMiniAOD=False inputFiles=/store/mc/Phys14DR/DYJetsToLL_M-50_13TeV-madgraph-pythia8/AODSIM/PU20bx25_PHYS14_25_V1-v1/00000/00CC714A-F86B-E411-B99A-0025904B5FB8.root

Submit CRAB jobs using CATTools

1. This is based on crab3

  • no need to change configurations since jobs are stored all in remote servers
  • make sure crab3 is setup first
source /cvmfs/cms.cern.ch/crab3/crab.sh

2. Using submitCrab3.py

  • This script can be used to pass CRAB configuration parameters from the command line depending on the Dataset lists are located on MC/ or RD/ directories for data type.

2-1. Usage

./submitCrab3.py [Dataset1.txt] [Dataset2.txt]

2-2. Example

  • If we want to submit cattuple ttbar and diboson datasets.
cd $SRT_CMSSW_BASE_SCRAMRTDEL/src/CATTools/CatProducer/prod/crab
./submitCrab3.py MC/ttbar_dilepton.txt MC/diboson.txt

2-3.Submitting jobs

  • because the jobs only saved in local storage (where the job was done) we need to get the output manually.
  • this has the benefit of crab jobs not failing due to transfer errors
  • to get the output use "crab out -t " or the script below
python getcrabOut.py

About

for cms analysis

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages