CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ValL1Emulator_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # L1 Emulator sequence running on unpacked data
4 # each emulator run on the unpacked data of the previous (in the hardware chain) subsystem
5 #
6 # Order if using the standard sequence
7 # RawToDigi,ValL1Emulator
8 #
9 # V.M. Ghete 2009-11-15
10 
11 
12 # ECAL TPG sequence
14 valEcalTriggerPrimitiveDigis = SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cfi.simEcalTriggerPrimitiveDigis.clone()
15 #
16 valEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
17 valEcalTriggerPrimitiveDigis.InstanceEB = 'ebDigis'
18 valEcalTriggerPrimitiveDigis.InstanceEE = 'eeDigis'
19 
20 
21 # HCAL TPG sequence
23 valHcalTriggerPrimitiveDigis = SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi.simHcalTriggerPrimitiveDigis.clone()
24 #
25 valHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('hcalDigis'),cms.InputTag('hcalDigis'))
26 #
27 # do not generate new LUTs when running on data, read them from DB
28 HcalTPGCoderULUT.LUTGenerationMode = cms.bool(False)
29 #
30 #
31 valHcalTriggerPrimitiveDigis.FrontEndFormatError = cms.bool(True)
32 
33 
34 # HCAL Tech Trig sequence
36 valHcalTTPDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPDigis_cfi.simHcalTTPDigis.clone()
37 #
38 valHcalTTPDigis.HFDigiCollection = cms.InputTag('hcalDigis')
39 
40 
41 # RCT emulator
43 valRctDigis = L1Trigger.RegionalCaloTrigger.rctDigis_cfi.rctDigis.clone()
44 #
45 valRctDigis.ecalDigis = cms.VInputTag(cms.InputTag('ecalDigis:EcalTriggerPrimitives'))
46 valRctDigis.hcalDigis = cms.VInputTag(cms.InputTag('hcalDigis'))
47 
48 
49 # GCT emulator
50 # RCT data used as input for GCT emulator are part of the GCT FED
52 valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
53 #
54 valGctDigis.inputLabel = 'gctDigis'
55 valGctDigis.preSamples = cms.uint32(0)
56 valGctDigis.postSamples = cms.uint32(0)
57 
59 # Stage1Layer2 emulator
61 valRctUpgradeFormatDigis = L1Trigger.L1TCalorimeter.simRctUpgradeFormatDigis_cfi.simRctUpgradeFormatDigis.clone(
62  regionTag = cms.InputTag("gctDigis"),
63  emTag = cms.InputTag("gctDigis")
64  )
66 valCaloStage1Digis = L1Trigger.L1TCalorimeter.simCaloStage1Digis_cfi.simCaloStage1Digis.clone(
67  CaloRegions = "valRctUpgradeFormatDigis",
68  CaloEmCands = "valRctUpgradeFormatDigis"
69 )
71 valCaloStage1LegacyFormatDigis = L1Trigger.L1TCalorimeter.simCaloStage1LegacyFormatDigis_cfi.simCaloStage1LegacyFormatDigis.clone()
72 valCaloStage1LegacyFormatDigis.InputCollection = cms.InputTag("valCaloStage1Digis")
73 valCaloStage1LegacyFormatDigis.InputRlxTauCollection = cms.InputTag("valCaloStage1Digis:rlxTaus")
74 valCaloStage1LegacyFormatDigis.InputIsoTauCollection = cms.InputTag("valCaloStage1Digis:isoTaus")
75 valCaloStage1LegacyFormatDigis.InputHFSumsCollection = cms.InputTag("valCaloStage1Digis:HFRingSums")
76 valCaloStage1LegacyFormatDigis.InputHFCountsCollection = cms.InputTag("valCaloStage1Digis:HFBitCounts")
77 valCaloStage1LegacyFormatDigis.bxMin = cms.int32(0)
78 valCaloStage1LegacyFormatDigis.bxMax = cms.int32(0)
79 
80 #from L1Trigger.L1TCalorimeter.caloStage1Params_cfi import *
81 
82 # DT TP emulator
84 valDtTriggerPrimitiveDigis = L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi.dtTriggerPrimitiveDigis.clone()
85 
86 
87 # CSC TP emulator
89 valCscTriggerPrimitiveDigis = L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi.cscTriggerPrimitiveDigis.clone()
90 #
91 valCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag('muonCSCDigis',
92  'MuonCSCComparatorDigi')
93 valCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag('muonCSCDigis',
94  'MuonCSCWireDigi')
95 valCscTriggerPrimitiveDigis.gangedME1a = cms.untracked.bool(False)
96 
97 # CSC Track Finder - digi track generation
98 # currently used also by DT TF to generate CSCTF stubs
100 valCsctfTrackDigis = L1Trigger.CSCTrackFinder.csctfTrackDigis_cfi.csctfTrackDigis.clone()
101 #
102 valCsctfTrackDigis.SectorReceiverInput = 'csctfDigis'
103 valCsctfTrackDigis.DTproducer = 'dttfDigis'
104 valCsctfTrackDigis.SectorProcessor.gangedME1a = cms.untracked.bool(False)
105 
106 # DT Track Finder emulator
107 # currently generates CSCTF stubs by running CSCTF emulator
109 valDttfDigis = L1Trigger.DTTrackFinder.dttfDigis_cfi.dttfDigis.clone()
110 #
111 valDttfDigis.DTDigi_Source = 'dttfDigis'
112 valDttfDigis.CSCStub_Source = 'valCsctfTrackDigis'
113 
114 
115 # CSC Track Finder emulator
117 valCsctfDigis = L1Trigger.CSCTrackFinder.csctfDigis_cfi.csctfDigis.clone()
118 #
119 valCsctfDigis.CSCTrackProducer = 'valCsctfTrackDigis'
120 
121 
122 
123 # RPC PAC Trigger emulator
125 valRpcTriggerDigis = L1Trigger.RPCTrigger.rpcTriggerDigis_cff.rpcTriggerDigis.clone()
126 #
127 valRpcTriggerDigis.label = 'muonRPCDigis'
128 
129 
130 # Global Muon Trigger emulator - input from common GMT/GT unpacker (gtDigis)
132 valGmtDigis = L1Trigger.GlobalMuonTrigger.gmtDigis_cfi.gmtDigis.clone()
133 #
134 valGmtDigis.DTCandidates = cms.InputTag('l1GtUnpack','DT')
135 valGmtDigis.CSCCandidates = cms.InputTag('l1GtUnpack','CSC')
136 valGmtDigis.RPCbCandidates = cms.InputTag('l1GtUnpack','RPCb')
137 valGmtDigis.RPCfCandidates = cms.InputTag('l1GtUnpack','RPCf')
138 valGmtDigis.MipIsoData = 'caloStage1Digis'
139 
140 # producers for technical triggers
141 #
142 
143 
144 # BSC Technical Trigger - no data to run on
145 
146 
147 # RPC Technical Trigger
148 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
149 valRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
150 
151 # HCAL Technical Trigger
153 valHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
154 
155 
156 
157 # Global Trigger emulator
159 valGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
160 valGtDigis.GmtInputTag = 'l1GtUnpack'
161 valGtDigis.GctInputTag = 'gctDigis'
162 valGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
163  cms.InputTag('valRpcTechTrigDigis'),
164  cms.InputTag('valHcalTechTrigDigis') )
165 
166 # Global Trigger emulator for Stage1
168 valStage1GtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
169 valStage1GtDigis.GmtInputTag = 'l1GtUnpack'
170 valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
171 valStage1GtDigis.TechnicalTriggersInputTags = cms.VInputTag(
172  cms.InputTag('valRpcTechTrigDigis'),
173  cms.InputTag('valHcalTechTrigDigis') )
174 
175 # L1 Trigger sequences
176 ValL1MuTriggerPrimitives = cms.Sequence(valCscTriggerPrimitiveDigis+valDtTriggerPrimitiveDigis)
177 ValL1MuTrackFinders = cms.Sequence(valCsctfTrackDigis*valCsctfDigis*valDttfDigis)
178 
179 ValL1TechnicalTriggers = cms.Sequence(valRpcTechTrigDigis+valHcalTechTrigDigis)
180 
181 ValL1Emulator = cms.Sequence(
182  valEcalTriggerPrimitiveDigis
183  *valHcalTriggerPrimitiveDigis
184  *valHcalTTPDigis
185  *valRctDigis
186  *valGctDigis
187  *ValL1MuTriggerPrimitives*ValL1MuTrackFinders*valRpcTriggerDigis*valGmtDigis
188  *ValL1TechnicalTriggers
189  *valGtDigis)
190 
191 
192 
193 
194