test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
merge.py
Go to the documentation of this file.
1 #! /usr/bin/env cmsRun
2 import glob
3 import FWCore.ParameterSet.Config as cms
4 
5 inputFiles = cms.untracked.vstring()
6 inputFiles.extend( [('file:%s ' % name) for name in glob.glob('files/*.root')] )
7 inputFiles.sort()
8 print inputFiles
9 
10 process = cms.Process("merge")
11 process.source = cms.Source("PoolSource",
12  fileNames = inputFiles
13 )
14 
15 process.out = cms.OutputModule("PoolOutputModule",
16  fileName = cms.untracked.string('file:material.root')
17 )
18 
19 process.end = cms.EndPath(process.out)