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 turn_off_HE_aging
def turn_off_HF_aging
def turn_off_Pixel_aging

Function Documentation

def aging::ageEcal (   process,
  lumi 
)

Definition at line 28 of file aging.py.

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

def aging::ageHcal (   process,
  lumi 
)

Definition at line 20 of file aging.py.

00021                          :
00022 
00023     if hasattr(process,'g4SimHits'):
00024         process.g4SimHits.HCalSD.DelivLuminosity = cms.double(float(lumi))  # integrated lumi in fb-1
00025         process.g4SimHits.HCalSD.HEDarkening       = cms.untracked.bool(True)
00026         process.g4SimHits.HCalSD.HFDarkening       = cms.untracked.bool(True)
00027     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=1.5
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))
00018         process.mix.digitizers.pixel.PseudoRadDamageRadius =  cms.double(4.0)
00019     return process    

def aging::customise_aging_1000 (   process)

Definition at line 54 of file aging.py.

00055                                  :
00056 
00057     process=ageHcal(process,1000)
00058     process=ageEcal(process,1000)
00059     process=agePixel(process,1000)
00060     return process

def aging::customise_aging_300 (   process)

Definition at line 40 of file aging.py.

00041                                 :
00042 
00043     process=ageHcal(process,300)
00044     process=ageEcal(process,300)
00045     process=agePixel(process,300)
00046     return process

def aging::customise_aging_3000 (   process)

Definition at line 61 of file aging.py.

00062                                  :
00063 
00064     process=ageHcal(process,3000)
00065     process=ageEcal(process,3000)
00066     process=agePixel(process,3000)
00067     return process

def aging::customise_aging_500 (   process)

Definition at line 47 of file aging.py.

00048                                 :
00049 
00050     process=ageHcal(process,500)
00051     process=ageEcal(process,500)
00052     process=agePixel(process,500)
00053     return process

def aging::customise_aging_ecalonly_1000 (   process)

Definition at line 73 of file aging.py.

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

def aging::customise_aging_ecalonly_300 (   process)

Definition at line 68 of file aging.py.

00069                                          :
00070 
00071     process=ageEcal(process,300)
00072     return process

def aging::customise_aging_ecalonly_3000 (   process)

Definition at line 78 of file aging.py.

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

def aging::customise_aging_newpixel_1000 (   process)

Definition at line 83 of file aging.py.

00084                                           :
00085 
00086     process=ageEcal(process,1000)
00087     process=ageHcal(process,1000)
00088     return process

def aging::customise_aging_newpixel_3000 (   process)

Definition at line 89 of file aging.py.

00090                                           :
00091 
00092     process=ageEcal(process,3000)
00093     process=ageHcal(process,3000)
00094     return process
00095 
00096 #no hcal 3000

def aging::ecal_complete_aging (   process)

Definition at line 97 of file aging.py.

00098                                 :
00099     if hasattr(process,'g4SimHits'):
00100         process.g4SimHits.ECalSD.AgeingWithSlopeLY = cms.untracked.bool(True)
00101     if hasattr(process,ecal_digi_parameters):    
00102         process.ecal_digi_parameters.UseLCcorrection = cms.untracked.bool(False)
00103     return process

def aging::turn_off_HE_aging (   process)

Definition at line 104 of file aging.py.

00105                               :
00106     if hasattr(process,'g4SimHits'):
00107         process.g4SimHits.HHCalSD.HEDarkening       = cms.untracked.bool(False)
00108     return process

def aging::turn_off_HF_aging (   process)

Definition at line 109 of file aging.py.

00110                               :
00111     if hasattr(process,'g4SimHits'):
00112         process.g4SimHits.HCalSD.HFDarkening       = cms.untracked.bool(False)
00113     return process

def aging::turn_off_Pixel_aging (   process)

Definition at line 114 of file aging.py.

00115                                  :
00116 
00117     if hasattr(process,'mix'):
00118         setattr(process.mix.digitizers.pixel,'NoAging',cms.double(1.))
00119         process.mix.digitizers.pixel.PseudoRadDamage =  cms.double(0.)
00120     return process