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 217 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

218 def customise_condOverRides(process):
219  return process
def customise_condOverRides
Definition: HCalCustoms.py:217
def HCalCustoms.customise_Digi (   process)

Definition at line 89 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

89 
90 def customise_Digi(process):
91  if hasattr(process,'mix'):
92  process.mix.digitizers.hcal.HBHEUpgradeQIE = True
93  process.mix.digitizers.hcal.hb.siPMCells = cms.vint32([1])
94  process.mix.digitizers.hcal.hb.photoelectronsToAnalog = cms.vdouble([10.]*16)
95  process.mix.digitizers.hcal.hb.pixels = cms.int32(4500*4*2)
96  process.mix.digitizers.hcal.he.photoelectronsToAnalog = cms.vdouble([10.]*16)
97  process.mix.digitizers.hcal.he.pixels = cms.int32(4500*4*2)
98  process.mix.digitizers.hcal.HFUpgradeQIE = True
99  process.mix.digitizers.hcal.HcalReLabel.RelabelHits=cms.untracked.bool(True)
100 
101  if hasattr(process,'simHcalDigis'):
102  process.simHcalDigis.useConfigZSvalues=cms.int32(1)
103  process.simHcalDigis.HBlevel=cms.int32(16)
104  process.simHcalDigis.HElevel=cms.int32(16)
105  process.simHcalDigis.HOlevel=cms.int32(16)
106  process.simHcalDigis.HFlevel=cms.int32(16)
107 
108  process.digitisation_step.remove(process.simHcalTriggerPrimitiveDigis)
109  process.digitisation_step.remove(process.simHcalTTPDigis)
110 
111  return process
def customise_Digi
Definition: HCalCustoms.py:89
def HCalCustoms.customise_DigiToRaw (   process)

Definition at line 79 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

79 
80 def customise_DigiToRaw(process):
81  process.digi2raw_step.remove(process.hcalRawData)
82 
83  return process
def customise_DigiToRaw
Definition: HCalCustoms.py:79
def HCalCustoms.customise_DQM (   process)

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

Definition at line 192 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

193 def customise_DQM(process):
194  process.dqmoffline_step.remove(process.hcalDigiMonitor)
195  process.dqmoffline_step.remove(process.hcalDeadCellMonitor)
196  process.dqmoffline_step.remove(process.hcalBeamMonitor)
197  process.dqmoffline_step.remove(process.hcalRecHitMonitor)
198  process.dqmoffline_step.remove(process.hcalDetDiagNoiseMonitor)
199  process.dqmoffline_step.remove(process.hcalNoiseMonitor)
200  process.dqmoffline_step.remove(process.RecHitsDQMOffline)
201  process.dqmoffline_step.remove(process.zdcMonitor)
202  process.dqmoffline_step.remove(process.hcalMonitor)
203  process.dqmoffline_step.remove(process.hcalHotCellMonitor)
204  process.dqmoffline_step.remove(process.hcalRawDataMonitor)
205  process.ExoticaDQM.JetIDParams.hbheRecHitsColl=cms.InputTag("hbheUpgradeReco")
206  process.ExoticaDQM.JetIDParams.hfRecHitsColl=cms.InputTag("hfUpgradeReco")
207  return process
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:192
def HCalCustoms.customise_harvesting (   process)

Definition at line 208 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

209 def customise_harvesting(process):
210  return process
def customise_harvesting
Definition: HCalCustoms.py:208
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.HcalReLabel.RelabelHits=cms.untracked.bool(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
def customise_Validation
Definition: HCalCustoms.py:211
def customise_HcalPhase0
Definition: HCalCustoms.py:3
def customise_Sim
Definition: HCalCustoms.py:74
def HCalCustoms.customise_HcalPhase1 (   process)

Definition at line 24 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(), and combinedCustoms.cust_2023HGCal_common().

24 
25 def customise_HcalPhase1(process):
26  #common stuff
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  'CholeskyMatrices',
47  'CovarianceMatrices'
48  )
49 
50  # Special Upgrade trick (if absent - regular case assumed)
51  process.es_hardcode.GainWidthsForTrigPrims = cms.bool(True)
52  process.es_hardcode.HEreCalibCutoff = cms.double(100.) #for aging
53 
54 
55  if hasattr(process,'g4SimHits'):
56  process=customise_Sim(process)
57  if hasattr(process,'DigiToRaw'):
58  process=customise_DigiToRaw(process)
59  if hasattr(process,'RawToDigi'):
60  process=customise_RawToDigi(process)
61  if hasattr(process,'digitisation_step'):
62  process=customise_Digi(process)
63  if hasattr(process,'reconstruction_step'):
64  process=customise_Reco(process)
65  if hasattr(process,'dqmoffline_step'):
66  process=customise_DQM(process)
67  if hasattr(process,'dqmHarvesting'):
68  process=customise_harvesting(process)
69  if hasattr(process,'validation_step'):
70  process=customise_Validation(process)
71  process=customise_condOverRides(process)
72  return process
73 
def customise_Validation
Definition: HCalCustoms.py:211
def customise_harvesting
Definition: HCalCustoms.py:208
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:192
def customise_HcalPhase1
Definition: HCalCustoms.py:24
def customise_Sim
Definition: HCalCustoms.py:74
def customise_DigiToRaw
Definition: HCalCustoms.py:79
def customise_RawToDigi
Definition: HCalCustoms.py:84
def customise_Digi
Definition: HCalCustoms.py:89
def customise_Reco
Definition: HCalCustoms.py:112
def customise_condOverRides
Definition: HCalCustoms.py:217
def HCalCustoms.customise_RawToDigi (   process)

