CMS 3D CMS Logo

Functions

aging Namespace Reference

Functions

def ageEcal
def ageHcal
def agePixel
def customise_aging_1000
def customise_aging_300
def customise_aging_3000
def customise_aging_500
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 reco_aging_hcal_stdgeom
def reco_aging_hcal_stdgeom_1000
def reco_aging_hcal_stdgeom_300
def reco_aging_hcal_stdgeom_3000
def reco_aging_hcal_stdgeom_500
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 33 of file aging.py.

00034                          :
00035 
00036     instLumi=1.0e34
00037     if lumi>=1000:
00038         instLumi=5.0e34
00039         
00040     if hasattr(process,'g4SimHits'):
00041         #these lines need to be further activiated by tuning on 'complete' aging for ecal 
00042         process.g4SimHits.ECalSD.InstLuminosity = cms.double(instLumi)
00043         process.g4SimHits.ECalSD.DelivLuminosity = cms.double(float(lumi))
00044     return process

def aging::ageHcal (   process,
  lumi 
)

Definition at line 20 of file aging.py.

00021                          :
00022 
00023     instLumi=1.0e34
00024     if lumi>=1000:
00025         instLumi=5.0e34
00026 
00027     if hasattr(process,'g4SimHits'):
00028         process.g4SimHits.HCalSD.InstLuminosity = cms.double(float(instLumi))  
00029         process.g4SimHits.HCalSD.DelivLuminosity = cms.double(float(lumi))  # integrated lumi in fb-1
00030         process.g4SimHits.HCalSD.HEDarkening       = cms.bool(True)
00031         process.g4SimHits.HCalSD.HFDarkening       = cms.bool(True)
00032     return process

def aging::agePixel (   process,
  lumi 
)

Definition at line 3 of file aging.py.

00004                           :
00005     prd=1.0
00006     if lumi==300:
00007         prd=1.0
00008     if lumi==500:
00009         prd=1.5
00010     if lumi==1000:
00011         prd=0.
00012     if lumi==3000:
00013         prd=0. #no aging yet
00014         
00015     # danger - watch for someone turning off pixel aging - if off - leave off
00016     if hasattr(process,'mix') and not hasattr(process.mix.digitizers.pixel,'NoAging'):
00017         process.mix.digitizers.pixel.PseudoRadDamage =  cms.double(float(prd*7.65))
00018         process.mix.digitizers.pixel.PseudoRadDamageRadius =  cms.double(16.5)
00019     return process    

def aging::customise_aging_1000 (   process)

Definition at line 59 of file aging.py.

00060                                  :
00061 
00062     process=ageHcal(process,1000)
00063     process=ageEcal(process,1000)
00064     process=agePixel(process,1000)
00065     return process

def aging::customise_aging_300 (   process)

Definition at line 45 of file aging.py.

00046                                 :
00047 
00048     process=ageHcal(process,300)
00049     process=ageEcal(process,300)
00050     process=agePixel(process,300)
00051     return process

def aging::customise_aging_3000 (   process)

Definition at line 66 of file aging.py.

00067                                  :
00068 
00069     process=ageHcal(process,3000)
00070     process=ageEcal(process,3000)
00071     process=agePixel(process,3000)
00072     return process

def aging::customise_aging_500 (   process)

Definition at line 52 of file aging.py.

00053                                 :
00054 
00055     process=ageHcal(process,500)
00056     process=ageEcal(process,500)
00057     process=agePixel(process,500)
00058     return process

def aging::customise_aging_ecalonly_1000 (   process)

Definition at line 78 of file aging.py.

00079                                           :
00080 
00081     process=ageEcal(process,1000)
00082     return process

def aging::customise_aging_ecalonly_300 (   process)

Definition at line 73 of file aging.py.

00074                                          :
00075 
00076     process=ageEcal(process,300)
00077     return process

def aging::customise_aging_ecalonly_3000 (   process)

Definition at line 83 of file aging.py.

00084                                           :
00085 
00086     process=ageEcal(process,3000)
00087     return process

def aging::customise_aging_newpixel_1000 (   process)

