test
CMS 3D CMS Logo

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

Functions

def customise_condOverRides
 
def customise_Digi
 
def customise_DigiToRaw
 
def customise_DQM
 
def customise_harvesting
 
def customise_Hcal2016
 
def customise_Hcal2017
 
def customise_Hcal2017Full
 
def customise_HcalPhase0
 
def customise_HcalPhase1
 
def customise_mixing
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Sim
 
def customise_Validation
 
def load_HcalHardcode
 

Function Documentation

def HCalCustoms.customise_condOverRides (   process)

Definition at line 238 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

239 def customise_condOverRides(process):
240  return process
def customise_condOverRides
Definition: HCalCustoms.py:238
def HCalCustoms.customise_Digi (   process)

Definition at line 185 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

186 def customise_Digi(process):
187  if hasattr(process,'mix'):
188  process.mix.digitizers.hcal.HBHEUpgradeQIE = True
189  process.mix.digitizers.hcal.hb.photoelectronsToAnalog = cms.vdouble([10.]*16)
190  process.mix.digitizers.hcal.hb.pixels = cms.int32(4500*4*2)
191  process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*16)
192  process.mix.digitizers.hcal.he.pixels = cms.int32(4500*4*2)
193  process.mix.digitizers.hcal.HFUpgradeQIE = True
194  process.mix.digitizers.hcal.TestNumbering = True
195 
196  if hasattr(process,'simHcalDigis'):
197  process.simHcalDigis.useConfigZSvalues=cms.int32(1)
198  process.simHcalDigis.HBlevel=cms.int32(16)
199  process.simHcalDigis.HElevel=cms.int32(16)
200  process.simHcalDigis.HOlevel=cms.int32(16)
201  process.simHcalDigis.HFlevel=cms.int32(16)
202 
203  process.digitisation_step.remove(process.simHcalTriggerPrimitiveDigis)
204  process.digitisation_step.remove(process.simHcalTTPDigis)
205 
206  return process
def customise_Digi
Definition: HCalCustoms.py:185
def HCalCustoms.customise_DigiToRaw (   process)

Definition at line 175 of file HCalCustoms.py.

Referenced by customise_Hcal2017(), and customise_HcalPhase1().

176 def customise_DigiToRaw(process):
177  process.digi2raw_step.remove(process.hcalRawData)
178 
179  return process
def customise_DigiToRaw
Definition: HCalCustoms.py:175
def HCalCustoms.customise_DQM (   process)

Definition at line 215 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

216 def customise_DQM(process):
217  process.dqmoffline_step.remove(process.hcalDigiMonitor)
218  process.dqmoffline_step.remove(process.hcalDeadCellMonitor)
219  process.dqmoffline_step.remove(process.hcalBeamMonitor)
220  process.dqmoffline_step.remove(process.hcalRecHitMonitor)
221  process.dqmoffline_step.remove(process.hcalDetDiagNoiseMonitor)
222  process.dqmoffline_step.remove(process.hcalNoiseMonitor)
223  process.dqmoffline_step.remove(process.RecHitsDQMOffline)
224  process.dqmoffline_step.remove(process.zdcMonitor)
225  process.dqmoffline_step.remove(process.hcalMonitor)
226  process.dqmoffline_step.remove(process.hcalHotCellMonitor)
227  process.dqmoffline_step.remove(process.hcalRawDataMonitor)
228  return process
def customise_DQM
Definition: HCalCustoms.py:215
def HCalCustoms.customise_harvesting (   process)

Definition at line 229 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

230 def customise_harvesting(process):
231  return process
def customise_harvesting
Definition: HCalCustoms.py:229
def HCalCustoms.customise_Hcal2016 (   process)

Definition at line 60 of file HCalCustoms.py.

References load_HcalHardcode().

