Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-05-23 02:04:59

0001 import FWCore.ParameterSet.Config as cms
0002 import argparse
0003 import sys
0004 
0005 parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test Refs after merge.')
0006 
0007 parser.add_argument("--fileName", help="file to read")
0008 parser.add_argument("--promptRead", action="store_true", default=False, help="prompt read the event products")
0009 
0010 args = parser.parse_args()
0011 
0012 process = cms.Process("TEST")
0013 
0014 from IOPool.Input.modules import PoolSource
0015 process.source = PoolSource(fileNames = [f"file:{args.fileName}"], delayReadingEventProducts = not args.promptRead)
0016 
0017 from FWCore.Integration.modules import OtherThingAnalyzer
0018 process.tester = OtherThingAnalyzer(other = ("d","testUserTag"))
0019 
0020 process.e = cms.EndPath(process.tester)
0021