CMS 3D CMS Logo

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

Functions

def customiseL1RawToDigiFor74XMC
 
def customiseL1RecoForStage1
 
def customiseSimL1EmulatorForPostLS1_25ns
 
def customiseSimL1EmulatorForPostLS1_50ns
 
def customiseSimL1EmulatorForPostLS1_Additional_HI
 
def customiseSimL1EmulatorForPostLS1_lowPU
 
def customiseSimL1EmulatorForStage1
 

Function Documentation

def customsPostLS1.customiseL1RawToDigiFor74XMC (   process)

Definition at line 165 of file customsPostLS1.py.

166 def customiseL1RawToDigiFor74XMC(process):
167  if hasattr(process,'caloStage1Digis'):
168  process.caloStage1Digis.FWId = cms.uint32(0xff000000)
169  if hasattr(process,'hltCaloStage1Digis'):
170  process.hltCaloStage1Digis.FWId = cms.uint32(0xff000000)
171  return process
def customiseL1RawToDigiFor74XMC
def customsPostLS1.customiseL1RecoForStage1 (   process)

Definition at line 82 of file customsPostLS1.py.

Referenced by RecoTLR.customiseDataRun2Common_withStage1().

82 
83 def customiseL1RecoForStage1(process):
84 
85  process.load("L1Trigger.L1TCommon.l1tRawToDigi_cfi")
86  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
87 
88  if hasattr(process, 'RawToDigi'):
89  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
90  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
91 
92  blist=['l1extraParticles','recoL1extraParticles','dqmL1ExtraParticles']
93  for b in blist:
94  if hasattr(process,b):
95  if (getattr(process, b).centralJetSource == cms.InputTag("simGctDigis","cenJets")):
96  getattr(process, b).etTotalSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
97  getattr(process, b).nonIsolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")
98  getattr(process, b).etMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
99  getattr(process, b).htMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
100  getattr(process, b).forwardJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
101  getattr(process, b).centralJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
102  getattr(process, b).tauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
103  getattr(process, b).isoTauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
104  getattr(process, b).isolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
105  getattr(process, b).etHadSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
106  getattr(process, b).hfRingEtSumsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
107  getattr(process, b).hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
108  else:
109  getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
110  getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
111  getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
112  getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
113  getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
114  getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
115  getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
116  getattr(process, b).isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
117  getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
118  getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
119  getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
120  getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
121 
122  return process
123 
def customiseL1RecoForStage1
def customsPostLS1.customiseSimL1EmulatorForPostLS1_25ns (   process)

Definition at line 140 of file customsPostLS1.py.

References customiseSimL1EmulatorForStage1(), and customise_overwriteL1Menu.L1Menu_Collisions2015_25ns_v2().

142  # load the Stage 1 configuration
143  process = customiseSimL1EmulatorForStage1(process)
144  # load the 25ns v2 L1 menu
145  process = L1Menu_Collisions2015_25ns_v2(process)
146  return process
147 
148 # additional customizations needed for HI:
149 # -> no L1 Menu added here
# -> common post LS1 customizations not called here
def customiseSimL1EmulatorForStage1
def customiseSimL1EmulatorForPostLS1_25ns
def customsPostLS1.customiseSimL1EmulatorForPostLS1_50ns (   process)

Definition at line 133 of file customsPostLS1.py.

References customiseSimL1EmulatorForStage1(), and customise_overwriteL1Menu.L1Menu_Collisions2015_50ns_v2().

135  # load the Stage 1 configuration
136  process = customiseSimL1EmulatorForStage1(process)
137  # move to the 50ns v2 L1 menu once the HLT has been updated accordingly
138  process = L1Menu_Collisions2015_50ns_v2(process)
139  return process
def customiseSimL1EmulatorForPostLS1_50ns
def customiseSimL1EmulatorForStage1
def customsPostLS1.customiseSimL1EmulatorForPostLS1_Additional_HI (   process)

Definition at line 150 of file customsPostLS1.py.

Referenced by postLS1Customs.customisePostLS1_HI().

152  # set the Stage 1 heavy ions-specific parameters
153  # all of these should eventually end up in a GT
154  if hasattr(process,'RCTConfigProducers'):
155  process.RCTConfigProducers.eicIsolationThreshold = cms.uint32(7)
156  process.RCTConfigProducers.hOeCut = cms.double(999)
157  process.RCTConfigProducers.eMinForHoECut = cms.double(999)
158  process.RCTConfigProducers.eMaxForHoECut = cms.double(999)
159  process.RCTConfigProducers.hMinForHoECut = cms.double(999)
160  process.RCTConfigProducers.eMinForFGCut = cms.double(999)
161  if hasattr(process,'caloConfig'):
162  process.caloConfig.fwVersionLayer2 = cms.uint32(1)
163  return process
164 
# This (UNTESTED/UNUSED) should allow for unpacking RAW data created with legacy 74X MC.
def customiseSimL1EmulatorForPostLS1_Additional_HI
def customsPostLS1.customiseSimL1EmulatorForPostLS1_lowPU (   process)

Definition at line 126 of file customsPostLS1.py.

References customiseSimL1EmulatorForStage1(), and customise_overwriteL1Menu.L1Menu_Collisions2015_lowPU_v3().

128  # load the Stage 1 configuration
129  process = customiseSimL1EmulatorForStage1(process)
130  # move to the lowPU v3 L1 menu once the HLT has been updated accordingly
131  process = L1Menu_Collisions2015_lowPU_v3(process)
132  return process
def customiseSimL1EmulatorForPostLS1_lowPU
def customiseSimL1EmulatorForStage1
def customsPostLS1.customiseSimL1EmulatorForStage1 (   process)

