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
 process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi") More...
 
def customise_harvesting
 
def customise_HcalPhase0
 
def customise_HcalPhase1
 
def customise_RawToDigi
 
def customise_Reco
 
def customise_Sim
 
def customise_Validation
 

Function Documentation

def HCalCustoms.customise_condOverRides (   process)

Definition at line 243 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

244 def customise_condOverRides(process):
245  return process
def customise_condOverRides
Definition: HCalCustoms.py:243
def HCalCustoms.customise_Digi (   process)

Definition at line 110 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

111 def customise_Digi(process):
112  if hasattr(process,'mix'):
113  process.mix.digitizers.hcal.HBHEUpgradeQIE = True
114  process.mix.digitizers.hcal.hb.siPMCells = cms.vint32([1])
115  process.mix.digitizers.hcal.hb.photoelectronsToAnalog = cms.vdouble([10.]*16)
116  process.mix.digitizers.hcal.hb.pixels = cms.int32(4500*4*2)
117  process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*16)
118  process.mix.digitizers.hcal.he.pixels = cms.int32(4500*4*2)
119  process.mix.digitizers.hcal.HFUpgradeQIE = True
120  process.mix.digitizers.hcal.HcalReLabel.RelabelHits=cms.untracked.bool(True)
121 
122  if hasattr(process,'HcalTPGCoderULUT'):
123  process.HcalTPGCoderULUT.hcalTopologyConstants.mode=cms.string('HcalTopologyMode::SLHC')
124  process.HcalTPGCoderULUT.hcalTopologyConstants.maxDepthHB=cms.int32(3)
125  process.HcalTPGCoderULUT.hcalTopologyConstants.maxDepthHE=cms.int32(5)
126 
127  if hasattr(process,'simHcalDigis'):
128  process.simHcalDigis.useConfigZSvalues=cms.int32(1)
129  process.simHcalDigis.HBlevel=cms.int32(16)
130  process.simHcalDigis.HElevel=cms.int32(16)
131  process.simHcalDigis.HOlevel=cms.int32(16)
132  process.simHcalDigis.HFlevel=cms.int32(16)
133 
134  process.digitisation_step.remove(process.simHcalTriggerPrimitiveDigis)
135  process.digitisation_step.remove(process.simHcalTTPDigis)
136 
137  return process
def customise_Digi
Definition: HCalCustoms.py:110
def HCalCustoms.customise_DigiToRaw (   process)

Definition at line 100 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

101 def customise_DigiToRaw(process):
102  process.digi2raw_step.remove(process.hcalRawData)
103 
104  return process
def customise_DigiToRaw
Definition: HCalCustoms.py:100
def HCalCustoms.customise_DQM (   process)

process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")

Definition at line 218 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

219 def customise_DQM(process):
220  process.dqmoffline_step.remove(process.hcalDigiMonitor)
221  process.dqmoffline_step.remove(process.hcalDeadCellMonitor)
222  process.dqmoffline_step.remove(process.hcalBeamMonitor)
223  process.dqmoffline_step.remove(process.hcalRecHitMonitor)
224  process.dqmoffline_step.remove(process.hcalDetDiagNoiseMonitor)
225  process.dqmoffline_step.remove(process.hcalNoiseMonitor)
226  process.dqmoffline_step.remove(process.RecHitsDQMOffline)
227  process.dqmoffline_step.remove(process.zdcMonitor)
228  process.dqmoffline_step.remove(process.hcalMonitor)
229  process.dqmoffline_step.remove(process.hcalHotCellMonitor)
230  process.dqmoffline_step.remove(process.hcalRawDataMonitor)
231  process.ExoticaDQM.JetIDParams.hbheRecHitsColl=cms.InputTag("hbheUpgradeReco")
232  process.ExoticaDQM.JetIDParams.hfRecHitsColl=cms.InputTag("hfUpgradeReco")
233  return process
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def HCalCustoms.customise_harvesting (   process)

Definition at line 234 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

235 def customise_harvesting(process):
236  return process
def customise_harvesting
Definition: HCalCustoms.py:234
def HCalCustoms.customise_HcalPhase0 (   process)

Definition at line 3 of file HCalCustoms.py.

References customise_Sim(), and customise_Validation().

