CMS 3D CMS Logo

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

Functions

def ageEcal
 
def ageHcal
 
def agePixel
 
def customise_aging_100
 
def customise_aging_1000
 
def customise_aging_200
 
def customise_aging_300
 
def customise_aging_3000
 
def customise_aging_400
 
def customise_aging_500
 
def customise_aging_600
 
def customise_aging_700
 
def customise_aging_ecalonly_1000
 
def customise_aging_ecalonly_300
 
def customise_aging_ecalonly_3000
 
def customise_aging_newpixel_1000
 
def customise_aging_newpixel_3000
 
def ecal_complete_aging
 
def ecal_complete_aging_1000
 
def ecal_complete_aging_300
 
def ecal_complete_aging_3000
 
def hf_complete_aging
 
def turn_off_HE_aging
 
def turn_off_HF_aging
 
def turn_off_Pixel_aging
 
def turn_on_Pixel_aging_1000
 

Function Documentation

def aging.ageEcal (   process,
  lumi 
)

Definition at line 42 of file aging.py.

Referenced by combinedCustoms.ageEcal(), customise_aging_100(), customise_aging_1000(), customise_aging_200(), customise_aging_300(), customise_aging_3000(), customise_aging_400(), customise_aging_500(), customise_aging_600(), customise_aging_700(), customise_aging_ecalonly_1000(), customise_aging_ecalonly_300(), customise_aging_ecalonly_3000(), customise_aging_newpixel_1000(), and customise_aging_newpixel_3000().

42 
43 def ageEcal(process,lumi):
44 
45  instLumi=1.0e34
46  if lumi>=1000:
47  instLumi=5.0e34
48 
49  if hasattr(process,'g4SimHits'):
50  #these lines need to be further activiated by tuning on 'complete' aging for ecal
51  process.g4SimHits.ECalSD.InstLuminosity = cms.double(instLumi)
52  process.g4SimHits.ECalSD.DelivLuminosity = cms.double(float(lumi))
53  return process
def ageEcal
Definition: aging.py:42
def aging.ageHcal (   process,
  lumi 
)

Definition at line 18 of file aging.py.

Referenced by combinedCustoms.ageHcal(), customise_aging_100(), customise_aging_1000(), customise_aging_200(), customise_aging_300(), customise_aging_3000(), customise_aging_400(), customise_aging_500(), customise_aging_600(), customise_aging_700(), customise_aging_newpixel_1000(), and customise_aging_newpixel_3000().

18 
19 def ageHcal(process,lumi):
20 
21  instLumi=1.0e34
22  if lumi>=1000:
23  instLumi=5.0e34
24 
25  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
26  process.mix.digitizers.hcal.DelivLuminosity = cms.double(float(lumi)) # integrated lumi in fb-1
27  process.mix.digitizers.hcal.HEDarkening = cms.bool(True)
28  process.mix.digitizers.hcal.HFDarkening = cms.bool(True)
29 
30  #these lines need to be further activated by tuning on 'complete' aging for HF
31  if hasattr(process,'g4SimHits'):
32  process.g4SimHits.HCalSD.InstLuminosity = cms.double(float(instLumi))
33  process.g4SimHits.HCalSD.DelivLuminosity = cms.double(float(lumi))
34 
35  #recalibration and darkening always together
36  if hasattr(process,'es_hardcode'):
37  process.es_hardcode.HERecalibration = cms.bool(True)
38  process.es_hardcode.HFRecalibration = cms.bool(True)
39  process.es_hardcode.iLumi = cms.double(float(lumi))
40 
41  return process
def ageHcal
Definition: aging.py:18
def aging.agePixel (   process,
  lumi 
)

Definition at line 3 of file aging.py.

Referenced by customise_aging_100(), customise_aging_1000(), customise_aging_200(), customise_aging_300(), customise_aging_3000(), customise_aging_400(), customise_aging_500(), customise_aging_600(), and customise_aging_700().

3 
4 def agePixel(process,lumi):
5  prd=1.0
6  if lumi>299:
7  prd=1.0
8  if lumi>499:
9  prd=1.5
10  if lumi>999:
11  prd=0.
12 
13  # danger - watch for someone turning off pixel aging - if off - leave off
14  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'pixel') and not hasattr(process.mix.digitizers.pixel,'NoAging'):
15  process.mix.digitizers.pixel.PseudoRadDamage = cms.double(float(prd*7.65))
16  process.mix.digitizers.pixel.PseudoRadDamageRadius = cms.double(16.5)
17  return process
def agePixel
Definition: aging.py:3
def aging.customise_aging_100 (   process)

