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