Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #common stuff here
0004 def customise(process):
0005     process.load("SLHCUpgradeSimulations.Geometry.recoFromSimDigis_cff")
0006     #this line is different
0007     process.load("SLHCUpgradeSimulations.Geometry.upgradeTracking_stdgeom_cff")
0008 
0009     process.ctfWithMaterialTracks.TTRHBuilder = 'WithTrackAngle'
0010     #this line is different
0011     process.PixelCPEGenericESProducer.UseErrorsFromTemplates = cms.bool(True)
0012     process.PixelCPEGenericESProducer.TruncatePixelCharge = cms.bool(False)
0013     #this line is different
0014     process.PixelCPEGenericESProducer.LoadTemplatesFromDB = cms.bool(True)
0015     #two lines removed here
0016     process.PixelCPEGenericESProducer.IrradiationBiasCorrection = False
0017     process.PixelCPEGenericESProducer.DoCosmics = False
0018 
0019     ## CPE for other steps
0020     process.siPixelRecHits.CPE = cms.string('PixelCPEGeneric')
0021     process.initialStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0022     process.lowPtTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0023     process.pixelPairStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0024     process.detachedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0025     process.mixedTripletStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0026     process.pixelLessStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0027     process.tobTecStepTracks.TTRHBuilder = cms.string('WithTrackAngle')
0028 
0029     # Need these lines to stop some errors about missing siStripDigis collections.
0030     # should add them to fakeConditions_Phase1_cff
0031     process.MeasurementTracker.inactiveStripDetectorLabels = cms.VInputTag()
0032     process.MeasurementTracker.UseStripModuleQualityDB     = cms.bool(False)
0033     process.MeasurementTracker.UseStripAPVFiberQualityDB   = cms.bool(False)
0034     process.MeasurementTracker.UseStripStripQualityDB      = cms.bool(False)
0035     process.MeasurementTracker.UsePixelModuleQualityDB     = cms.bool(False)
0036     process.MeasurementTracker.UsePixelROCQualityDB        = cms.bool(False)
0037 
0038     ### back to standard job commands ##################################################
0039     process.DigiToRaw.remove(process.castorRawData)
0040 
0041     ### remove a slow module for cosmics
0042     #process.reconstruction_step.remove(process.regionalCosmicCkfTrackCandidates)
0043 
0044     if hasattr(process,'dqmoffline_step'):
0045         process.dqmoffline_step.remove(process.SiPixelTrackResidualSource)
0046         process.dqmoffline_step.remove(process.jetMETAnalyzer)
0047         process.dqmoffline_step.remove(process.hltMonMuBits)
0048         process.dqmoffline_step.remove(process.vbtfAnalyzer)
0049         process.dqmoffline_step.remove(process.hltResults)
0050         process.dqmoffline_step.remove(process.egHLTOffDQMSource)
0051         process.dqmoffline_step.remove(process.globalAnalyzer)
0052         process.dqmoffline_step.remove(process.jetMETHLTOfflineSource)
0053         ##
0054         process.dqmoffline_step.remove(process.TrackerCollisionTrackMon)
0055     if hasattr(process,'validation_step'):
0056         process.validation_step.remove(process.hltHITval)
0057         process.validation_step.remove(process.HLTSusyExoVal)
0058         process.validation_step.remove(process.relvalMuonBits)
0059         process.validation_step.remove(process.hltMuonValidator)
0060     else:
0061     ## removing large memory usage module if we don't need it
0062         process.pdigi.remove(process.mergedtruth)
0063 
0064     return(process)
0065 
0066 
0067 #pileup specific stuff here
0068 def customise_pu15_25ns(process):
0069 
0070     process=customise(process)
0071 
0072     process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_stdgeom_cff")
0073 
0074 ### set the number of pileup
0075     process.mix.input.nbPileupEvents = cms.PSet(
0076         averageNumber = cms.double(15.0)
0077         )
0078     return (process)
0079 
0080 
0081 def customise_pu50_25ns(process):
0082 
0083     process=customise(process)
0084 
0085     process.load("SLHCUpgradeSimulations.Geometry.mixLowLumPU_stdgeom_cff")
0086 
0087 ### set the number of pileup
0088     process.mix.input.nbPileupEvents = cms.PSet(
0089         averageNumber = cms.double(50.0)
0090         )
0091     
0092 
0093 ### if doing inefficiency at <PU>=50
0094     process.simSiPixelDigis.AddPixelInefficiency = 20
0095     ## also for strips TIB inefficiency if we want
0096     ## TIB1,2 inefficiency at 20%
0097     #process.simSiStripDigis.Inefficiency = 20
0098     ## TIB1,2 inefficiency at 50%
0099     #process.simSiStripDigis.Inefficiency = 30
0100     ## TIB1,2 inefficiency at 99% (i.e. dead)
0101     #process.simSiStripDigis.Inefficiency = 40
0102     
0103     return (process)