Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:27

0001 #
0002 #  L1TReco:  Defines
0003 #
0004 #     L1Reco = cms.Sequence(...)
0005 #
0006 # which contains all L1 Reco steps needed for the current era.
0007 #
0008 
0009 import FWCore.ParameterSet.Config as cms
0010 
0011 #
0012 # These might be more widely useful...  L1T_customs?
0013 #
0014 
0015 def config_L1ExtraForStage2Sim(coll):
0016     coll.isolatedEmSource      = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
0017     coll.nonIsolatedEmSource   = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")    
0018     coll.forwardJetSource      = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
0019     coll.centralJetSource      = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
0020     coll.tauJetSource          = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
0021     coll.isoTauJetSource       = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
0022     coll.etTotalSource         = cms.InputTag("simCaloStage1LegacyFormatDigis")
0023     coll.etHadSource           = cms.InputTag("simCaloStage1LegacyFormatDigis")
0024     coll.etMissSource          = cms.InputTag("simCaloStage1LegacyFormatDigis")
0025     coll.htMissSource          = cms.InputTag("simCaloStage1LegacyFormatDigis")
0026     coll.hfRingEtSumsSource    = cms.InputTag("simCaloStage1LegacyFormatDigis")
0027     coll.hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
0028     coll.muonSource            = cms.InputTag("simGmtDigis")
0029     
0030 
0031 from L1Trigger.L1ExtraFromDigis.l1extraParticles_cfi import l1extraParticles
0032 
0033 #
0034 # Legacy Trigger:
0035 #
0036 from EventFilter.L1GlobalTriggerRawToDigi.l1GtRecord_cfi import l1GtRecord
0037 from EventFilter.L1GlobalTriggerRawToDigi.l1GtTriggerMenuLite_cfi import l1GtTriggerMenuLite
0038 import EventFilter.L1GlobalTriggerRawToDigi.conditionDumperInEdm_cfi
0039 conditionsInEdm = EventFilter.L1GlobalTriggerRawToDigi.conditionDumperInEdm_cfi.conditionDumperInEdm.clone()
0040 import L1Trigger.GlobalTrigger.convertObjectMapRecord_cfi as _converterModule
0041 l1L1GtObjectMap = _converterModule.convertObjectMapRecord.clone()
0042 L1Reco_L1Extra = cms.Sequence(l1extraParticles)
0043 L1Reco_L1Extra_L1GtRecord = cms.Sequence(l1extraParticles+l1GtRecord)
0044 L1Reco = cms.Sequence(l1extraParticles+l1GtTriggerMenuLite+conditionsInEdm+l1L1GtObjectMap)
0045 
0046 #
0047 # Stage-1 Trigger
0048 #
0049 from Configuration.Eras.Modifier_stage1L1Trigger_cff import stage1L1Trigger
0050 stage1L1Trigger.toReplaceWith(L1Reco_L1Extra,cms.Sequence())
0051 stage1L1Trigger.toReplaceWith(L1Reco_L1Extra_L1GtRecord,cms.Sequence())
0052 stage1L1Trigger.toReplaceWith(L1Reco, cms.Sequence(l1extraParticles))
0053 
0054 #
0055 # Stage-2 Trigger:
0056 #
0057 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0058 stage2L1Trigger.toReplaceWith(L1Reco_L1Extra,cms.Sequence())
0059 stage2L1Trigger.toReplaceWith(L1Reco_L1Extra_L1GtRecord,cms.Sequence())
0060 stage2L1Trigger.toReplaceWith(L1Reco, cms.Sequence())
0061 
0062 #
0063 # l1L1GtObjectMap does not work properly with fastsim
0064 #
0065 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0066 _L1Reco_modified = L1Reco.copyAndExclude([l1L1GtObjectMap])
0067 fastSim.toReplaceWith(L1Reco, _L1Reco_modified)