Skip to content
Snippets Groups Projects
Commit bea24374 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'rate-metadata' into 'master'

RatesAnalysis: update metadata file

See merge request atlas/athena!41467
parents 521cbe3a b7bc8d40
No related branches found
No related tags found
No related merge requests found
......@@ -64,11 +64,18 @@ def toJson(fileName, metadata, L1Triggers, HLTTriggers):
with open(fileName, 'w') as outFile:
json.dump(obj=jsonDict, fp=outFile, indent=2, sort_keys=True)
metajsonData = [
{'PredictionLumi' : metadata['targetLumi']},
{'TargetMu' : metadata['targetMu']},
{'RunNumber' : metadata['runNumber']},
{'NEvents' : metadata['n_evts']},
{'Details' : metadata['details']}
]
metajsonDict = {}
metajsonDict['PredictionLumi'] = metadata['targetLumi']
metajsonDict['TargetMu'] = metadata['targetMu']
metajsonDict['RunNumber'] = metadata['runNumber']
metajsonDict['NEvents'] = metadata['n_evts']
metajsonDict['text'] = 'metadata'
metajsonDict['children'] = metajsonData
with open('metadata.json', 'w') as outMetaFile:
json.dump(obj=metajsonDict, fp=outMetaFile, indent=2, sort_keys=True)
......
......@@ -41,6 +41,7 @@ def main():
metadata['normalisation'] = normHist.GetBinContent(1)
metadata['n_evts'] = normHist.GetBinContent(2)
metadata['details'] = args.userDetails
HLTGlobalGroup = getGlobalGroup(inputFile, 'Main')
L1GlobalGroup = getGlobalGroup(inputFile, 'L1')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment