CMS 3D CMS Logo

Functions
customiseReEmul Namespace Reference

Functions

def L1TAddBitwiseLayer1 (process)
 
def L1TCaloStage2ParamsForHW (process)
 
def L1TEventSetupForHF1x1TPs (process)
 
def L1TReEmulFromNANO (process)
 
def L1TReEmulFromRAW (process)
 
def L1TReEmulFromRAW2015 (process)
 
def L1TReEmulFromRAW2015simCaloTP (process)
 
def L1TReEmulFromRAW2016 (process)
 
def L1TReEmulFromRAWCalo (process)
 
def L1TReEmulFromRAWCalouGT (process)
 
def L1TReEmulFromRAWLegacyMuon (process)
 
def L1TReEmulFromRAWsimEcalTP (process)
 
def L1TReEmulFromRAWsimHcalTP (process)
 
def L1TReEmulFromRAWsimTP (process)
 
def L1TReEmulMCFrom90xRAWSimHcalTP (process)
 
def L1TReEmulMCFromRAW (process)
 
def L1TReEmulMCFromRAW2015 (process)
 
def L1TReEmulMCFromRAWSimCalTP (process)
 
def L1TReEmulMCFromRAWSimEcalTP (process)
 
def L1TReEmulMCFromRAWSimHcalTP (process)
 

Function Documentation

def customiseReEmul.L1TAddBitwiseLayer1 (   process)

Definition at line 11 of file customiseReEmul.py.

References edm.print().

11 def L1TAddBitwiseLayer1(process):
12  from L1Trigger.L1TCaloLayer1.simCaloStage2Layer1Digis_cfi import simCaloStage2Layer1Digis as simCaloStage2BitwiseLayer1Digis
13  from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi import simCaloStage2Digis as simCaloStage2BitwiseDigis
14  process.simCaloStage2BitwiseLayer1Digis = simCaloStage2BitwiseLayer1Digis.clone()
15  process.simCaloStage2BitwiseLayer1Digis.ecalToken = cms.InputTag("ecalDigis:EcalTriggerPrimitives")
16  process.simCaloStage2BitwiseDigis = simCaloStage2BitwiseDigis.clone()
17  process.simCaloStage2BitwiseDigis.towerToken = cms.InputTag("simCaloStage2BitwiseLayer1Digis")
18  process.SimL1TCalorimeter = cms.Sequence( process.simCaloStage2Layer1Digis + process.simCaloStage2Digis + process.simCaloStage2BitwiseLayer1Digis + process.simCaloStage2BitwiseDigis)
19  from L1Trigger.L1TNtuples.l1UpgradeTree_cfi import l1UpgradeTree
20  process.l1UpgradeBitwiseTree = l1UpgradeTree.clone()
21  process.l1UpgradeBitwiseTree.egToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
22  process.l1UpgradeBitwiseTree.tauTokens = cms.untracked.VInputTag("simCaloStage2BitwiseDigis")
23  process.l1UpgradeBitwiseTree.jetToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
24  process.l1UpgradeBitwiseTree.muonToken = cms.untracked.InputTag("simGmtStage2Digis")
25  process.l1UpgradeBitwiseTree.sumToken = cms.untracked.InputTag("simCaloStage2BitwiseDigis")
26  process.l1ntuplebitwise = cms.Path(
27  process.l1UpgradeBitwiseTree
28  )
29  process.schedule.append(process.l1ntuplebitwise)
30  print("# modified L1TReEmul: ")
31  print("# {0}".format(process.L1TReEmul))
32  return process
33 
34 # As of 80X, this ES configuration is needed for *data* GTs (mc tags work w/o)
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def L1TAddBitwiseLayer1(process)
def customiseReEmul.L1TCaloStage2ParamsForHW (   process)

Definition at line 7 of file customiseReEmul.py.

8  process.load("L1Trigger.L1TCalorimeter.caloStage2Params_HWConfig_cfi")
9  return process
10 
def L1TCaloStage2ParamsForHW(process)
def customiseReEmul.L1TEventSetupForHF1x1TPs (   process)

Definition at line 35 of file customiseReEmul.py.

