CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customsPostLS1 Namespace Reference

Functions

def customiseSimL1EmulatorForPostLS1
 

Function Documentation

def customsPostLS1.customiseSimL1EmulatorForPostLS1 (   process)

Definition at line 9 of file customsPostLS1.py.

References L1Trigger_custom.customiseL1Menu().

Referenced by postLS1Customs.customisePostLS1().

9 
11  #print "INFO: Customising L1T emulator for 2015 run configuration"
12  #print "INFO: Customize the L1 menu"
13  # the following line will break HLT if HLT menu is not updated with the corresponding menu
14  process=customiseL1Menu(process)
15  #print "INFO: loading RCT LUTs"
16  process.load("L1Trigger.L1TCalorimeter.caloStage1RCTLuts_cff")
17  if hasattr(process,'L1simulation_step'):
18  #print "INFO: Removing GCT from simulation and adding new Stage 1"
19  process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
20  process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')
21  process.L1simulation_step.replace(process.simGctDigis,process.L1TCaloStage1)
22  process.rctUpgradeFormatDigis.regionTag = cms.InputTag("simRctDigis")
23  process.rctUpgradeFormatDigis.emTag = cms.InputTag("simRctDigis")
24  #print "New L1 simulation step is:", process.L1simulation_step
25  process.simGtDigis.GmtInputTag = 'simGmtDigis'
26  process.simGtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
27  process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
28  process.gctDigiToRaw.gctInputLabel = 'caloStage1LegacyFormatDigis'
29  return process
30 
31 # #
32 # # Plan B: (Not Needed if packing/unpacking of Stage 1 calo via legacy formats and GCT packer works)
33 # #
34 # process.digi2raw_step.remove(process.gctDigiToRaw)
35 #
36 # # Carry forward legacy format digis for now (keep rest of workflow working)
37 # alist=['RAWSIM','RAWDEBUG','FEVTDEBUG','FEVTDEBUGHLT','GENRAW','RAWSIMHLT','FEVT']
38 # for a in alist:
39 # b=a+'output'
40 # if hasattr(process,b):
41 # getattr(process,b).outputCommands.append('keep *_caloStage1LegacyFormatDigis_*_*')
42 # print "INFO: keeping L1T legacy format digis in event."
43 #
44 # blist=['l1extraParticles','recoL1ExtraParticles','hltL1ExtraParticles','dqmL1ExtraParticles']
45 # for b in blist:
46 # if hasattr(process,b):
47 # print "INFO: customizing ", b, "to use simulated legacy formats, without packing/unpacking"
48 # getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
49 # getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
50 # getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
51 # getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
52 # getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
53 # getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
54 # getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
55 # getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
56 # getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
57 # getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
58 # getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
59 #
60 # # automatic replacements of "simGctDigis" instead of "hltGctDigis"
61 # for module in process.__dict__.itervalues():
62 # if isinstance(module, cms._Module):
63 # for parameter in module.__dict__.itervalues():
64 # if isinstance(parameter, cms.InputTag):
65 # if parameter.moduleLabel == 'hltGctDigis':
66 # parameter.moduleLabel = "simGctDigis"
67 
def customiseSimL1EmulatorForPostLS1