Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14264 from mmusich/DropboxMetadata2016_80X
DropBox metadata - 2016 (81X)
- Loading branch information
Showing
13 changed files
with
197 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcon_prod/CMS_COND_42X_RUN_INFO", | ||
"destinationTags": { | ||
"DropBoxMetadata_v1_express": { | ||
"dependencies": {}, | ||
"synchronizeTo": "express" | ||
} | ||
}, | ||
"inputTag": "DropBoxMetadata", | ||
"since": 1, | ||
"userText": "Update drop-box metadata for PCL" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiPixelAli_PCL_v0_prompt": {}, | ||
"SiPixelAli_PCL_v0_hlt": {} | ||
}, | ||
"inputTag": "SiPixelAli_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiPixel Ali. (prep)" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiPixelAli_PCL_v0_prompt": {}, | ||
"SiPixelAli_PCL_v0_hlt": {} | ||
}, | ||
"inputTag": "SiPixelAli_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiPixel Ali. (prep)" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiStripApvGain_PCL_v0_prompt": {}, | ||
"SiStripApvGain_PCL_v0_hlt": {} | ||
}, | ||
"inputTag": "SiStripApvGain_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiStrip Gains calib. (prod)" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiStripApvGain_PCL_v0_prompt": {}, | ||
"SiStripApvGain_PCL_v0_hlt": {} | ||
}, | ||
"inputTag": "SiStripApvGain_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiStrip Gains calib. (prod)" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_COND_STRIP", | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiStripBadChannel_PCL_v1_offline": { | ||
"dependencies": { | ||
"SiStripBadChannel_PCL_v1_hlt": "hlt", | ||
"SiStripBadChannel_PCL_v1_prompt": "prompt" | ||
}, | ||
"synchronizeTo": "offline" | ||
} | ||
"SiStripBadChannel_PCL_v1_prompt": {}, | ||
"SiStripBadChannel_PCL_v1_hlt": {} | ||
}, | ||
"inputTag": "SiStripBadStrip_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiStrip bad-channles" | ||
"userText": "T0 PCL Upload for SiStrip bad-channels" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
{ | ||
"destinationDatabase": "oracle://cms_orcoff_prep/CMS_COND_STRIP", | ||
"destinationDatabase": "oracle://cms_orcon_prod/CMS_CONDITIONS", | ||
"destinationTags": { | ||
"SiStripBadChannel_PCL_v1_offline": { | ||
"dependencies": { | ||
"SiStripBadChannel_PCL_v1_hlt": "hlt", | ||
"SiStripBadChannel_PCL_v1_prompt": "prompt" | ||
}, | ||
"synchronizeTo": "offline" | ||
} | ||
}, | ||
"inputTag": "SiStripBadStrip_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiStrip bad-channles" | ||
"SiStripBadChannel_FromOfflineCalibration_GR10_v1_prompt": {} | ||
}, | ||
"inputTag": "SiStripBadStrip_pcl", | ||
"since": null, | ||
"userText": "T0 PCL Upload for SiStrip bad-channels" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import json | ||
|
||
|
||
if __name__ == "__main__": | ||
filename = "out_sqlite_v2.txt" | ||
dirname = 'out_sqlite_v3' | ||
|
||
filehandler = open(filename, 'r') | ||
lines = filehandler.readlines() | ||
|
||
|
||
|
||
try: | ||
os.stat(dirname) | ||
except: | ||
os.mkdir(dirname) | ||
|
||
recordname = None | ||
|
||
|
||
for line in lines: | ||
|
||
|
||
if '--- record' in line: | ||
recordname = line.split()[2] | ||
print '-----------------------------------------------------------------' | ||
print 'record: ',recordname | ||
|
||
if 'prepMetaData' in line: | ||
dict_text = line.split('value: ')[1] | ||
prep_metadata = json.loads(dict_text.replace('"','"')) | ||
prep_metadata_dump = json.dumps(prep_metadata, sort_keys = True, indent = 4) | ||
print '----- prepMetaData:' | ||
print prep_metadata_dump | ||
outFilePrep = open('%s/%s_prep.json'%(dirname,recordname), 'w') | ||
outFilePrep.write(prep_metadata_dump+'\n') | ||
outFilePrep.close() | ||
|
||
if 'prodMetaData' in line: | ||
dict_text = line.split('value: ')[1] | ||
prod_metadata = json.loads(dict_text.replace('"','"')) | ||
prod_metadata_dump = json.dumps(prod_metadata, sort_keys = True, indent = 4) | ||
print '----- prodMetaData:' | ||
print prod_metadata_dump | ||
outFileProd = open('%s/%s_prod.json'%(dirname,recordname), 'w') | ||
outFileProd.write(prod_metadata_dump+'\n') | ||
outFileProd.close() | ||
|
||
|
||
filehandler.close() | ||
#print line | ||
|
||
|