CMS 3D CMS Logo

merge.py
Go to the documentation of this file.
1 from __future__ import print_function
2 #! /usr/bin/env cmsRun
3 import glob
4 import FWCore.ParameterSet.Config as cms
5 
6 inputFiles = cms.untracked.vstring()
7 inputFiles.extend( [('file:%s ' % name) for name in glob.glob('files/*.root')] )
8 inputFiles.sort()
9 print(inputFiles)
10 
11 process = cms.Process("merge")
12 process.source = cms.Source("PoolSource",
13  fileNames = inputFiles
14 )
15 
16 process.out = cms.OutputModule("PoolOutputModule",
17  fileName = cms.untracked.string('file:material.root')
18 )
19 
20 process.end = cms.EndPath(process.out)
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66