File indexing completed on 2024-04-06 12:33:19
0001
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))