60 
61 def customise_Hcal2016(process):
62  process=load_HcalHardcode(process)
63 
64  #for now, use HE run1 conditions - SiPM/QIE11 not ready
65  process.es_hardcode.testHFQIE10 = cms.bool(True)
66 
67  # to get reco to run
68  if hasattr(process,'reconstruction_step'):
69  process.hbheprereco.setNoiseFlags = cms.bool(False)
70 
71  return process
72 
#intermediate customization (HCAL 2017, HE and HF upgrades - no SiPMs or QIE11)
def load_HcalHardcode
Definition: HCalCustoms.py:25
def customise_Hcal2016
Definition: HCalCustoms.py:60
def HCalCustoms.customise_Hcal2017 (   process)

Definition at line 73 of file HCalCustoms.py.

References customise_DigiToRaw(), customise_RawToDigi(), and load_HcalHardcode().

Referenced by customise_Hcal2017Full().

73 
74 def customise_Hcal2017(process):
75  process=load_HcalHardcode(process)
76 
77  #for now, use HE run1 conditions - SiPM/QIE11 not ready
78  process.es_hardcode.useHFUpgrade = cms.bool(True)
79 
80  # to get reco to run
81  if hasattr(process,'DigiToRaw'):
82  process=customise_DigiToRaw(process)
83  if hasattr(process,'RawToDigi'):
84  process=customise_RawToDigi(process)
85  if hasattr(process,'reconstruction_step'):
86  process.hbheprereco.digiLabel = cms.InputTag("simHcalDigis")
87  process.hbheprereco.setNoiseFlags = cms.bool(False)
88  # process.hbheprereco.puCorrMethod = cms.int32(0)
89  process.horeco.digiLabel = cms.InputTag("simHcalDigis")
90  process.zdcreco.digiLabel = cms.InputTag("simHcalUnsuppressedDigis")
91  process.zdcreco.digiLabelhcal = cms.InputTag("simHcalUnsuppressedDigis")
92  process.hcalnoise.digiCollName = cms.string('simHcalDigis')
93  process.load("RecoLocalCalo.HcalRecProducers.hfprereco_cfi")
94  process.hfprereco.digiLabel = cms.InputTag("simHcalDigis", "HFQIE10DigiCollection")
95  process.localreco += process.hfprereco
96  from RecoLocalCalo.HcalRecProducers.HFPhase1Reconstructor_cfi import hfreco
97  process.globalReplace("hfreco", hfreco)
98  if hasattr(process,'datamixing_step'):
99  process=customise_mixing(process)
100  if hasattr(process,'simHcalTriggerPrimitiveDigis'):
101  process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(True)
102  if hasattr(process,'dqmoffline_step'):
103  process.digiTask.tagHBHE = cms.untracked.InputTag("simHcalDigis")
104  process.digiTask.tagHF = cms.untracked.InputTag("simHcalDigis")
105  process.digiTask.tagHO = cms.untracked.InputTag("simHcalDigis")
106 
107  #add phase1 digi task
108  process.load('DQM.HcalTasks.DigiPhase1Task')
109  process.dqmoffline_step += process.digiPhase1Task
110  process.digiPhase1Task.tagHBHE = cms.untracked.InputTag("simHcalDigis","HBHEQIE11DigiCollection")
111  process.digiPhase1Task.tagHO = cms.untracked.InputTag("simHcalDigis")
112  process.digiPhase1Task.tagHF = cms.untracked.InputTag("simHcalDigis","HFQIE10DigiCollection")
113 
114  if hasattr(process,'validation_step'):
115  process.AllHcalDigisValidation.digiLabel = cms.string("simHcalDigis")
116 
117  return process
118 
#intermediate customization (HCAL 2017, HE and HF upgrades - w/ SiPMs & QIE11)
def customise_Hcal2017
Definition: HCalCustoms.py:73
def load_HcalHardcode
Definition: HCalCustoms.py:25
def customise_DigiToRaw
Definition: HCalCustoms.py:175
def customise_RawToDigi
Definition: HCalCustoms.py:180
def HCalCustoms.customise_Hcal2017Full (   process)

Definition at line 119 of file HCalCustoms.py.

References customise_Hcal2017().