36  process.es_pool_hf1x1 = cms.ESSource(
37  "PoolDBESSource",
38  #process.CondDBSetup,
39  timetype = cms.string('runnumber'),
40  toGet = cms.VPSet(
41  cms.PSet(record = cms.string("HcalLutMetadataRcd"),
42  tag = cms.string("HcalLutMetadata_HFTP_1x1")
43  ),
44  cms.PSet(record = cms.string("HcalElectronicsMapRcd"),
45  tag = cms.string("HcalElectronicsMap_HFTP_1x1")
46  )
47  ),
48  connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
49  authenticationMethod = cms.untracked.uint32(0)
50  )
51  process.es_prefer_es_pool_hf1x1 = cms.ESPrefer("PoolDBESSource", "es_pool_hf1x1")
52  return process
53 
def L1TEventSetupForHF1x1TPs(process)
def customiseReEmul.L1TReEmulFromNANO (   process)

Definition at line 195 of file customiseReEmul.py.

195 def L1TReEmulFromNANO(process):
196 
197  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
198  process.L1TReEmul = cms.Sequence(process.SimL1TGlobal)
199  stage2L1Trigger_2017.toModify(process.simGtStage2Digis,
200  ExtInputTag = "hltGtStage2Digis",
201  MuonInputTag = "hltGtStage2Digis:Muon",
202  EtSumInputTag = "hltGtStage2Digis:EtSum",
203  EGammaInputTag = "hltGtStage2Digis:EGamma",
204  TauInputTag = "hltGtStage2Digis:Tau",
205  JetInputTag = "hltGtStage2Digis:Jet"
206  )
207 
208  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
209  process.schedule.append(process.L1TReEmulPath)
210 
211  print ("# L1TReEmul sequence: ")
212  print ("# {0}".format(process.L1TReEmul))
213  print ("# {0}".format(process.schedule))
214  return process
215 
def L1TReEmulFromNANO(process)
def customiseReEmul.L1TReEmulFromRAW (   process)

Definition at line 175 of file customiseReEmul.py.

References L1TReEmulFromRAW2016(), and edm.print().

Referenced by L1TReEmulFromRAWCalouGT(), L1TReEmulFromRAWsimEcalTP(), L1TReEmulFromRAWsimHcalTP(), L1TReEmulFromRAWsimTP(), and L1TReEmulMCFromRAW().

175 def L1TReEmulFromRAW(process):
176  L1TReEmulFromRAW2016(process)
177 
178  stage2L1Trigger_2017.toModify(process.simOmtfDigis,
179  srcRPC = 'omtfStage2Digis',
180  srcCSC = 'omtfStage2Digis',
181  srcDTPh = 'omtfStage2Digis',
182  srcDTTh = 'omtfStage2Digis'
183  )
184 
185  print("# L1TReEmul sequence: ")
186  print("# {0}".format(process.L1TReEmul))
187  print("# {0}".format(process.schedule))
188  return process
189 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def L1TReEmulFromRAW2016(process)
def L1TReEmulFromRAW(process)
def customiseReEmul.L1TReEmulFromRAW2015 (   process)

Definition at line 54 of file customiseReEmul.py.

References edm.print().

Referenced by L1TReEmulFromRAW2015simCaloTP(), and L1TReEmulMCFromRAW2015().

