Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-06-03 00:12:26

0001 # ----------------------------------------------------------------------------------
0002 # define basic process
0003 # ----------------------------------------------------------------------------------
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 import FWCore.Utilities.FileUtils as FileUtils
0007 process = cms.Process("L1HybridTrack")
0008 
0009 # ----------------------------------------------------------------------------------
0010 # import standard configurations
0011 # ----------------------------------------------------------------------------------
0012 
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 process.load('FWCore.MessageService.MessageLogger_cfi')
0015 process.load('Configuration.EventContent.EventContent_cff')
0016 process.load('Configuration.StandardSequences.MagneticField_cff')
0017 
0018 process.load( 'Configuration.Geometry.GeometryExtendedRun4D110Reco_cff' ) 
0019 process.load( 'Configuration.Geometry.GeometryExtendedRun4D110_cff' )
0020 
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 
0024 from Configuration.AlCa.GlobalTag import GlobalTag
0025 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0026 
0027 process.load('L1Trigger.TrackTrigger.TrackTrigger_cff')
0028 
0029 # ----------------------------------------------------------------------------------
0030 # input
0031 # ----------------------------------------------------------------------------------
0032 
0033 # create options
0034 import FWCore.ParameterSet.VarParsing as VarParsing
0035 options = VarParsing.VarParsing( 'analysis' )
0036 options.register( 'Events',100,VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.int, "Number of Events to analyze" )
0037 options.parseArguments()
0038 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.Events) )
0039 inputMC = [""]
0040 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(*inputMC), skipEvents = cms.untracked.uint32( 17 ))
0041 
0042 # ----------------------------------------------------------------------------------
0043 # DTC emulation
0044 # ----------------------------------------------------------------------------------
0045 
0046 process.load( 'L1Trigger.TrackerDTC.DTC_cff' )
0047 process.dtc = cms.Path( process.ProducerDTC )
0048 
0049 # ----------------------------------------------------------------------------------
0050 # L1 tracking
0051 # ----------------------------------------------------------------------------------
0052 
0053 process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
0054 
0055 # prompt tracking only
0056 process.TTTracksEmulation = cms.Path(process.L1THybridTracks)
0057 process.TTTracksEmulationWithTruth = cms.Path(process.L1THybridTracksWithAssociators)
0058 
0059 # extended tracking only
0060 #process.TTTracksEmulation = cms.Path(process.L1TExtendedHybridTracks)
0061 #process.TTTracksEmulationWithTruth = cms.Path(process.L1TExtendedHybridTracksWithAssociators)
0062 
0063 # both prompt+extended hybrid tracking
0064 #process.TTTracksEmulation = cms.Path(process.L1TPromptExtendedHybridTracks)
0065 #process.TTTracksEmulationWithTruth = cms.Path(process.L1TPromptExtendedHybridTracksWithAssociators)
0066 
0067 process.MessageLogger.L1track = dict(limit = -1)
0068 
0069 # ----------------------------------------------------------------------------------
0070 # output module
0071 # ----------------------------------------------------------------------------------
0072 
0073 process.out = cms.OutputModule( "PoolOutputModule",
0074                                 fileName = cms.untracked.string("L1Tracks.root"),
0075                                 fastCloning = cms.untracked.bool( False ),
0076                                 outputCommands = cms.untracked.vstring('drop *',
0077                                                                        'keep *_TTTrack*_Level1TTTracks_*', 
0078 )
0079 )
0080 process.FEVToutput_step = cms.EndPath(process.out)
0081 
0082 # ----------------------------------------------------------------------------------
0083 # schedule
0084 # ----------------------------------------------------------------------------------
0085 
0086 process.schedule = cms.Schedule(process.dtc,process.TTTracksEmulationWithTruth,process.FEVToutput_step)