1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.StandardSequences.Eras
import eras
5 process.load(
"L1Trigger.L1TCalorimeter.caloStage2Params_HWConfig_cfi")
9 from L1Trigger.L1TCaloLayer1.simCaloStage2Layer1Digis_cfi
import simCaloStage2Layer1Digis
as simCaloStage2BitwiseLayer1Digis
10 from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi
import simCaloStage2Digis
as simCaloStage2BitwiseDigis
11 process.simCaloStage2BitwiseLayer1Digis = simCaloStage2BitwiseLayer1Digis.clone()
12 process.simCaloStage2BitwiseLayer1Digis.ecalToken = cms.InputTag(
"ecalDigis:EcalTriggerPrimitives")
13 process.simCaloStage2BitwiseDigis = simCaloStage2BitwiseDigis.clone()
14 process.simCaloStage2BitwiseDigis.towerToken = cms.InputTag(
"simCaloStage2BitwiseLayer1Digis")
15 process.SimL1TCalorimeter = cms.Sequence( process.simCaloStage2Layer1Digis + process.simCaloStage2Digis + process.simCaloStage2BitwiseLayer1Digis + process.simCaloStage2BitwiseDigis)
17 process.l1UpgradeBitwiseTree = l1UpgradeTree.clone()
18 process.l1UpgradeBitwiseTree.egToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
19 process.l1UpgradeBitwiseTree.tauTokens = cms.untracked.VInputTag(
"simCaloStage2BitwiseDigis")
20 process.l1UpgradeBitwiseTree.jetToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
21 process.l1UpgradeBitwiseTree.muonToken = cms.untracked.InputTag(
"simGmtStage2Digis")
22 process.l1UpgradeBitwiseTree.sumToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
23 process.l1ntuplebitwise = cms.Path(
24 process.l1UpgradeBitwiseTree
26 process.schedule.append(process.l1ntuplebitwise)
27 print "modified L1TReEmul: "
28 print process.L1TReEmul
33 process.es_pool_hf1x1 = cms.ESSource(
36 timetype = cms.string(
'runnumber'),
38 cms.PSet(record = cms.string(
"HcalLutMetadataRcd"),
39 tag = cms.string(
"HcalLutMetadata_HFTP_1x1")
41 cms.PSet(record = cms.string(
"HcalElectronicsMapRcd"),
42 tag = cms.string(
"HcalElectronicsMap_HFTP_1x1")
45 connect = cms.string(
'frontier://FrontierProd/CMS_CONDITIONS'),
46 authenticationMethod = cms.untracked.uint32(0)
48 process.es_prefer_es_pool_hf1x1 = cms.ESPrefer(
"PoolDBESSource",
"es_pool_hf1x1")
52 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
53 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
54 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
55 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
56 cms.InputTag(
'hcalDigis'),
57 cms.InputTag(
'hcalDigis')
59 process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
60 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis'
61 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi')
62 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
64 if eras.stage2L1Trigger.isChosen():
65 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
67 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
"dttfDigis")
68 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
"dttfDigis")
69 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
70 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
"simTwinMuxDigis")
71 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
"dttfDigis")
72 process.simEmtfDigis.CSCInput = cms.InputTag(
"csctfDigis")
73 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
74 process.simOmtfDigis.srcCSC = cms.InputTag(
"csctfDigis")
75 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"ecalDigis:EcalTriggerPrimitives")
76 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
77 process.schedule.append(process.L1TReEmulPath)
78 print "L1TReEmul sequence: "
79 print process.L1TReEmul
80 print process.schedule
82 if hasattr(process,
"caloStage2Digis"):
83 process.caloStage2Digis.MinFeds = cms.uint32(0)
84 if hasattr(process,
"gmtStage2Digis"):
85 process.gmtStage2Digis.MinFeds = cms.uint32(0)
86 if hasattr(process,
"gtStage2Digis"):
87 process.gtStage2Digis.MinFeds = cms.uint32(0)
90 process.simRctDigis.ecalDigis = cms.VInputTag(
'simEcalTriggerPrimitiveDigis')
91 process.simRctDigis.hcalDigis = cms.VInputTag(
'simHcalTriggerPrimitiveDigis')
92 process.simRpcTriggerDigis.label =
'muonRPCDigis'
93 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis'
94 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
95 process.schedule.append(process.L1TReEmulPath)
96 print "L1TReEmul sequence: "
97 print process.L1TReEmul
98 print process.schedule
103 if eras.stage2L1Trigger.isChosen():
104 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
105 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
110 if eras.stage2L1Trigger.isChosen():
111 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
115 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
116 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
117 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis'
118 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
119 cms.InputTag(
'hcalDigis'),
120 cms.InputTag(
'hcalDigis')
122 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi')
123 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
124 process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
125 if eras.stage2L1Trigger.isChosen():
130 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
131 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
132 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'bmtfDigis')
134 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
135 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'bmtfDigis')
137 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
138 process.simOmtfDigis.srcCSC = cms.InputTag(
'csctfDigis')
139 process.simOmtfDigis.srcDTPh = cms.InputTag(
'bmtfDigis')
140 process.simOmtfDigis.srcDTTh = cms.InputTag(
'bmtfDigis')
142 process.simEmtfDigis.CSCInput = cms.InputTag(
'csctfDigis')
143 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
145 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
146 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
147 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
148 process.schedule.append(process.L1TReEmulPath)
149 print "L1TReEmulPath sequence: "
150 print process.L1TReEmulPath
151 print process.schedule
154 process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag(
'ecalDigis:EcalTriggerPrimitives' ) )
155 process.simRctDigis.hcalDigis = cms.VInputTag(
'hcalDigis:')
156 process.simRpcTriggerDigis.label =
'muonRPCDigis'
157 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
158 process.schedule.append(process.L1TReEmulPath)
159 print "L1TReEmul sequence: "
160 print process.L1TReEmul
161 print process.schedule
166 if eras.stage2L1Trigger.isChosen():
167 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
168 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
173 if eras.stage2L1Trigger.isChosen():
174 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
179 if eras.stage2L1Trigger.isChosen():
180 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
185 if eras.stage2L1Trigger.isChosen():
187 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
188 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
189 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
191 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'simTwinMuxDigis')
192 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
194 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
195 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis')
196 process.simOmtfDigis.srcDTPh = cms.InputTag(
'simDtTriggerPrimitiveDigis')
197 process.simOmtfDigis.srcDTTh = cms.InputTag(
'simDtTriggerPrimitiveDigis')
199 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis')
200 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
202 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
203 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
def L1TReEmulMCFromRAW2015
def L1TReEmulFromRAWsimHcalTP
def L1TEventSetupForHF1x1TPs
def L1TReEmulFromRAWsimTP
def L1TReEmulFromRAWsimEcalTP
def L1TCaloStage2ParamsForHW
def L1TReEmulFromRAW2015simCaloTP