Referenced by combinedCustoms.cust_2017().

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.HcalReLabel.RelabelHits=cms.untracked.bool(True)
9  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta1 = cms.untracked.vint32(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
10  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta16 = cms.untracked.vint32(1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3)
11  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta17 = cms.untracked.vint32(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
12  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta18 = cms.untracked.vint32(1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
13  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta19 = cms.untracked.vint32(1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2)
14  process.mix.digitizers.hcal.HcalReLabel.RelabelRules.Eta27 = cms.untracked.vint32(1,1,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3)
15 
16  process.es_hardcode.HcalReLabel.RelabelHits = cms.untracked.bool(True)
17  process.es_hardcode.HcalReLabel.RelabelRules.Eta1 = cms.untracked.vint32(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
18  process.es_hardcode.HcalReLabel.RelabelRules.Eta16 = cms.untracked.vint32(1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3)
19  process.es_hardcode.HcalReLabel.RelabelRules.Eta17 = cms.untracked.vint32(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
20  process.es_hardcode.HcalReLabel.RelabelRules.Eta18 = cms.untracked.vint32(1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2)
21  process.es_hardcode.HcalReLabel.RelabelRules.Eta19 = cms.untracked.vint32(1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2)
22  process.es_hardcode.HcalReLabel.RelabelRules.Eta27 = cms.untracked.vint32(1,1,1,1,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3)
23  process.es_hardcode.HEreCalibCutoff = cms.double(20.) #for aging
24 
25  process.es_hardcode.toGet = cms.untracked.vstring(
26  'GainWidths',
27  'RespCorrs'
28  )
29 
30 
31  if hasattr(process,'g4SimHits'):
32  process=customise_Sim(process)
33  if hasattr(process,'validation_step'):
34  process=customise_Validation(process)
35 
36  return process
def customise_Validation
Definition: HCalCustoms.py:237
def customise_HcalPhase0
Definition: HCalCustoms.py:3
def customise_Sim
Definition: HCalCustoms.py:95
def HCalCustoms.customise_HcalPhase1 (   process)

Definition at line 37 of file HCalCustoms.py.

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

Referenced by combinedCustoms.cust_2019().

37 
38 def customise_HcalPhase1(process):
39  #common stuff
40  process.load("CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
41  process.es_hardcode.toGet = cms.untracked.vstring(
42  'GainWidths',
43  'MCParams',
44  'RecoParams',
45  'RespCorrs',
46  'QIEData',
47  'Gains',
48  'Pedestals',
49  'PedestalWidths',
50  'ChannelQuality',
51  'ZSThresholds',
52  'TimeCorrs',
53  'LUTCorrs',
54  'LutMetadata',
55  'L1TriggerObjects',
56  'PFCorrs',
57  'ElectronicsMap',
58  'CholeskyMatrices',
59  'CovarianceMatrices'
60  )
61 
62  process.es_hardcode.hcalTopologyConstants.mode=cms.string('HcalTopologyMode::SLHC')
63  process.es_hardcode.hcalTopologyConstants.maxDepthHB=cms.int32(3)
64  process.es_hardcode.hcalTopologyConstants.maxDepthHB=cms.int32(3)
65  process.es_hardcode.hcalTopologyConstants.maxDepthHE=cms.int32(5)
66  process.es_hardcode.HcalReLabel.RelabelHits=cms.untracked.bool(True)
67  # Special Upgrade trick (if absent - regular case assumed)
68  process.es_hardcode.GainWidthsForTrigPrims = cms.bool(True)
69  process.es_hardcode.HEreCalibCutoff = cms.double(100.) #for aging
70 
71  process.hcalTopologyIdeal.hcalTopologyConstants.mode=cms.string('HcalTopologyMode::SLHC')
72  process.hcalTopologyIdeal.hcalTopologyConstants.maxDepthHB=cms.int32(3)
73  process.hcalTopologyIdeal.hcalTopologyConstants.maxDepthHE=cms.int32(5)
74 
75 
76  if hasattr(process,'g4SimHits'):
77  process=customise_Sim(process)
78  if hasattr(process,'DigiToRaw'):
79  process=customise_DigiToRaw(process)
80  if hasattr(process,'RawToDigi'):
81  process=customise_RawToDigi(process)
82  if hasattr(process,'digitisation_step'):
83  process=customise_Digi(process)
84  if hasattr(process,'reconstruction_step'):
85  process=customise_Reco(process)
86  if hasattr(process,'dqmoffline_step'):
87  process=customise_DQM(process)
88  if hasattr(process,'dqmHarvesting'):
89  process=customise_harvesting(process)
90  if hasattr(process,'validation_step'):
91  process=customise_Validation(process)
92  process=customise_condOverRides(process)
93  return process
94 
def customise_Validation
Definition: HCalCustoms.py:237
def customise_harvesting
Definition: HCalCustoms.py:234
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:218
def customise_HcalPhase1
Definition: HCalCustoms.py:37
def customise_Sim
Definition: HCalCustoms.py:95
def customise_DigiToRaw
Definition: HCalCustoms.py:100
def customise_RawToDigi
Definition: HCalCustoms.py:105
def customise_Digi
Definition: HCalCustoms.py:110
def customise_Reco
Definition: HCalCustoms.py:138
def customise_condOverRides
Definition: HCalCustoms.py:243
def HCalCustoms.customise_RawToDigi (   process)

Definition at line 105 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

106 def customise_RawToDigi(process):
107  process.raw2digi_step.remove(process.hcalDigis)
108 
109  return process
def customise_RawToDigi
Definition: HCalCustoms.py:105
def HCalCustoms.customise_Reco (   process)

Definition at line 138 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

139 def customise_Reco(process):
140  #--- CaloTowers maker input customization
141  process.towerMaker.hfInput = cms.InputTag("hfUpgradeReco")
142  process.towerMaker.hbheInput = cms.InputTag("hbheUpgradeReco")
143  process.towerMakerPF.hfInput = cms.InputTag("hfUpgradeReco")
144  process.towerMakerPF.hbheInput = cms.InputTag("hbheUpgradeReco")
145  process.towerMakerWithHO.hfInput = cms.InputTag("hfUpgradeReco")
146  process.towerMakerWithHO.hbheInput = cms.InputTag("hbheUpgradeReco")
147  process.particleFlowRecHitHCAL.hcalRecHitsHBHE = cms.InputTag("hbheUpgradeReco")
148  process.particleFlowRecHitHCAL.hcalRecHitsHF = cms.InputTag("hfUpgradeReco")
149  process.ak4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
150  process.ak4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
151  process.ak7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
152  process.ak7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
153  process.ca4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
154  process.ca4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
155  process.ca6JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
156  process.ca6JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
157  process.gk5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
158  process.gk5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
159  process.gk7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
160  process.gk7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
161  process.ic5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
162  process.ic5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
163  process.ic7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
164  process.ic7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
165  process.kt4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
166  process.kt4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
167  process.kt6JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
168  process.kt6JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
169  process.sc5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
170  process.sc5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
171  process.sc7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
172  process.sc7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
173  process.hfEMClusters.hits = cms.InputTag("hfUpgradeReco")
174  process.caloRecoTauProducer.TrackAssociatorParameters.HBHERecHitCollectionLabel = cms.InputTag("hbheUpgradeReco")
175  process.caloRecoTauProducer.HFRecHitCollection=cms.InputTag("hfUpgradeReco")
176 
177  process.muons1stStep.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
178  process.muons1stStep.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
179  process.muons1stStep.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
180 
181  process.muonsFromCosmics.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
182  process.muonsFromCosmics.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
183  process.muonsFromCosmics.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
184  process.muonsFromCosmics1Leg.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
185  process.muonsFromCosmics1Leg.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
186  process.muonsFromCosmics1Leg.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
187 
188  process.interestingTrackEcalDetIds.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
189 
190  process.hcalnoise.recHitCollName=cms.string('hbheUpgradeReco')
191  process.reducedHcalRecHits.hfTag=cms.InputTag("hfUpgradeReco")
192  process.reducedHcalRecHits.hbheTag=cms.InputTag("hbheUpgradeReco")
193 
194  process.caloRecoTauProducer.HBHERecHitCollection=cms.InputTag("hbheUpgradeReco")
195  process.caloRecoTauProducer.HFRecHitCollection=cms.InputTag("hfUpgradeReco")
196 
197  process.load("RecoLocalCalo.HcalRecProducers.HBHEUpgradeReconstructor_cfi")
process.load("RecoLocalCalo.HcalRecProducers.HFUpgradeReconstructor_cfi")
def customise_Reco
Definition: HCalCustoms.py:138
def HCalCustoms.customise_Sim (   process)

Definition at line 95 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

95 
96 def customise_Sim(process):
97  process.g4SimHits.HCalSD.TestNumberingScheme = True
98 
99  return process
def customise_Sim
Definition: HCalCustoms.py:95
def HCalCustoms.customise_Validation (   process)

Definition at line 237 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

238 def customise_Validation(process):
239  process.validation_step.remove(process.AllHcalDigisValidation)
240  process.validation_step.remove(process.RecHitsValidation)
241  process.validation_step.remove(process.globalhitsanalyze)
242  return process
def customise_Validation
Definition: HCalCustoms.py:237