CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/SimTracker/TrackerMaterialAnalysis/crab/merge.py

Go to the documentation of this file.
00001 #! /usr/bin/env cmsRun
00002 import glob
00003 import FWCore.ParameterSet.Config as cms
00004 
00005 inputFiles = cms.untracked.vstring()
00006 inputFiles.extend( [('file:%s ' % name) for name in glob.glob('files/*.root')] )
00007 inputFiles.sort()
00008 print inputFiles
00009 
00010 process = cms.Process("merge")
00011 process.source = cms.Source("PoolSource",
00012     fileNames = inputFiles
00013 )
00014 
00015 process.out = cms.OutputModule("PoolOutputModule",
00016     fileName = cms.untracked.string('file:material.root')
00017 )
00018 
00019 process.end = cms.EndPath(process.out)