54 def L1TReEmulFromRAW2015(process):
55  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
56  process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
57  process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
58  process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
59  cms.InputTag('hcalDigis'),
60  cms.InputTag('hcalDigis')
61  )
62  process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
63  process.simDtTriggerPrimitiveDigis.digiTag = 'muonDTDigis'
64  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
65  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
66 
67  stage2L1Trigger.toModify(process.simTwinMuxDigis,
68  RPC_Source = 'muonRPCDigis',
69  # When available, this will switch to TwinMux input Digis:
70  DTDigi_Source = "dttfDigis",
71  DTThetaDigi_Source = "dttfDigis"
72  )
73  stage2L1Trigger.toModify(process.simOmtfDigis,
74  srcRPC = 'muonRPCDigis',
75  srcCSC = "csctfDigis"
76  )
77  stage2L1Trigger.toModify(process.simBmtfDigis,
78  DTDigi_Source = "simTwinMuxDigis",
79  DTDigi_Theta_Source = "dttfDigis"
80  )
81  stage2L1Trigger.toModify(process.simEmtfDigis,
82  CSCInput = "csctfDigis",
83  RPCInput = 'muonRPCDigis'
84  )
85  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken = "ecalDigis:EcalTriggerPrimitives")
86  # quiet warning abouts missing Stage-2 payloads, since they won't reliably exist in 2015 data.
87  stage2L1Trigger.toModify(process.caloStage2Digis, MinFeds = 0)
88  stage2L1Trigger.toModify(process.gmtStage2Digis, MinFeds = 0)
89  stage2L1Trigger.toModify(process.gtStage2Digis, MinFeds = 0)
90 
91  (~stage2L1Trigger).toModify(process.simRctDigis,
92  ecalDigis = ['simEcalTriggerPrimitiveDigis'],
93  hcalDigis = ['simHcalTriggerPrimitiveDigis']
94  )
95  (~stage2L1Trigger).toModify(process.simRpcTriggerDigis, label = 'muonRPCDigis')
96  (~stage2L1Trigger).toModify(process.simRpcTechTrigDigis, RPCDigiLabel = 'muonRPCDigis')
97 
98  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
99  process.schedule.append(process.L1TReEmulPath)
100 
101  print("# L1TReEmul sequence: ")
102  print("# {0}".format(process.L1TReEmul))
103  print("# {0}".format(process.schedule))
104  return process
105 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def L1TReEmulFromRAW2015(process)
def customiseReEmul.L1TReEmulFromRAW2015simCaloTP (   process)

Definition at line 112 of file customiseReEmul.py.

References L1TReEmulFromRAW2015().

113  L1TReEmulFromRAW2015(process)
114  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken = "simEcalTriggerPrimitiveDigis")
115  return process
116 
def L1TReEmulFromRAW2015simCaloTP(process)
def L1TReEmulFromRAW2015(process)
def customiseReEmul.L1TReEmulFromRAW2016 (   process)

Definition at line 117 of file customiseReEmul.py.

Referenced by L1TReEmulFromRAW().

117 def L1TReEmulFromRAW2016(process):
118  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
119  process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
120  process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
121  process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
122  cms.InputTag('hcalDigis'),
123  cms.InputTag('hcalDigis')
124  )
125  process.simHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(
126  cms.InputTag('hcalDigis'),
127  cms.InputTag('hcalDigis')
128  )
129  process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCComparatorDigi')
130  process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag( 'muonCSCDigis', 'MuonCSCWireDigi' )
131  process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
132 
133  #cutlist=['simDtTriggerPrimitiveDigis','simCscTriggerPrimitiveDigis']
134  #for b in cutlist:
135  # process.SimL1Emulator.remove(getattr(process,b))
136  # TwinMux
137  stage2L1Trigger.toModify(process.simTwinMuxDigis,
138  RPC_Source = 'RPCTwinMuxRawToDigi',
139  DTDigi_Source = 'twinMuxStage2Digis:PhIn',
140  DTThetaDigi_Source = 'twinMuxStage2Digis:ThIn'
141  )
142  # BMTF
143  stage2L1Trigger.toModify(process.simBmtfDigis,
144  DTDigi_Source = 'simTwinMuxDigis',
145  DTDigi_Theta_Source = 'bmtfDigis'
146  )
147  # OMTF
148  stage2L1Trigger.toModify(process.simOmtfDigis,
149  srcRPC = 'muonRPCDigis',
150  srcCSC = 'csctfDigis',
151  srcDTPh = 'bmtfDigis',
152  srcDTTh = 'bmtfDigis'
153  )
154  # EMTF
155  stage2L1Trigger.toModify(process.simEmtfDigis,
156  CSCInput = 'emtfStage2Digis',
157  RPCInput = 'muonRPCDigis'
158  )
159  # Calo Layer1
160  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
161  ecalToken = 'ecalDigis:EcalTriggerPrimitives',
162  hcalToken = 'hcalDigis:'
163  )
164 
165  (~stage2L1Trigger).toModify(process.simRctDigis,
166  ecalDigis = ['ecalDigis:EcalTriggerPrimitives'],
167  hcalDigis = ['hcalDigis:']
168  )
169  (~stage2L1Trigger).toModify(process.simRpcTriggerDigis, label = 'muonRPCDigis')
170 
171  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
172  process.schedule.append(process.L1TReEmulPath)
173  return process
174 
def L1TReEmulFromRAW2016(process)
def customiseReEmul.L1TReEmulFromRAWCalo (   process)

