Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:50:05

0001 #!/usr/bin/env python3
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 import Validation.RecoTau.DBSApi_cff as mydbs
0005 
0006 dummy = cms.Source ("PoolSource",fileNames = cms.untracked.vstring())
0007 dataDict = {}
0008 for key in mydbs.datasetDict.keys():
0009     mydbs.FillSource(key,dummy)
0010     dataDict[key]= [{'file':fname} for fname in dummy.fileNames]
0011     dummy.fileNames = cms.untracked.vstring()
0012     
0013 
0014 toxml = {'dataFiles' : dataDict}
0015 
0016 outFile = open('SourcesDatabase.xml','w')
0017 outFile.write(mydbs.DictToXML(toxml))