Definition at line 54 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_100().

54 
55 def customise_aging_100(process):
56 
57  process=ageHcal(process,100)
58  process=ageEcal(process,100)
59  process=agePixel(process,100)
60  return process
def agePixel
Definition: aging.py:3
def customise_aging_100
Definition: aging.py:54
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def aging.customise_aging_1000 (   process)

Definition at line 103 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_1000().

104 def customise_aging_1000(process):
105 
106  process=ageHcal(process,1000)
107  process=ageEcal(process,1000)
108  process=agePixel(process,1000)
109  return process
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def customise_aging_1000
Definition: aging.py:103
def aging.customise_aging_200 (   process)

Definition at line 61 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_200().

61 
62 def customise_aging_200(process):
63 
64  process=ageHcal(process,200)
65  process=ageEcal(process,200)
66  process=agePixel(process,200)
67  return process
def agePixel
Definition: aging.py:3
def customise_aging_200
Definition: aging.py:61
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def aging.customise_aging_300 (   process)

Definition at line 68 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_300().

68 
69 def customise_aging_300(process):
70 
71  process=ageHcal(process,300)
72  process=ageEcal(process,300)
73  process=agePixel(process,300)
74  return process
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def customise_aging_300
Definition: aging.py:68
def ageEcal
Definition: aging.py:42
def aging.customise_aging_3000 (   process)

Definition at line 110 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_3000().

111 def customise_aging_3000(process):
112 
113  process=ageHcal(process,3000)
114  process=ageEcal(process,3000)
115  process=agePixel(process,3000)
116  return process
def customise_aging_3000
Definition: aging.py:110
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def aging.customise_aging_400 (   process)

Definition at line 75 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_400().

75 
76 def customise_aging_400(process):
77 
78  process=ageHcal(process,400)
79  process=ageEcal(process,400)
80  process=agePixel(process,400)
81  return process
def customise_aging_400
Definition: aging.py:75
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def aging.customise_aging_500 (   process)

Definition at line 82 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_500().

82 
83 def customise_aging_500(process):
84 
85  process=ageHcal(process,500)
86  process=ageEcal(process,500)
87  process=agePixel(process,500)
88  return process
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def customise_aging_500
Definition: aging.py:82
def ageEcal
Definition: aging.py:42
def aging.customise_aging_600 (   process)

Definition at line 89 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_600().

89 
90 def customise_aging_600(process):
91 
92  process=ageHcal(process,600)
93  process=ageEcal(process,600)
94  process=agePixel(process,600)
95  return process
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def customise_aging_600
Definition: aging.py:89
def ageEcal
Definition: aging.py:42
def aging.customise_aging_700 (   process)

Definition at line 96 of file aging.py.

References ageEcal(), ageHcal(), and agePixel().

Referenced by combinedCustoms.customise_aging_700().

96 
97 def customise_aging_700(process):
98 
99  process=ageHcal(process,700)
100  process=ageEcal(process,700)
101  process=agePixel(process,700)
102  return process
def agePixel
Definition: aging.py:3
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def customise_aging_700
Definition: aging.py:96
def aging.customise_aging_ecalonly_1000 (   process)

Definition at line 122 of file aging.py.

References ageEcal().

Referenced by combinedCustoms.customise_aging_ecalonly_1000().

123 def customise_aging_ecalonly_1000(process):
124 
125  process=ageEcal(process,1000)
126  return process
def customise_aging_ecalonly_1000
Definition: aging.py:122
def ageEcal
Definition: aging.py:42
def aging.customise_aging_ecalonly_300 (   process)

Definition at line 117 of file aging.py.

References ageEcal().

Referenced by combinedCustoms.customise_aging_ecalonly_300().

118 def customise_aging_ecalonly_300(process):
119 
120  process=ageEcal(process,300)
121  return process
def customise_aging_ecalonly_300
Definition: aging.py:117
def ageEcal
Definition: aging.py:42
def aging.customise_aging_ecalonly_3000 (   process)

Definition at line 127 of file aging.py.

References ageEcal().

Referenced by combinedCustoms.customise_aging_ecalonly_3000().

