File indexing completed on 2025-01-12 23:41:56
0001 import FWCore.ParameterSet.Config as cms
0002 import argparse
0003 import sys
0004
0005 parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test ConditionalTasks.')
0006
0007 parser.add_argument("--inFile1", help="first file to read")
0008 parser.add_argument("--inFile2", help="second file to read")
0009 parser.add_argument("--outFile", help="name of output file", default="ref_merge.root")
0010
0011 args = parser.parse_args()
0012
0013 process = cms.Process("MERGE")
0014
0015 from IOPool.Streamer.modules import NewEventStreamFileReader
0016 process.source = NewEventStreamFileReader(fileNames = [f"file:{args.inFile1}",
0017 f"file:{args.inFile2}"]
0018 )
0019
0020 from IOPool.Streamer.modules import EventStreamFileWriter
0021 process.out = EventStreamFileWriter(fileName = args.outFile)
0022
0023 from FWCore.Integration.modules import OtherThingAnalyzer
0024 process.tester = OtherThingAnalyzer(other = ("d","testUserTag"))
0025
0026 process.o = cms.EndPath(process.out+process.tester)