Bugfixes in build_dataset.py
Created by: mmarchegiani
Two bugfixes in the dataset handling are implemented:
- Additional optional parameter
dbs_instance
that can be specified in the metadata for datasets with DBS instance different fromprod/global
- Bug that was saving a fictious sample dictionary with key
metadata
Example of datasets_definition.json
file:
{
"DATA_BTagMu":{
"sample": "DATA",
"json_output" : "datasets/DATA_BTagMu.json",
"storage_prefix" : "/pnfs/psi.ch/cms/trivcat/store/user/mmarcheg/BTVNanoCommissioning",
"files":[
{ "das_names": ["/BTagMu/mmarcheg-Run2018A-UL2018_MiniAODv2-v1_PFNanoAOD-690f1d1c4f2456484a2616002f2d2b6d/USER"],
"dbs_instance" : "prod/phys03",
"metadata": {
"year":"2018",
"isMC": false,
"primaryDataset": "BTagMu",
"era": "A" }},
}
}