Skip to content

NEUAnalyses/DNNTuplesAK8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNNTuplesAK8

Setup

cmsrel CMSSW_8_0_28
cd CMSSW_8_0_28/src/
cmsenv
git clone https://github.com/hqucms/DNNTuplesAK8 DeepNTuples
scram b -j8

Submit jobs via CRAB

# set up CRAB env; run it after cmsenv
source /cvmfs/cms.cern.ch/crab3/crab.sh
voms-proxy-init -rfc -voms cms --valid 168:00

# create the CRAB config files
cd DeepNTuples/NtupleAK8/run
./makeCrabJobs.py -i [samples/ttbar.conf] -o [/eos/cms/store/user/$USER/DeepNtuples/output_dir] --site [T2_CH_CERN|T3_US_FNALLPC|...]
# submit jobs
./submit_[ttbar].conf

To check all the options of the submission script, run

./makeCrabJobs.py -h

You can set arguments to be passed to the cmsRun job in the beginning of the sample.conf file, e.g., fjKeepFlavors=2,3,4 # only keep fatjets whose labels match to the given number. 0:Light, 1:Top, 2:W, 3:Z, 4:Higgs

Merge outputs (with random mixing of different samples)

  1. First create the file list.

N.B. Files reserved for testing should be placed in a test_sample directory by hand before proceeding!

cd DeepNTuples/NtupleAK8/run
./createFileList.py [/eos/cms/store/user/$USER/DeepNtuples/output_dir/ttbar]

Note that you need to run this for every sample you produced, e.g., ttbar, qcd, etc.

  1. Merge the samples (with random mixing)
mergeSamples.py [events per output file] [output dir] [path to the filelist produced in step 1]

e.g.,

mergeSamples.py 100000 /eos/cms/store/user/$USER/DeepNtuples/output_dir/merged /eos/cms/store/user/$USER/DeepNtuples/output_dir/*/train_val_samples.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 86.4%
  • Python 13.6%