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

Referenced by customise_HcalPhase1().

220 def customise_condOverRides(process):
221  return process
def customise_condOverRides
Definition: HCalCustoms.py:219
def HCalCustoms.customise_Digi (   process)

Definition at line 91 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

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

Definition at line 81 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

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

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

Definition at line 194 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

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

Definition at line 210 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

211 def customise_harvesting(process):
212  return process
def customise_harvesting
Definition: HCalCustoms.py:210
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.HcalReLabel.RelabelHits = cms.untracked.bool(True)
11  process.es_hardcode.HEreCalibCutoff = cms.double(20.) #for aging
12 
13  process.es_hardcode.toGet = cms.untracked.vstring(
14  'GainWidths',
15  'RespCorrs'
16  )
17 
18 
19  if hasattr(process,'g4SimHits'):
20  process=customise_Sim(process)
21  if hasattr(process,'validation_step'):
22  process=customise_Validation(process)
23 
24  return process
def customise_Validation
Definition: HCalCustoms.py:213
def customise_HcalPhase0
Definition: HCalCustoms.py:3
def customise_Sim
Definition: HCalCustoms.py:76
def HCalCustoms.customise_HcalPhase1 (   process)

Definition at line 25 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().

25 
26 def customise_HcalPhase1(process):
27  #common stuff
28  process.load("CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
29  process.es_hardcode.toGet = cms.untracked.vstring(
30  'GainWidths',
31  'MCParams',
32  'RecoParams',
33  'RespCorrs',
34  'QIEData',
35  'QIETypes',
36  'Gains',
37  'Pedestals',
38  'PedestalWidths',
39  'ChannelQuality',
40  'ZSThresholds',
41  'TimeCorrs',
42  'LUTCorrs',
43  'LutMetadata',
44  'L1TriggerObjects',
45  'PFCorrs',
46  'ElectronicsMap',
47  'CholeskyMatrices',
48  'CovarianceMatrices'
49  )
50 
51  process.es_hardcode.HcalReLabel.RelabelHits=cms.untracked.bool(True)
52  # Special Upgrade trick (if absent - regular case assumed)
53  process.es_hardcode.GainWidthsForTrigPrims = cms.bool(True)
54  process.es_hardcode.HEreCalibCutoff = cms.double(100.) #for aging
55 
56 
57  if hasattr(process,'g4SimHits'):
58  process=customise_Sim(process)
59  if hasattr(process,'DigiToRaw'):
60  process=customise_DigiToRaw(process)
61  if hasattr(process,'RawToDigi'):
62  process=customise_RawToDigi(process)
63  if hasattr(process,'digitisation_step'):
64  process=customise_Digi(process)
65  if hasattr(process,'reconstruction_step'):
66  process=customise_Reco(process)
67  if hasattr(process,'dqmoffline_step'):
68  process=customise_DQM(process)
69  if hasattr(process,'dqmHarvesting'):
70  process=customise_harvesting(process)
71  if hasattr(process,'validation_step'):
72  process=customise_Validation(process)
73  process=customise_condOverRides(process)
74  return process
75 
def customise_Validation
Definition: HCalCustoms.py:213
def customise_harvesting
Definition: HCalCustoms.py:210
def customise_DQM
process.load("RecoLocalCalo.HcalRecProducers.HcalSimpleReconstructor_ho_cfi")
Definition: HCalCustoms.py:194
def customise_HcalPhase1
Definition: HCalCustoms.py:25
def customise_Sim
Definition: HCalCustoms.py:76
def customise_DigiToRaw
Definition: HCalCustoms.py:81
def customise_RawToDigi
Definition: HCalCustoms.py:86
def customise_Digi
Definition: HCalCustoms.py:91
def customise_Reco
Definition: HCalCustoms.py:114
def customise_condOverRides
Definition: HCalCustoms.py:219
def HCalCustoms.customise_RawToDigi (   process)

Definition at line 86 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

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

Definition at line 114 of file HCalCustoms.py.

Referenced by customise_HcalPhase1().

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

Definition at line 76 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

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

Definition at line 213 of file HCalCustoms.py.

Referenced by customise_HcalPhase0(), and customise_HcalPhase1().

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