Definition at line 216 of file customiseReEmul.py.

216 def L1TReEmulFromRAWCalo(process):
217  process.load('L1Trigger.Configuration.SimL1CaloEmulator_cff')
218  process.L1TReEmul = cms.Sequence(process.SimL1CaloEmulator)
219  process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag('ecalDigis:EcalTriggerPrimitives')
220  process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag('hcalDigis:')
221  process.L1TReEmulPath = cms.Path(process.L1TReEmul)
222  process.schedule.append(process.L1TReEmulPath)
223 
224  print ("# L1TReEmul sequence: ")
225  print ("# {0}".format(process.L1TReEmul))
226  print ("# {0}".format(process.schedule))
227  return process
228 
def L1TReEmulFromRAWCalo(process)
def customiseReEmul.L1TReEmulFromRAWCalouGT (   process)

Definition at line 190 of file customiseReEmul.py.

References L1TReEmulFromRAW().

191  L1TReEmulFromRAW(process)
192  process.simGtStage2Digis.MuonInputTag = cms.InputTag("gtStage2Digis","Muon")
193  return process
194 
def L1TReEmulFromRAW(process)
def L1TReEmulFromRAWCalouGT(process)
def customiseReEmul.L1TReEmulFromRAWLegacyMuon (   process)

Definition at line 313 of file customiseReEmul.py.

References edm.print().

314  process.load('L1Trigger.Configuration.SimL1Emulator_cff')
315  process.load('L1Trigger.Configuration.CaloTriggerPrimitives_cff')
316  process.simEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
317  process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
318  cms.InputTag('hcalDigis'),
319  cms.InputTag('hcalDigis')
320  )
321 
def L1TReEmulFromRAWLegacyMuon(process)
def customiseReEmul.L1TReEmulFromRAWsimEcalTP (   process)

Definition at line 271 of file customiseReEmul.py.

References L1TReEmulFromRAW().

272  L1TReEmulFromRAW(process)
273  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken = "simEcalTriggerPrimitiveDigis")
274  return process
275 
def L1TReEmulFromRAWsimEcalTP(process)
def L1TReEmulFromRAW(process)
def customiseReEmul.L1TReEmulFromRAWsimHcalTP (   process)

Definition at line 276 of file customiseReEmul.py.

References L1TReEmulFromRAW().

277  L1TReEmulFromRAW(process)
278  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken = 'simHcalTriggerPrimitiveDigis')
279  return process
280 
def L1TReEmulFromRAW(process)
def L1TReEmulFromRAWsimHcalTP(process)
def customiseReEmul.L1TReEmulFromRAWsimTP (   process)

Definition at line 281 of file customiseReEmul.py.

References L1TReEmulFromRAW().

282  L1TReEmulFromRAW(process)
283  # TwinMux
284  stage2L1Trigger.toModify(process.simTwinMuxDigis,
285  RPC_Source = 'muonRPCDigis',
286  DTDigi_Source = 'simDtTriggerPrimitiveDigis',
287  DTThetaDigi_Source = 'simDtTriggerPrimitiveDigis'
288  )
289  # BMTF
290  stage2L1Trigger.toModify(process.simBmtfDigis,
291  DTDigi_Source = 'simTwinMuxDigis',
292  DTDigi_Theta_Source = 'simDtTriggerPrimitiveDigis'
293  )
294  # OMTF
295  stage2L1Trigger.toModify(process.simOmtfDigis,
296  srcRPC = 'muonRPCDigis',
297  srcCSC = 'simCscTriggerPrimitiveDigis',
298  srcDTPh = 'simDtTriggerPrimitiveDigis',
299  srcDTTh = 'simDtTriggerPrimitiveDigis'
300  )
301  # EMTF
302  stage2L1Trigger.toModify(process.simEmtfDigis,
303  CSCInput = 'simCscTriggerPrimitiveDigis',
304  RPCInput = 'muonRPCDigis'
305  )
306  # Layer1
307  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
308  ecalToken = "simEcalTriggerPrimitiveDigis",
309  hcalToken = 'simHcalTriggerPrimitiveDigis'
310  )
311  return process
312 
def L1TReEmulFromRAW(process)
def L1TReEmulFromRAWsimTP(process)
def customiseReEmul.L1TReEmulMCFrom90xRAWSimHcalTP (   process)