128 def customise_aging_ecalonly_3000(process):
129 
130  process=ageEcal(process,3000)
131  return process
def customise_aging_ecalonly_3000
Definition: aging.py:127
def ageEcal
Definition: aging.py:42
def aging.customise_aging_newpixel_1000 (   process)

Definition at line 132 of file aging.py.

References ageEcal(), and ageHcal().

Referenced by combinedCustoms.customise_aging_newpixel_1000().

133 def customise_aging_newpixel_1000(process):
134 
135  process=ageEcal(process,1000)
136  process=ageHcal(process,1000)
137  return process
def customise_aging_newpixel_1000
Definition: aging.py:132
def ageHcal
Definition: aging.py:18
def ageEcal
Definition: aging.py:42
def aging.customise_aging_newpixel_3000 (   process)

Definition at line 138 of file aging.py.

References ageEcal(), and ageHcal().

Referenced by combinedCustoms.customise_aging_newpixel_3000().

139 def customise_aging_newpixel_3000(process):
140 
141  process=ageEcal(process,3000)
142  process=ageHcal(process,3000)
143  return process
144 
145 #no hcal 3000
def ageHcal
Definition: aging.py:18
def customise_aging_newpixel_3000
Definition: aging.py:138
def ageEcal
Definition: aging.py:42
def aging.ecal_complete_aging (   process)

Definition at line 153 of file aging.py.

Referenced by combinedCustoms.ecal_complete_aging(), ecal_complete_aging_1000(), ecal_complete_aging_300(), and ecal_complete_aging_3000().

154 def ecal_complete_aging(process):
155  if hasattr(process,'g4SimHits'):
156  process.g4SimHits.ECalSD.AgeingWithSlopeLY = cms.untracked.bool(True)
157  if hasattr(process,'ecal_digi_parameters'):
158  process.ecal_digi_parameters.UseLCcorrection = cms.untracked.bool(False)
159  return process
def ecal_complete_aging
Definition: aging.py:153
def aging.ecal_complete_aging_1000 (   process)

Definition at line 225 of file aging.py.

References ecal_complete_aging().

Referenced by combinedCustoms.ecal_complete_aging_1000().

226 def ecal_complete_aging_1000(process):
227  process=ecal_complete_aging(process)
228 
229  if not hasattr(process.GlobalTag,'toGet'):
230  process.GlobalTag.toGet=cms.VPSet()
231  process.GlobalTag.toGet.extend( cms.VPSet(
232  cms.PSet(record = cms.string("EcalPedestalsRcd"),
233  tag = cms.string("EcalPedestals_TL1000_IL5E34_mc"),
234  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
235  ),
236  ## laser D
237  cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
238  tag = cms.string("EcalLaserAPDPNRatios_TL1000_IL5E34_v2_mc"),
239  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
240  ),
241  ## L1 trigger
242  cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
243  tag = cms.string("EcalTPGLinearizationConst_TL1000_IL5E34_v2_mc"),
244  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
245  ),
246  cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
247  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
248  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
249  ),
250  #VPT aging
251  cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
252  tag = cms.string('EcalLinearCorrections_mc'),
253  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
254  )
255  )
256  )
257  return process
258 
def ecal_complete_aging_1000
Definition: aging.py:225
def ecal_complete_aging
Definition: aging.py:153
def aging.ecal_complete_aging_300 (   process)

Definition at line 191 of file aging.py.

References ecal_complete_aging().

Referenced by combinedCustoms.ecal_complete_aging_300().

192 def ecal_complete_aging_300(process):
193  process=ecal_complete_aging(process)
194 
195  if not hasattr(process.GlobalTag,'toGet'):
196  process.GlobalTag.toGet=cms.VPSet()
197  process.GlobalTag.toGet.extend( cms.VPSet(
198  cms.PSet(record = cms.string("EcalPedestalsRcd"),
199  tag = cms.string("EcalPedestals_TL300_IL1E34_mc"),
200  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
201  ),
202  ## laser D
203  cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
204  tag = cms.string("EcalLaserAPDPNRatios_TL300_IL1E34_v2_mc"),
205  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
206  ),
207  ## L1 trigger
208  cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
209  tag = cms.string("EcalTPGLinearizationConst_TL300_IL1E34_v2_mc"),
210  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
211  ),
212  cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
213  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
214  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
215  ),
216  #VPT aging
217  cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
218  tag = cms.string('EcalLinearCorrections_mc'),
219  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
220  )
221  )
222  )
223  return process
224 
def ecal_complete_aging_300
Definition: aging.py:191
def ecal_complete_aging
Definition: aging.py:153
def aging.ecal_complete_aging_3000 (   process)