Definition at line 84 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

84 
85 def customise_RawToDigi(process):
86  process.raw2digi_step.remove(process.hcalDigis)
87 
88  return process
def customise_RawToDigi
Definition: HCalCustoms.py:84
def HCalCustoms.customise_Reco (   process)

Definition at line 112 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

113 def customise_Reco(process):
114  #--- CaloTowers maker input customization
115  process.towerMaker.hfInput = cms.InputTag("hfUpgradeReco")
116  process.towerMaker.hbheInput = cms.InputTag("hbheUpgradeReco")
117  process.towerMakerPF.hfInput = cms.InputTag("hfUpgradeReco")
118  process.towerMakerPF.hbheInput = cms.InputTag("hbheUpgradeReco")
119  process.towerMakerWithHO.hfInput = cms.InputTag("hfUpgradeReco")
120  process.towerMakerWithHO.hbheInput = cms.InputTag("hbheUpgradeReco")
121  process.particleFlowRecHitHCAL.hcalRecHitsHBHE = cms.InputTag("hbheUpgradeReco")
122  process.particleFlowRecHitHCAL.hcalRecHitsHF = cms.InputTag("hfUpgradeReco")
123  process.ak4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
124  process.ak4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
125  process.ak7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
126  process.ak7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
127  process.ca4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
128  process.ca4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
129  process.ca6JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
130  process.ca6JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
131  process.gk5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
132  process.gk5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
133  process.gk7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
134  process.gk7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
135  process.ic5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
136  process.ic5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
137  process.ic7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
138  process.ic7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
139  process.kt4JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
140  process.kt4JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
141  process.kt6JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
142  process.kt6JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
143  process.sc5JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
144  process.sc5JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
145  process.sc7JetID.hfRecHitsColl = cms.InputTag("hfUpgradeReco")
146  process.sc7JetID.hbheRecHitsColl = cms.InputTag("hbheUpgradeReco")
147  process.hfEMClusters.hits = cms.InputTag("hfUpgradeReco")
148  process.caloRecoTauProducer.TrackAssociatorParameters.HBHERecHitCollectionLabel = cms.InputTag("hbheUpgradeReco")
149  process.caloRecoTauProducer.HFRecHitCollection=cms.InputTag("hfUpgradeReco")
150 
151  process.muons1stStep.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
152  process.muons1stStep.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
153  process.muons1stStep.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
154 
155  process.muonsFromCosmics.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
156  process.muonsFromCosmics.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
157  process.muonsFromCosmics.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
158  process.muonsFromCosmics1Leg.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
159  process.muonsFromCosmics1Leg.CaloExtractorPSet.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
160  process.muonsFromCosmics1Leg.JetExtractorPSet.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
161 
162  process.interestingTrackEcalDetIds.TrackAssociatorParameters.HBHERecHitCollectionLabel=cms.InputTag("hbheUpgradeReco")
163 
164  process.hcalnoise.recHitCollName=cms.string('hbheUpgradeReco')
165  process.reducedHcalRecHits.hfTag=cms.InputTag("hfUpgradeReco")
166  process.reducedHcalRecHits.hbheTag=cms.InputTag("hbheUpgradeReco")
167 
168  process.caloRecoTauProducer.HBHERecHitCollection=cms.InputTag("hbheUpgradeReco")
169  process.caloRecoTauProducer.HFRecHitCollection=cms.InputTag("hfUpgradeReco")
170 
171  process.load("RecoLocalCalo.HcalRecProducers.HBHEUpgradeReconstructor_cfi")
process.load("RecoLocalCalo.HcalRecProducers.HFUpgradeReconstructor_cfi")
def customise_Reco
Definition: HCalCustoms.py:112
def HCalCustoms.customise_Sim (   process)

Definition at line 74 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

74 
75 def customise_Sim(process):
76  process.g4SimHits.HCalSD.TestNumberingScheme = True
77 
78  return process
def customise_Sim
Definition: HCalCustoms.py:74
def HCalCustoms.customise_Validation (   process)

Definition at line 211 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

212 def customise_Validation(process):
213  process.validation_step.remove(process.AllHcalDigisValidation)
214  process.validation_step.remove(process.RecHitsValidation)
215  process.validation_step.remove(process.globalhitsanalyze)
216  return process
def customise_Validation
Definition: HCalCustoms.py:211