This directory contains helper scripts used to prepare CMS 2015 open data release regarding MC simulated datasets.
code/
folder contains the python code.inputs/
folder contains input text files with the list of datasets for each year and input files.
Every step necessary to produce the final *.json
files is handled by the
cmc-mc/interface.py
script. Details about it can be queried with the command:
python code/interface.py --help
Make sure to start voms-proxy before creating cache
voms-proxy-init --voms cms --rfc --valid 190:00
Warning: creating a local cache might take a long time!
Here is how to run the record creation.
First, create EOS file index cache:
$ python3 ./code/interface.py --create-eos-indexes ../cms-YYYY-simulated-datasets/inputs/CMS-2015-mc-datasets.txt
python3 code/lhe_generators.py 2> errors > output &
- This will get lhe generator parameters for datasets listed in
./inputs/CMS-2015-mc-datasets.txt
- This script must run this in lxplus or with mounted EOS
- number of threads is set to 20 which is ideal for lxplus
⚠️ There are many cases with various steps to get generator parameters for LHE -see #97-. Thus, in some few cases, the script MIGHT not work as expected so make sure to read it, check errors, and make any necessary tweaks