Definition at line 88 of file aging.py.

00089                                           :
00090 
00091     process=ageEcal(process,1000)
00092     process=ageHcal(process,1000)
00093     return process

def aging::customise_aging_newpixel_3000 (   process)

Definition at line 94 of file aging.py.

00095                                           :
00096 
00097     process=ageEcal(process,3000)
00098     process=ageHcal(process,3000)
00099     return process
00100 
00101 #no hcal 3000

def aging::ecal_complete_aging (   process)

Definition at line 102 of file aging.py.

00103                                 :
00104     if hasattr(process,'g4SimHits'):
00105         process.g4SimHits.ECalSD.AgeingWithSlopeLY = cms.untracked.bool(True)
00106     if hasattr(process,'ecal_digi_parameters'):    
00107         process.ecal_digi_parameters.UseLCcorrection = cms.untracked.bool(False)
00108     return process

def aging::ecal_complete_aging_1000 (   process)

Definition at line 210 of file aging.py.

00211                                      :
00212     process=ecal_complete_aging(process)
00213 
00214     if not hasattr(process.GlobalTag,'toGet'):
00215         process.GLobalTag.toGet=cms.VPSet()
00216     process.GlobalTag.toGet.extend( cms.VPSet(
00217         cms.PSet(record = cms.string("EcalPedestalsRcd"),
00218                  tag = cms.string("EcalPedestals_TL1000_IL5E34_mc"),
00219                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00220                  ),
00221         ## laser D
00222         cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
00223                  tag = cms.string("EcalLaserAPDPNRatios_TL1000_IL5E34_v2_mc"),
00224                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00225                  ),
00226         ## L1 trigger
00227         cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
00228                  tag = cms.string("EcalTPGLinearizationConst_TL1000_IL5E34_v2_mc"),
00229                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00230                  ),
00231         cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
00232                  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
00233                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00234                  ),
00235         #VPT aging
00236         cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
00237                  tag = cms.string('EcalLinearCorrections_mc'),
00238                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00239                  )
00240         )
00241                                     )
00242     return process
00243 

def aging::ecal_complete_aging_300 (   process)

Definition at line 176 of file aging.py.

00177                                     :
00178     process=ecal_complete_aging(process)
00179 
00180     if not hasattr(process.GlobalTag,'toGet'):
00181         process.GLobalTag.toGet=cms.VPSet()
00182     process.GlobalTag.toGet.extend( cms.VPSet(
00183         cms.PSet(record = cms.string("EcalPedestalsRcd"),
00184                  tag = cms.string("EcalPedestals_TL300_IL1E34_mc"),
00185                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00186                  ),
00187         ## laser D
00188         cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
00189                  tag = cms.string("EcalLaserAPDPNRatios_TL300_IL1E34_v2_mc"),
00190                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00191                  ),
00192         ## L1 trigger
00193         cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
00194                  tag = cms.string("EcalTPGLinearizationConst_TL300_IL1E34_v2_mc"),
00195                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00196                  ),
00197         cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
00198                  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
00199                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00200                  ),
00201         #VPT aging
00202         cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
00203                  tag = cms.string('EcalLinearCorrections_mc'),
00204                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00205                  )
00206         )
00207                                     )
00208     return process
00209 
    
def aging::ecal_complete_aging_3000 (   process)

Definition at line 244 of file aging.py.

