Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-12 01:51:38

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1DTTrigPhase2Prod")
0004 
0005 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cff")
0006 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0007 process.DTGeometryESModule.applyAlignment = False
0008 
0009 process.load("L1Trigger.DTTriggerPhase2.dtTriggerPhase2PrimitiveDigis_cfi")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0012 process.GlobalTag.globaltag = "106X_upgrade2018_realistic_v4"
0013 #from Configuration.AlCa.GlobalTag import GlobalTag
0014 #process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
0015 
0016 #Calibrate Digis
0017 process.load("L1Trigger.DTTriggerPhase2.CalibratedDigis_cfi")
0018 process.CalibratedDigis.dtDigiTag = "simMuonDTDigis"
0019 process.CalibratedDigis.scenario = 0 # 0 for mc, 1 for data, 2 for slice test
0020 #process.CalibratedDigis.flat_calib = 325 #turn to 0 to use the DB  , 325 for JM and Jorge benchmark
0021 
0022 #DTTriggerPhase2
0023 process.load("L1Trigger.DTTriggerPhase2.dtTriggerPhase2PrimitiveDigis_cfi")
0024 #for the moment the part working in phase2 format is the slice test
0025 #process.dtTriggerPhase2PrimitiveDigis.p2_df = 0 //0 is phase1, 1 is slice test, 2 is phase2(carlo-federica)
0026 #process.dtTriggerPhase2PrimitiveDigis.filter_primos = True
0027 #for debugging
0028 process.dtTriggerPhase2PrimitiveDigis.min_phinhits_match_segment = 4
0029 #process.dtTriggerPhase2PrimitiveDigis.debug = True
0030 
0031 #Produce RPC clusters from RPCDigi
0032 process.load("RecoLocalMuon.RPCRecHit.rpcRecHits_cfi")
0033 process.rpcRecHits.rpcDigiLabel = cms.InputTag('simMuonRPCDigis')
0034 # Use RPC
0035 process.load('Configuration.Geometry.GeometryExtended2023D38Reco_cff')
0036 process.load('Configuration.Geometry.GeometryExtended2023D38_cff')
0037 process.dtTriggerPhase2PrimitiveDigis.useRPC = True
0038 process.dtTriggerPhase2PrimitiveDigis.scenario = 0 # 0 for mc, 1 for data, 2 for slice test
0039 ## Parameters that could be optimized (show here the default values)
0040 #process.dtTriggerPhase2PrimitiveDigis.bx_window = 1 #
0041 #process.dtTriggerPhase2PrimitiveDigis.max_quality_to_overwrite_t0 = 9 # strict inequality
0042 #process.dtTriggerPhase2PrimitiveDigis.phi_window = 50
0043 #process.dtTriggerPhase2PrimitiveDigis.storeAllRPCHits = False
0044 
0045 process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring(
0046         'file:/eos/cms/store/group/dpg_dt/comm_dt/TriggerSimulation/SamplesReco/SingleMu_FlatPt-2to100/Version_10_5_0/SimRECO_1.root'
0047         #'file:/eos/cms/store/group/dpg_rpc/comm_rpc/UpgradePhaseII/RPC_PLUS_DT/SingleMu_FlatPt-2to100_10_5_0_MaryCruz_WithRPCRecHits/SimRECO_1.root'
0048         )
0049                             )
0050 process.maxEvents = cms.untracked.PSet(
0051     input = cms.untracked.int32(100)
0052 )
0053 
0054 process.out = cms.OutputModule("PoolOutputModule",
0055                                outputCommands = cms.untracked.vstring('keep *'),
0056                                fileName = cms.untracked.string('DTTriggerPhase2Primitives100_withRPC.root')
0057 )
0058 
0059 process.p = cms.Path(process.rpcRecHits*process.CalibratedDigis*process.dtTriggerPhase2PrimitiveDigis)
0060 process.this_is_the_end = cms.EndPath(process.out)
0061