Definition at line 259 of file aging.py.

References ecal_complete_aging().

Referenced by combinedCustoms.ecal_complete_aging_3000().

260 def ecal_complete_aging_3000(process):
261  process=ecal_complete_aging(process)
262 
263  if not hasattr(process.GlobalTag,'toGet'):
264  process.GlobalTag.toGet=cms.VPSet()
265  process.GlobalTag.toGet.extend( cms.VPSet(
266  cms.PSet(record = cms.string("EcalPedestalsRcd"),
267  tag = cms.string("EcalPedestals_TL3000_IL5E34_mc"),
268  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
269  ),
270  ## laser D
271  cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
272  tag = cms.string("EcalLaserAPDPNRatios_TL3000_IL5E34_v2_mc"),
273  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
274  ),
275  ## L1 trigger
276  cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
277  tag = cms.string("EcalTPGLinearizationConst_TL3000_IL5E34_v2_mc"),
278  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
279  ),
280  cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
281  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
282  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
283  ),
284  #VPT aging
285  cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
286  tag = cms.string('EcalLinearCorrections_mc'),
287  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
288  )
289  )
290  )
291 
292  return process
293 
def ecal_complete_aging_3000
Definition: aging.py:259
def ecal_complete_aging
Definition: aging.py:153
def aging.hf_complete_aging (   process)

Definition at line 146 of file aging.py.

Referenced by combinedCustoms.hf_complete_aging().

147 def hf_complete_aging(process):
148  if hasattr(process,'g4SimHits'):
149  process.g4SimHits.HCalSD.HFDarkening = cms.untracked.bool(True)
150  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
151  process.mix.digitizers.hcal.HFDarkening = cms.untracked.bool(False)
152  return process
def hf_complete_aging
Definition: aging.py:146
def aging.turn_off_HE_aging (   process)

Definition at line 160 of file aging.py.

Referenced by combinedCustoms.turn_off_HE_aging().

161 def turn_off_HE_aging(process):
162  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
163  process.mix.digitizers.hcal.HEDarkening = cms.bool(False)
164  if hasattr(process,'es_hardcode'):
165  process.es_hardcode.HERecalibration = cms.bool(False)
166  return process
def turn_off_HE_aging
Definition: aging.py:160
def aging.turn_off_HF_aging (   process)

Definition at line 167 of file aging.py.

Referenced by combinedCustoms.turn_off_HF_aging().

168 def turn_off_HF_aging(process):
169  if hasattr(process,'g4SimHits'):
170  process.g4SimHits.HCalSD.HFDarkening = cms.untracked.bool(False)
171  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
172  process.mix.digitizers.hcal.HFDarkening = cms.bool(False)
173  if hasattr(process,'es_hardcode'):
174  process.es_hardcode.HFRecalibration = cms.bool(False)
175  return process
def turn_off_HF_aging
Definition: aging.py:167
def aging.turn_off_Pixel_aging (   process)

Definition at line 176 of file aging.py.

Referenced by combinedCustoms.turn_off_Pixel_aging().

177 def turn_off_Pixel_aging(process):
178 
179  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
180  setattr(process.mix.digitizers.pixel,'NoAging',cms.double(1.))
181  process.mix.digitizers.pixel.PseudoRadDamage = cms.double(0.)
182  return process
def turn_off_Pixel_aging
Definition: aging.py:176
def aging.turn_on_Pixel_aging_1000 (   process)

Definition at line 183 of file aging.py.

Referenced by combinedCustoms.turn_on_Pixel_aging_1000().

184 def turn_on_Pixel_aging_1000(process):
185  # just incase we want aging afterall
186  if hasattr(process,'mix') and hasattr(process.mix,'digitizers') and hasattr(process.mix.digitizers,'hcal'):
187  process.mix.digitizers.pixel.PseudoRadDamage = cms.double(1.5)
188  process.mix.digitizers.pixel.PseudoRadDamageRadius = cms.double(4.0)
189 
190  return process
def turn_on_Pixel_aging_1000
Definition: aging.py:183