Definition at line 245 of file customiseReEmul.py.

References L1TReEmulMCFromRAW().

246  L1TReEmulMCFromRAW(process)
247  stage2L1Trigger.toModify(process.simHcalTriggerPrimitiveDigis,
248  inputLabel = [
249  'simHcalUnsuppressedDigis',
250  'simHcalUnsuppressedDigis'
251  ],
252  inputUpgradeLabel = [
253  'simHcalUnsuppressedDigis:HBHEQIE11DigiCollection',
254  'simHcalUnsuppressedDigis:HFQIE10DigiCollection'
255  ]
256  )
257  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken = 'simHcalTriggerPrimitiveDigis')
258  return process
259  #inputUpgradeLabel = cms.VInputTag(
260  # cms.InputTag('simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
261  # cms.InputTag('simHcalUnsuppressedDigis:HFQIE10DigiCollection')),
262 
def L1TReEmulMCFromRAW(process)
def L1TReEmulMCFrom90xRAWSimHcalTP(process)
def customiseReEmul.L1TReEmulMCFromRAW (   process)

Definition at line 229 of file customiseReEmul.py.

References L1TReEmulFromRAW().

Referenced by L1TReEmulMCFrom90xRAWSimHcalTP(), L1TReEmulMCFromRAWSimCalTP(), L1TReEmulMCFromRAWSimEcalTP(), and L1TReEmulMCFromRAWSimHcalTP().

229 def L1TReEmulMCFromRAW(process):
230  L1TReEmulFromRAW(process)
231  stage2L1Trigger.toModify(process.simEmtfDigis, CSCInput = 'simCscTriggerPrimitiveDigis:MPCSORTED')
232  stage2L1Trigger.toModify(process.simOmtfDigis, srcCSC = 'simCscTriggerPrimitiveDigis:MPCSORTED')
233  return process
234 
def L1TReEmulMCFromRAW(process)
def L1TReEmulFromRAW(process)
def customiseReEmul.L1TReEmulMCFromRAW2015 (   process)

Definition at line 106 of file customiseReEmul.py.

References L1TReEmulFromRAW2015().

107  L1TReEmulFromRAW2015(process)
108  stage2L1Trigger.toModify(process.simEmtfDigis, CSCInput = 'simCscTriggerPrimitiveDigis:MPCSORTED')
109  stage2L1Trigger.toModify(process.simOmtfDigis, srcCSC = 'simCscTriggerPrimitiveDigis:MPCSORTED')
110  return process
111 
def L1TReEmulFromRAW2015(process)
def L1TReEmulMCFromRAW2015(process)
def customiseReEmul.L1TReEmulMCFromRAWSimCalTP (   process)

Definition at line 263 of file customiseReEmul.py.

References L1TReEmulMCFromRAW().

264  L1TReEmulMCFromRAW(process)
265  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
266  ecalToken = "simEcalTriggerPrimitiveDigis",
267  hcalToken = 'simHcalTriggerPrimitiveDigis'
268  )
269  return process
270 
def L1TReEmulMCFromRAWSimCalTP(process)
def L1TReEmulMCFromRAW(process)
def customiseReEmul.L1TReEmulMCFromRAWSimEcalTP (   process)

Definition at line 235 of file customiseReEmul.py.

References L1TReEmulMCFromRAW().

236  L1TReEmulMCFromRAW(process)
237  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken = "simEcalTriggerPrimitiveDigis")
238  return process
239 
def L1TReEmulMCFromRAW(process)
def L1TReEmulMCFromRAWSimEcalTP(process)
def customiseReEmul.L1TReEmulMCFromRAWSimHcalTP (   process)

Definition at line 240 of file customiseReEmul.py.

References L1TReEmulMCFromRAW().

241  L1TReEmulMCFromRAW(process)
242  stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken = 'simHcalTriggerPrimitiveDigis')
243  return process
244 
def L1TReEmulMCFromRAW(process)
def L1TReEmulMCFromRAWSimHcalTP(process)