CMS 3D CMS Logo

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

Functions

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

Function Documentation

def customsPostLS1.customiseL1RecoForStage1 (   process)

Definition at line 81 of file customsPostLS1.py.

Referenced by RecoTLR.customiseDataRun2Common_25ns(), and RecoTLR.customiseDataRun2Common_50nsRunsAfter253000().

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

Definition at line 139 of file customsPostLS1.py.

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

141  # load the Stage 1 configuration
142  process = customiseSimL1EmulatorForStage1(process)
143  # load the 25ns v2 L1 menu
144  process = L1Menu_Collisions2015_25ns_v2(process)
145  return process
146 
147 # additional customizations needed for HI:
148 # -> 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 132 of file customsPostLS1.py.

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

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

Definition at line 149 of file customsPostLS1.py.

Referenced by postLS1Customs.customisePostLS1_HI().

151  # set the Stage 1 heavy ions-specific parameters
152  # all of these should eventually end up in a GT
153  if hasattr(process,'RCTConfigProducers'):
154  process.RCTConfigProducers.eicIsolationThreshold = cms.uint32(7)
155  process.RCTConfigProducers.hOeCut = cms.double(999)
156  process.RCTConfigProducers.eMinForHoECut = cms.double(999)
157  process.RCTConfigProducers.eMaxForHoECut = cms.double(999)
158  process.RCTConfigProducers.hMinForHoECut = cms.double(999)
159  process.RCTConfigProducers.eMinForFGCut = cms.double(999)
160  if hasattr(process,'caloStage1Params'):
161  process.caloStage1Params.jetSeedThreshold = cms.double(0.)
162  process.caloStage1Params.regionPUSType = cms.string("zeroWall")
163  if hasattr(process,'caloConfig'):
164  process.caloConfig.fwVersionLayer2 = cms.uint32(1)
165  return process
def customiseSimL1EmulatorForPostLS1_Additional_HI
def customsPostLS1.customiseSimL1EmulatorForPostLS1_lowPU (   process)

Definition at line 125 of file customsPostLS1.py.

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

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