Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /PhysicsTools/BPHNano/production/README.md is written in an unsupported language. File is not indexed.

0001 #Multicrab production code
0002 
0003 Largely inspired by G. Karahtanasis crab submission script
0004 
0005 ```
0006 usage: submit_on_crab.py [-h] [-y YAML] [-c {submit,status}] [-f FILTER] [-w WORKAREA] [-o OUTPUTDIR] [-t TAG] [-p PSETCFG] [-e [EXTRA ...]]
0007 
0008 A multicrab submission script
0009 
0010 optional arguments:
0011   -h, --help            show this help message and exit
0012   -y YAML, --yaml YAML  File with dataset descriptions
0013   -c {submit,status}, --cmd {submit,status}
0014                         Crab command
0015   -f FILTER, --filter FILTER
0016                         filter samples, POSIX regular expressions allowed
0017   -w WORKAREA, --workarea WORKAREA
0018                         Crab working area name
0019   -o OUTPUTDIR, --outputdir OUTPUTDIR
0020                         LFN Output high-level directory: the LFN will be saved in outputdir+workarea
0021   -t TAG, --tag TAG     Production Tag extra
0022   -p PSETCFG, --psetcfg PSETCFG
0023                         Plugin configuration file
0024   -e [EXTRA ...], --extra [EXTRA ...]
0025                         Optional extra input files
0026   -tt, --test           Flag a test job
0027 ```
0028 
0029 ##Format of the yaml file with datasets
0030 
0031 It is checked automatically, so if you see a yaml format error please keep in mind that the following format is used:
0032 
0033 ```
0034 expected_schema = Schema({
0035     "common": {
0036         "data": {
0037             "lumimask": And(str, error="lumimask should be a string"),
0038             "splitting": And(int, error="splitting should be an integer"),
0039             "globaltag": And(str, error="globaltag should be a string"),
0040         },
0041         "mc": {
0042             "splitting": And(int, error="splitting should be an integer"),
0043             "globaltag": And(str, error="globaltag should be a string"),
0044         },
0045     },
0046     "samples": And(dict, error="samples should be a dict with keys dataset (str), isMC (bool). Optional keys: globaltag (str), parts (list(int))")
0047     }
0048     )
0049 
0050 samples_schema = Schema({
0051     "dataset": And(str, error="dataset should be a string"),
0052     "isMC": And(bool, error="isMC should be a boolean"),
0053     Optional("decay") : And(str, error="decay to reconstruct"),
0054     Optional("goldenjson") : And(str, error="golden json file path should be a string"),
0055     Optional("globaltag") : And(str, error="globaltag should be a string"),
0056     Optional("parts"): [And(int, error="parts should be a list of integers")]
0057 })
0058 ```
0059 
0060 
0061