Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1TMuonEndCap")
0004 runOnMC = False
0005 
0006 from FWCore.ParameterSet.VarParsing import VarParsing
0007 options = VarParsing('analysis')
0008 options.register('verbosity', 1, VarParsing.multiplicity.singleton, VarParsing.varType.int, 'Verbosity')
0009 options.parseArguments()
0010 
0011 # Modify default arguments
0012 if not options.inputFiles:
0013     options.inputFiles = ['file:pippo.root']
0014 if options.outputFile == "output.root":
0015     options.outputFile = "output.root"
0016 
0017 # Message logger
0018 process.load("FWCore.MessageService.MessageLogger_cfi")
0019 process.MessageLogger.cerr.FwkReport.reportEvery = 1
0020 
0021 # Number of events
0022 process.maxEvents = cms.untracked.PSet(
0023     input = cms.untracked.int32(options.maxEvents)
0024 )
0025 
0026 # Input source
0027 process.source = cms.Source("PoolSource",
0028     fileNames = cms.untracked.vstring(options.inputFiles),
0029 )
0030 
0031 # Output module
0032 process.out = cms.OutputModule("PoolOutputModule",
0033     fileName = cms.untracked.string(options.outputFile),
0034     outputCommands = cms.untracked.vstring(
0035         "drop *",
0036         "keep *_simEmtfDigis_*_*",
0037         "keep *_simEmtfDigisData_*_*",
0038     )
0039 )
0040 
0041 process.options = cms.untracked.PSet()
0042 
0043 # GlobalTag
0044 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0045 process.load('Configuration.StandardSequences.MagneticField_cff')
0046 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0047 from Configuration.AlCa.GlobalTag import GlobalTag
0048 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0049 
0050 # Plugin: simEmtfDigis
0051 process.load("L1Trigger.L1TMuonEndCap.simEmtfDigis_cfi")
0052 process.simEmtfDigisData.verbosity = options.verbosity
0053 
0054 # Paths
0055 process.p = cms.Path(process.simEmtfDigisData)
0056 process.e = cms.EndPath(process.out)
0057 process.schedule = cms.Schedule(process.p, process.e)
0058