120 def customise_Hcal2017Full(process):
121  process=customise_Hcal2017(process)
122 
123  #use HE phase1 conditions - test SiPM/QIE11
124  process.es_hardcode.useHEUpgrade = cms.bool(True)
125 
126  if hasattr(process,'reconstruction_step'):
127  # Customise HB/HE reco
128  from RecoLocalCalo.HcalRecProducers.HBHEPhase1Reconstructor_cfi import hbheprereco
129  process.globalReplace("hbheprereco", hbheprereco)
130  process.hbheprereco.saveInfos = cms.bool(True)
131  process.hbheprereco.digiLabelQIE8 = cms.InputTag("simHcalDigis")
132  process.hbheprereco.digiLabelQIE11 = cms.InputTag("simHcalDigis", "HBHEQIE11DigiCollection")
133 
134  if hasattr(process,'simHcalTriggerPrimitiveDigis'):
135  process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(True)
136 
137  return process
def customise_Hcal2017
Definition: HCalCustoms.py:73
def customise_Hcal2017Full
Definition: HCalCustoms.py:119
def HCalCustoms.customise_HcalPhase0 (   process)

Definition at line 3 of file HCalCustoms.py.

References customise_Sim(), and customise_Validation().

3 
4 def customise_HcalPhase0(process):
5  process.load("CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
6 
7  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
8  process.mix.digitizers.hcal.TestNumbering=True
9 
10  process.es_hardcode.HEreCalibCutoff = cms.double(20.) #for aging
11 
12  process.es_hardcode.toGet = cms.untracked.vstring(
13  'GainWidths',
14  'RespCorrs'
15  )
16 
17 
18  if hasattr(process,'g4SimHits'):
19  process=customise_Sim(process)
20  if hasattr(process,'validation_step'):
21  process=customise_Validation(process)
22 
23  return process
24 
#common stuff
def customise_Validation
Definition: HCalCustoms.py:232
def customise_HcalPhase0
Definition: HCalCustoms.py:3
def customise_Sim
Definition: HCalCustoms.py:170
def HCalCustoms.customise_HcalPhase1 (   process)

Definition at line 138 of file HCalCustoms.py.

References customise_condOverRides(), customise_Digi(), customise_DigiToRaw(), customise_DQM(), customise_harvesting(), customise_RawToDigi(), customise_Reco(), customise_Sim(), customise_Validation(), and load_HcalHardcode().

Referenced by combinedCustoms.cust_2019().

139 def customise_HcalPhase1(process):
140  process=load_HcalHardcode(process)
141 
142  process.es_hardcode.HEreCalibCutoff = cms.double(100.) #for aging
143  process.es_hardcode.useHBUpgrade = cms.bool(True)
144  process.es_hardcode.useHEUpgrade = cms.bool(True)
145  process.es_hardcode.useHFUpgrade = cms.bool(True)
146 
147  if hasattr(process,'g4SimHits'):
148  process=customise_Sim(process)
149  if hasattr(process,'DigiToRaw'):
150  process=customise_DigiToRaw(process)
151  if hasattr(process,'RawToDigi'):
152  process=customise_RawToDigi(process)
153  if hasattr(process,'digitisation_step'):
154  process=customise_Digi(process)
155  if hasattr(process,'reconstruction_step'):
156  process=customise_Reco(process)
157  if hasattr(process,'dqmoffline_step'):
158  process=customise_DQM(process)
159  if hasattr(process,'dqmHarvesting'):
160  process=customise_harvesting(process)
161  if hasattr(process,'validation_step'):
162  process=customise_Validation(process)
163  if hasattr(process,'simHcalTriggerPrimitiveDigis'):
164  process.simHcalTriggerPrimitiveDigis.upgradeHF = cms.bool(True)
165  process.simHcalTriggerPrimitiveDigis.upgradeHE = cms.bool(True)
166  process.simHcalTriggerPrimitiveDigis.upgradeHB = cms.bool(True)
167  process=customise_condOverRides(process)
168  return process
169 
def customise_Validation
Definition: HCalCustoms.py:232
def customise_harvesting
Definition: HCalCustoms.py:229
def customise_DQM
Definition: HCalCustoms.py:215
def load_HcalHardcode
Definition: HCalCustoms.py:25
def customise_HcalPhase1
Definition: HCalCustoms.py:138
def customise_Sim
Definition: HCalCustoms.py:170
def customise_DigiToRaw
Definition: HCalCustoms.py:175
def customise_RawToDigi
Definition: HCalCustoms.py:180
def customise_Digi
Definition: HCalCustoms.py:185
def customise_Reco
Definition: HCalCustoms.py:207
def customise_condOverRides
Definition: HCalCustoms.py:238
def HCalCustoms.customise_mixing (   process)

Definition at line 241 of file HCalCustoms.py.

242 def customise_mixing(process):
243  process.mixData.HBHEPileInputTag = cms.InputTag("simHcalUnsuppressedDigis")
244  process.mixData.HOPileInputTag = cms.InputTag("simHcalUnsuppressedDigis")
245  process.mixData.HFPileInputTag = cms.InputTag("simHcalUnsuppressedDigis")
246  process.mixData.QIE10PileInputTag = cms.InputTag("simHcalUnsuppressedDigis","HFQIE10DigiCollection")
247  process.mixData.QIE11PileInputTag = cms.InputTag("simHcalUnsuppressedDigis","HBHEQIE11DigiCollection")
248  return process
def customise_mixing
Definition: HCalCustoms.py:241
def HCalCustoms.customise_RawToDigi (   process)

Definition at line 180 of file HCalCustoms.py.

Referenced by customise_Hcal2017(), and customise_HcalPhase1().

181 def customise_RawToDigi(process):
182  process.raw2digi_step.remove(process.hcalDigis)
183 
184  return process
def customise_RawToDigi
Definition: HCalCustoms.py:180
def HCalCustoms.customise_Reco (   process)

Definition at line 207 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

208 def customise_Reco(process):
209  # not sure why these are missing - but need to investigate later
210  process.reconstruction_step.remove(process.castorreco)
211  process.reconstruction_step.remove(process.CastorTowerReco)
212  process.reconstruction_step.remove(process.ak7CastorJets)
213  process.reconstruction_step.remove(process.ak7CastorJetID)
214  return process
def customise_Reco
Definition: HCalCustoms.py:207
def HCalCustoms.customise_Sim (   process)

Definition at line 170 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

171 def customise_Sim(process):
172  process.g4SimHits.HCalSD.TestNumberingScheme = True
173 
174  return process
def customise_Sim
Definition: HCalCustoms.py:170
def HCalCustoms.customise_Validation (   process)

Definition at line 232 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

233 def customise_Validation(process):
234  process.validation_step.remove(process.AllHcalDigisValidation)
235  process.validation_step.remove(process.RecHitsValidation)
236  process.validation_step.remove(process.globalhitsanalyze)
237  return process
def customise_Validation
Definition: HCalCustoms.py:232
def HCalCustoms.load_HcalHardcode (   process)

Definition at line 25 of file HCalCustoms.py.

Referenced by customise_Hcal2016(), customise_Hcal2017(), and customise_HcalPhase1().

25 
26 def load_HcalHardcode(process):
27  process.load("CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
28  process.es_hardcode.toGet = cms.untracked.vstring(
29  'GainWidths',
30  'MCParams',
31  'RecoParams',
32  'RespCorrs',
33  'QIEData',
34  'QIETypes',
35  'Gains',
36  'Pedestals',
37  'PedestalWidths',
38  'ChannelQuality',
39  'ZSThresholds',
40  'TimeCorrs',
41  'LUTCorrs',
42  'LutMetadata',
43  'L1TriggerObjects',
44  'PFCorrs',
45  'ElectronicsMap',
46  'FrontEndMap',
47  'CovarianceMatrices',
48  'SiPMParameters',
49  'SiPMCharacteristics',
50  'TPChannelParameters',
51  'TPParameters',
52  'FlagHFDigiTimeParams',
53  )
54 
55  # Special Upgrade trick (if absent - regular case assumed)
56  process.es_hardcode.GainWidthsForTrigPrims = cms.bool(True)
57 
58  return process
59 
#intermediate customization (HF 2016 upgrades)
def load_HcalHardcode
Definition: HCalCustoms.py:25