00245                                      :
00246     process=ecal_complete_aging(process)
00247 
00248     if not hasattr(process.GlobalTag,'toGet'):
00249         process.GLobalTag.toGet=cms.VPSet()
00250     process.GlobalTag.toGet.extend( cms.VPSet(
00251         cms.PSet(record = cms.string("EcalPedestalsRcd"),
00252                  tag = cms.string("EcalPedestals_TL3000_IL5E34_mc"),
00253                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00254                  ),
00255         ## laser D
00256         cms.PSet(record = cms.string("EcalLaserAPDPNRatiosRcd"),
00257                  tag = cms.string("EcalLaserAPDPNRatios_TL3000_IL5E34_v2_mc"),
00258                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00259                  ),
00260         ## L1 trigger
00261         cms.PSet(record = cms.string("EcalTPGLinearizationConstRcd"),
00262                  tag = cms.string("EcalTPGLinearizationConst_TL3000_IL5E34_v2_mc"),
00263                  connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_ECAL")
00264                  ),
00265         cms.PSet(record = cms.string('EcalLaserAlphasRcd'),
00266                  tag = cms.string('EcalLaserAlphas_EB_sic1_btcp1_EE_sic1_btcp1'),
00267                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00268                  ),
00269         #VPT aging
00270         cms.PSet(record = cms.string('EcalLinearCorrectionsRcd'),
00271                  tag = cms.string('EcalLinearCorrections_mc'),
00272                  connect = cms.untracked.string('frontier://FrontierPrep/CMS_COND_ECAL')
00273                  )
00274         )
00275                                     )
00276 
00277     return process
00278 
def aging::reco_aging_hcal_stdgeom (   process)

Definition at line 135 of file aging.py.

00136                                     :
00137     process.load("CalibCalorimetry/HcalPlugins/Hcal_Conditions_forGlobalTag_cff")
00138 
00139     process.es_hardcode.HcalReLabel.RelabelHits = cms.untracked.bool(True)
00140     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)
00141     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)
00142     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)
00143     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)
00144     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)
00145     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)
00146 
00147     process.es_hardcode.toGet = cms.untracked.vstring(
00148         'GainWidths',
00149         'RespCorrs'
00150         )
00151     process.es_hardcode.HERecalibration = cms.bool(True)
00152     process.es_hardcode.HFRecalibration = cms.bool(True)
00153     
00154     return process

def aging::reco_aging_hcal_stdgeom_1000 (   process)

Definition at line 165 of file aging.py.

00166                                          :
00167     process=reco_aging_hcal_stdgeom(process)
00168     process.es_hardcode.iLumi = cms.double(1000.)
00169     return process

def aging::reco_aging_hcal_stdgeom_300 (   process)

Definition at line 155 of file aging.py.

00156                                         :
00157     process=reco_aging_hcal_stdgeom(process)
00158     process.es_hardcode.iLumi = cms.double(300.)
00159     return process

def aging::reco_aging_hcal_stdgeom_3000 (   process)

Definition at line 170 of file aging.py.

00171                                          :
00172     process=reco_aging_hcal_stdgeom(process)
00173     process.es_hardcode.iLumi = cms.double(3000.)
00174     return process
00175 

def aging::reco_aging_hcal_stdgeom_500 (   process)

Definition at line 160 of file aging.py.

00161                                         :
00162     process=reco_aging_hcal_stdgeom(process)
00163     process.es_hardcode.iLumi = cms.double(500.)
00164     return process

def aging::turn_off_HE_aging (   process)

Definition at line 109 of file aging.py.

00110                               :
00111     if hasattr(process,'g4SimHits'):
00112         process.g4SimHits.HHCalSD.HEDarkening       = cms.bool(False)
00113     return process

def aging::turn_off_HF_aging (   process)

Definition at line 114 of file aging.py.

00115                               :
00116     if hasattr(process,'g4SimHits'):
00117         process.g4SimHits.HCalSD.HFDarkening       = cms.bool(False)
00118     return process

def aging::turn_off_Pixel_aging (   process)

Definition at line 119 of file aging.py.

00120                                  :
00121 
00122     if hasattr(process,'mix'):
00123         setattr(process.mix.digitizers.pixel,'NoAging',cms.double(1.))
00124         process.mix.digitizers.pixel.PseudoRadDamage =  cms.double(0.)
00125     return process

def aging::turn_on_Pixel_aging_1000 (   process)

Definition at line 126 of file aging.py.

00127                                      :
00128     # just incase we want aging afterall
00129     if hasattr(process,'mix'):
00130         process.mix.digitizers.pixel.PseudoRadDamage =  cms.double(1.5)
00131         process.mix.digitizers.pixel.PseudoRadDamageRadius =  cms.double(4.0)
00132 
00133     return process
00134