Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:42

0001 from __future__ import print_function
0002 #! /usr/bin/env cmsRun
0003 import glob
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 inputFiles = cms.untracked.vstring()
0007 inputFiles.extend( [('file:%s ' % name) for name in glob.glob('files/*.root')] )
0008 inputFiles.sort()
0009 print(inputFiles)
0010 
0011 process = cms.Process("merge")
0012 process.source = cms.Source("PoolSource",
0013     fileNames = inputFiles
0014 )
0015 
0016 process.out = cms.OutputModule("PoolOutputModule",
0017     fileName = cms.untracked.string('file:material.root')
0018 )
0019 
0020 process.end = cms.EndPath(process.out)