Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #this is obsolete I think
0004 def customise_pixelMixing(process):
0005     process.mix.digitizers.pixel.MissCalibrate = False
0006     process.mix.digitizers.pixel.LorentzAngle_DB = False
0007     process.mix.digitizers.pixel.killModules = False
0008     process.mix.digitizers.pixel.useDB = False
0009     process.mix.digitizers.pixel.DeadModules_DB = False
0010     process.mix.digitizers.pixel.NumPixelBarrel = cms.int32(4)
0011     process.mix.digitizers.pixel.NumPixelEndcap = cms.int32(3)
0012     process.mix.digitizers.pixel.ThresholdInElectrons_FPix = cms.double(2000.0)
0013     process.mix.digitizers.pixel.ThresholdInElectrons_BPix = cms.double(2000.0)
0014     process.mix.digitizers.pixel.ThresholdInElectrons_BPix_L1 = cms.double(2000.0)
0015     process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(0.999)
0016     process.mix.digitizers.pixel.thePixelEfficiency_BPix4 = cms.double(0.999)
0017     process.mix.digitizers.pixel.thePixelChipEfficiency_BPix4 = cms.double(0.999)
0018     return (process)
0019 
0020 # Remove the Crossing Frames to save memory
0021 def customise_NoCrossing(process):
0022     process.mix.mixObjects.mixSH.crossingFrames = cms.untracked.vstring(
0023         'BSCHits',
0024         'FP420SI',
0025         'MuonCSCHits',
0026         'MuonDTHits',
0027         'MuonRPCHits',
0028         'TotemHitsRP',
0029         'TotemHitsT1',
0030         'TotemHitsT2Gem')
0031     process.mix.mixObjects.mixCH.crossingFrames = cms.untracked.vstring('')
0032     process.mix.mixObjects.mixTracks.makeCrossingFrame = cms.untracked.bool(False)
0033     process.mix.mixObjects.mixVertices.makeCrossingFrame = cms.untracked.bool(False)
0034     process.mix.mixObjects.mixHepMC.makeCrossingFrame = cms.untracked.bool(False)
0035     #process.digitisation_step.remove(process.simSiStripDigiSimLink)
0036     #process.digitisation_step.remove(process.mergedtruth)
0037     return (process)
0038 
0039 def customise_pixelMixing_PU(process):
0040     if hasattr(process,'mix'): 
0041         n=0
0042         if hasattr(process.mix,'input'):
0043             n=process.mix.input.nbPileupEvents.averageNumber.value()
0044         if n>0:
0045             process.mix.digitizers.pixel.thePixelColEfficiency_BPix1 = cms.double(1.0-(0.0238*n/50.0))
0046             process.mix.digitizers.pixel.thePixelColEfficiency_BPix2 = cms.double(1.0-(0.0046*n/50.0))
0047             process.mix.digitizers.pixel.thePixelColEfficiency_BPix3 = cms.double(1.0-(0.0018*n/50.0))
0048             process.mix.digitizers.pixel.thePixelColEfficiency_BPix4 = cms.double(1.0-(0.0008*n/50.0))
0049             process.mix.digitizers.pixel.thePixelColEfficiency_FPix1 = cms.double(1.0-(0.0018*n/50.0))
0050             process.mix.digitizers.pixel.thePixelColEfficiency_FPix2 = cms.double(1.0-(0.0018*n/50.0))
0051             process.mix.digitizers.pixel.thePixelColEfficiency_FPix3 = cms.double(1.0-(0.0018*n/50.0))
0052         
0053     return (process)
0054 
0055 def customise_NoCrossing_PU(process):
0056     process=customise_pixelMixing_PU(process)
0057     process=customise_NoCrossing(process)
0058     return (process)
0059 
0060 
0061 def customise_Mix_LongLived_Neutrons(process):
0062     process.mix.WrapLongTimes = cms.bool(True)
0063     return (process)