CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customsPostLS1.py
Go to the documentation of this file.
1 
2 import FWCore.ParameterSet.Config as cms
3 
4 
5 # customize to use upgrade L1 emulation
6 
7 from L1Trigger.Configuration.L1Trigger_custom import customiseL1Menu
8 
9 # customization of run L1 emulator for 2015 Stage 1 configuration
11 
12  process.load("L1Trigger.L1TCommon.l1tDigiToRaw_cfi")
13  process.load("EventFilter.L1TRawToDigi.caloStage1Digis_cfi")
14  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
15 
16  process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
17  process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')
18 
19  if hasattr(process, 'simGtDigis'):
20  process.simGtDigis.GmtInputTag = 'simGmtDigis'
21  process.simGtDigis.GctInputTag = 'simCaloStage1LegacyFormatDigis'
22  process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
23  if hasattr(process, 'gctDigiToRaw'):
24  process.gctDigiToRaw.gctInputLabel = 'simCaloStage1LegacyFormatDigis'
25 
26  if hasattr(process, 'simGctDigis'):
27  for sequence in process.sequences:
28  getattr(process,sequence).replace(process.simGctDigis,process.L1TCaloStage1)
29  for path in process.paths:
30  getattr(process,path).replace(process.simGctDigis,process.L1TCaloStage1)
31 
32  if hasattr(process, 'DigiToRaw'):
33  process.l1tDigiToRaw.InputLabel = cms.InputTag("simCaloStage1FinalDigis", "")
34  process.l1tDigiToRaw.TauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "rlxTaus")
35  process.l1tDigiToRaw.IsoTauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "isoTaus")
36  process.l1tDigiToRaw.HFBitCountsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFBitCounts")
37  process.l1tDigiToRaw.HFRingSumsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFRingSums")
38  process.l1tDigiToRawSeq = cms.Sequence(process.gctDigiToRaw + process.l1tDigiToRaw);
39  process.DigiToRaw.replace(process.gctDigiToRaw, process.l1tDigiToRawSeq)
40  if hasattr(process, 'rawDataCollector'):
41  process.rawDataCollector.RawCollectionList.append(cms.InputTag("l1tDigiToRaw"))
42  if hasattr(process, 'RawToDigi'):
43  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
44  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
45 
46  blist=['l1extraParticles','recoL1extraParticles','dqmL1ExtraParticles']
47  for b in blist:
48  if hasattr(process,b):
49  if (getattr(process, b).centralJetSource == cms.InputTag("simGctDigis","cenJets")):
50  getattr(process, b).etTotalSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
51  getattr(process, b).nonIsolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")
52  getattr(process, b).etMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
53  getattr(process, b).htMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
54  getattr(process, b).forwardJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
55  getattr(process, b).centralJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
56  getattr(process, b).tauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
57  getattr(process, b).isoTauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
58  getattr(process, b).isolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
59  getattr(process, b).etHadSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
60  getattr(process, b).hfRingEtSumsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
61  getattr(process, b).hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
62  else:
63  getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
64  getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
65  getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
66  getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
67  getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
68  getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
69  getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
70  getattr(process, b).isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
71  getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
72  getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
73  getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
74  getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
75 
76  return process
77 
78 
79 # customization of run L1 emulator for 2015 Stage 1 configuration
81 
82  process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
83  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
84 
85  if hasattr(process, 'RawToDigi'):
86  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
87  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
88 
89  blist=['l1extraParticles','recoL1extraParticles','dqmL1ExtraParticles']
90  for b in blist:
91  if hasattr(process,b):
92  if (getattr(process, b).centralJetSource == cms.InputTag("simGctDigis","cenJets")):
93  getattr(process, b).etTotalSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
94  getattr(process, b).nonIsolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")
95  getattr(process, b).etMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
96  getattr(process, b).htMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
97  getattr(process, b).forwardJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
98  getattr(process, b).centralJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
99  getattr(process, b).tauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
100  getattr(process, b).isoTauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
101  getattr(process, b).isolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
102  getattr(process, b).etHadSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
103  getattr(process, b).hfRingEtSumsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
104  getattr(process, b).hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
105  else:
106  getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
107  getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
108  getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
109  getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
110  getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
111  getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
112  getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
113  getattr(process, b).isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
114  getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
115  getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
116  getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
117  getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
118 
119  return process
120 
121 
123 
125  # move to the lowPU v3 L1 menu once the HLT has been updated accordingly
126  process = L1Menu_Collisions2015_lowPU_v3(process)
127  return process
128 
130  # move to the 50ns v1 L1 menu once the HLT has been updated accordingly
131  process = L1Menu_Collisions2015_50ns_v1(process)
132  return process
133 
135  # load the Stage 1 configuration
136  process = customiseSimL1EmulatorForStage1(process)
137  # load the 25ns v2 L1 menu
138  process = L1Menu_Collisions2015_25ns_v2(process)
139  return process
140 
141 # additional customizations needed for HI:
142 # -> no L1 Menu added here
143 # -> common post LS1 customizations not called here
145  # set the Stage 1 heavy ions-specific parameters
146  process.simCaloStage1Digis.FirmwareVersion = cms.uint32(1)
147  return process
def customiseSimL1EmulatorForPostLS1_50ns
def customiseSimL1EmulatorForPostLS1_lowPU
def customiseSimL1EmulatorForPostLS1_Additional_HI
def customiseSimL1EmulatorForStage1
def customiseSimL1EmulatorForPostLS1_25ns
def customiseL1RecoForStage1