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.
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 
58 # Stage1Layer2 emulator
60 simRctUpgradeFormatDigis.regionTag = cms.InputTag("gctDigis")
61 simRctUpgradeFormatDigis.emTag = cms.InputTag("gctDigis")
64 valCaloStage1LegacyFormatDigis = L1Trigger.L1TCalorimeter.simCaloStage1LegacyFormatDigis_cfi.simCaloStage1LegacyFormatDigis.clone()
65 valCaloStage1LegacyFormatDigis.InputCollection = cms.InputTag("simCaloStage1Digis")
66 valCaloStage1LegacyFormatDigis.InputRlxTauCollection = cms.InputTag("simCaloStage1Digis:rlxTaus")
67 valCaloStage1LegacyFormatDigis.InputIsoTauCollection = cms.InputTag("simCaloStage1Digis:isoTaus")
68 valCaloStage1LegacyFormatDigis.InputHFSumsCollection = cms.InputTag("simCaloStage1Digis:HFRingSums")
69 valCaloStage1LegacyFormatDigis.InputHFCountsCollection = cms.InputTag("simCaloStage1Digis:HFBitCounts")
70 valCaloStage1LegacyFormatDigis.bxMin = cms.int32(0)
71 valCaloStage1LegacyFormatDigis.bxMax = cms.int32(0)
72 
73 
74 # DT TP emulator
76 valDtTriggerPrimitiveDigis = L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi.dtTriggerPrimitiveDigis.clone()
77 
78 
79 # CSC TP emulator
81 valCscTriggerPrimitiveDigis = L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi.cscTriggerPrimitiveDigis.clone()
82 #
83 valCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag('muonCSCDigis',
84  'MuonCSCComparatorDigi')
85 valCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag('muonCSCDigis',
86  'MuonCSCWireDigi')
87 valCscTriggerPrimitiveDigis.gangedME1a = cms.untracked.bool(False)
88 
89 # CSC Track Finder - digi track generation
90 # currently used also by DT TF to generate CSCTF stubs
92 valCsctfTrackDigis = L1Trigger.CSCTrackFinder.csctfTrackDigis_cfi.csctfTrackDigis.clone()
93 #
94 valCsctfTrackDigis.SectorReceiverInput = 'csctfDigis'
95 valCsctfTrackDigis.DTproducer = 'dttfDigis'
96 valCsctfTrackDigis.SectorProcessor.gangedME1a = cms.untracked.bool(False)
97 
98 # DT Track Finder emulator
99 # currently generates CSCTF stubs by running CSCTF emulator
101 valDttfDigis = L1Trigger.DTTrackFinder.dttfDigis_cfi.dttfDigis.clone()
102 #
103 valDttfDigis.DTDigi_Source = 'dttfDigis'
104 valDttfDigis.CSCStub_Source = 'valCsctfTrackDigis'
105 
106 
107 # CSC Track Finder emulator
109 valCsctfDigis = L1Trigger.CSCTrackFinder.csctfDigis_cfi.csctfDigis.clone()
110 #
111 valCsctfDigis.CSCTrackProducer = 'valCsctfTrackDigis'
112 
113 
114 
115 # RPC PAC Trigger emulator
117 valRpcTriggerDigis = L1Trigger.RPCTrigger.rpcTriggerDigis_cff.rpcTriggerDigis.clone()
118 #
119 valRpcTriggerDigis.label = 'muonRPCDigis'
120 
121 
122 # Global Muon Trigger emulator - input from common GMT/GT unpacker (gtDigis)
124 valGmtDigis = L1Trigger.GlobalMuonTrigger.gmtDigis_cfi.gmtDigis.clone()
125 #
126 valGmtDigis.DTCandidates = cms.InputTag('l1GtUnpack','DT')
127 valGmtDigis.CSCCandidates = cms.InputTag('l1GtUnpack','CSC')
128 valGmtDigis.RPCbCandidates = cms.InputTag('l1GtUnpack','RPCb')
129 valGmtDigis.RPCfCandidates = cms.InputTag('l1GtUnpack','RPCf')
130 valGmtDigis.MipIsoData = 'gctDigis'
131 
132 # producers for technical triggers
133 #
134 
135 
136 # BSC Technical Trigger - no data to run on
137 
138 
139 # RPC Technical Trigger
140 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
141 valRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
142 
143 # HCAL Technical Trigger
145 valHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
146 
147 
148 
149 # Global Trigger emulator
151 valGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
152 valGtDigis.GmtInputTag = 'l1GtUnpack'
153 valGtDigis.GctInputTag = 'gctDigis'
154 valGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
155  cms.InputTag('valRpcTechTrigDigis'),
156  cms.InputTag('valHcalTechTrigDigis') )
157 
158 # Global Trigger emulator for Stage1
160 valStage1GtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
161 valStage1GtDigis.GmtInputTag = 'l1GtUnpack'
162 valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
163 valStage1GtDigis.TechnicalTriggersInputTags = cms.VInputTag(
164  cms.InputTag('valRpcTechTrigDigis'),
165  cms.InputTag('valHcalTechTrigDigis') )
166 
167 # L1 Trigger sequences
168 ValL1MuTriggerPrimitives = cms.Sequence(valCscTriggerPrimitiveDigis+valDtTriggerPrimitiveDigis)
169 ValL1MuTrackFinders = cms.Sequence(valCsctfTrackDigis*valCsctfDigis*valDttfDigis)
170 
171 ValL1TechnicalTriggers = cms.Sequence(valRpcTechTrigDigis+valHcalTechTrigDigis)
172 
173 ValL1Emulator = cms.Sequence(
174  valEcalTriggerPrimitiveDigis
175  *valHcalTriggerPrimitiveDigis
176  *valHcalTTPDigis
177  *valRctDigis
178  *valGctDigis
179  *ValL1MuTriggerPrimitives*ValL1MuTrackFinders*valRpcTriggerDigis*valGmtDigis
180  *ValL1TechnicalTriggers
181  *valGtDigis)
182 
183 
184 
185 
186