Definition at line 10 of file customsPostLS1.py.

References python.rootplot.root2matplotlib.replace().

Referenced by postLS1Customs.customisePostLS1_Common(), customiseSimL1EmulatorForPostLS1_25ns(), customiseSimL1EmulatorForPostLS1_50ns(), and customiseSimL1EmulatorForPostLS1_lowPU().

10 
12 
13  process.load("L1Trigger.L1TCommon.l1tDigiToRaw_cfi")
14  process.load("EventFilter.L1TRawToDigi.caloStage1Digis_cfi")
15 
16  process.load("L1Trigger.L1TCommon.caloStage1LegacyFormatDigis_cfi")
17 
18  #process.load('L1Trigger.L1TCalorimeter.caloStage1Params_cfi')
19  process.load('L1Trigger.L1TCalorimeter.caloConfigStage1PP_cfi')
20  process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_cff')
21 
22  if hasattr(process, 'simGtDigis'):
23  process.simGtDigis.GmtInputTag = 'simGmtDigis'
24  process.simGtDigis.GctInputTag = 'simCaloStage1LegacyFormatDigis'
25  process.simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
26  if hasattr(process, 'gctDigiToRaw'):
27  process.gctDigiToRaw.gctInputLabel = 'simCaloStage1LegacyFormatDigis'
28 
29  if hasattr(process, 'simGctDigis'):
30  for sequence in process.sequences:
31  getattr(process,sequence).replace(process.simGctDigis,process.L1TCaloStage1)
32  for path in process.paths:
33  getattr(process,path).replace(process.simGctDigis,process.L1TCaloStage1)
34 
35  if hasattr(process, 'DigiToRaw'):
36  process.l1tDigiToRaw.InputLabel = cms.InputTag("simCaloStage1FinalDigis", "")
37  process.l1tDigiToRaw.TauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "rlxTaus")
38  process.l1tDigiToRaw.IsoTauInputLabel = cms.InputTag("simCaloStage1FinalDigis", "isoTaus")
39  process.l1tDigiToRaw.HFBitCountsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFBitCounts")
40  process.l1tDigiToRaw.HFRingSumsInputLabel = cms.InputTag("simCaloStage1FinalDigis", "HFRingSums")
41  process.l1tDigiToRawSeq = cms.Sequence(process.gctDigiToRaw + process.l1tDigiToRaw);
42  process.DigiToRaw.replace(process.gctDigiToRaw, process.l1tDigiToRawSeq)
43  if hasattr(process, 'rawDataCollector'):
44  process.rawDataCollector.RawCollectionList.append(cms.InputTag("l1tDigiToRaw"))
45  if hasattr(process, 'RawToDigi'):
46  process.L1RawToDigiSeq = cms.Sequence(process.gctDigis+process.caloStage1Digis+process.caloStage1LegacyFormatDigis)
47  process.RawToDigi.replace(process.gctDigis, process.L1RawToDigiSeq)
48 
49  blist=['l1extraParticles','recoL1extraParticles','dqmL1ExtraParticles']
50  for b in blist:
51  if hasattr(process,b):
52  if (getattr(process, b).centralJetSource == cms.InputTag("simGctDigis","cenJets")):
53  getattr(process, b).etTotalSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
54  getattr(process, b).nonIsolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","nonIsoEm")
55  getattr(process, b).etMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
56  getattr(process, b).htMissSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
57  getattr(process, b).forwardJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","forJets")
58  getattr(process, b).centralJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","cenJets")
59  getattr(process, b).tauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","tauJets")
60  getattr(process, b).isoTauJetSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoTauJets")
61  getattr(process, b).isolatedEmSource = cms.InputTag("simCaloStage1LegacyFormatDigis","isoEm")
62  getattr(process, b).etHadSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
63  getattr(process, b).hfRingEtSumsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
64  getattr(process, b).hfRingBitCountsSource = cms.InputTag("simCaloStage1LegacyFormatDigis")
65  else:
66  getattr(process, b).etTotalSource = cms.InputTag("caloStage1LegacyFormatDigis")
67  getattr(process, b).nonIsolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","nonIsoEm")
68  getattr(process, b).etMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
69  getattr(process, b).htMissSource = cms.InputTag("caloStage1LegacyFormatDigis")
70  getattr(process, b).forwardJetSource = cms.InputTag("caloStage1LegacyFormatDigis","forJets")
71  getattr(process, b).centralJetSource = cms.InputTag("caloStage1LegacyFormatDigis","cenJets")
72  getattr(process, b).tauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","tauJets")
73  getattr(process, b).isoTauJetSource = cms.InputTag("caloStage1LegacyFormatDigis","isoTauJets")
74  getattr(process, b).isolatedEmSource = cms.InputTag("caloStage1LegacyFormatDigis","isoEm")
75  getattr(process, b).etHadSource = cms.InputTag("caloStage1LegacyFormatDigis")
76  getattr(process, b).hfRingEtSumsSource = cms.InputTag("caloStage1LegacyFormatDigis")
77  getattr(process, b).hfRingBitCountsSource = cms.InputTag("caloStage1LegacyFormatDigis")
78 
79  return process
80 
81 
# customization of run L1 emulator for 2015 Stage 1 configuration
def customiseSimL1EmulatorForStage1