Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 def customiseCommon(process):
0004     
0005     #####################################################################################################
0006     ####
0007     ####  Top level replaces for handling strange scenarios of early collisions
0008     ####
0009 
0010     ## TRACKING:
0011     ## Skip events with HV off
0012     process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
0013     process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
0014     process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
0015     process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 20000
0016     process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
0017     process.thTripletsA.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
0018     process.thTripletsB.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
0019 
0020     ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
0021 
0022     ### prevent bias in pixel vertex
0023     process.pixelVertices.useBeamConstraint = False
0024     
0025     ### pixelTracks
0026     #---- new parameters ----
0027     process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ  = 4.06
0028     process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
0029 
0030     ### 0th step of iterative tracking
0031     #---- new parameters ----
0032     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ   = cms.double(4.06)  
0033     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
0034 
0035     ### 2nd step of iterative tracking
0036     #---- new parameters ----
0037     process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.47)  
0038     process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
0039 
0040     ## Primary Vertex
0041     process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
0042     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
0043     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
0044     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
0045     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
0046     process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
0047     process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
0048     process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
0049     process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
0050     process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
0051     process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
0052     process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
0053 
0054     ## ECAL 
0055     process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
0056 
0057 
0058     ## HCAL temporary fixes
0059     process.hfreco.samplesToAdd = 4
0060     
0061     ## EGAMMA
0062     process.photons.minSCEtBarrel = 5.
0063     process.photons.minSCEtEndcap =5.
0064     process.photonCore.minSCEt = 5.
0065     process.conversionTrackCandidates.minSCEt =5.
0066     process.conversions.minSCEt =5.
0067     process.trackerOnlyConversions.rCut = 2.
0068     process.trackerOnlyConversions.vtxChi2 = 0.0005
0069     
0070     ###
0071     ###  end of top level replacements
0072     ###
0073     ###############################################################################################
0074 
0075     return (process)
0076 
0077 
0078 ##############################################################################
0079 def customisePPData(process):
0080     process= customiseCommon(process)
0081     process.hfreco.firstSample=3
0082     ##Preshower
0083     process.ecalPreshowerRecHit.ESBaseline = 0
0084 
0085     ## local tracker strip reconstruction
0086     process.OutOfTime.TOBlateBP=0.071
0087     process.OutOfTime.TIBlateBP=0.036
0088 
0089     return process
0090 
0091 
0092 ##############################################################################
0093 def customisePPMC(process):
0094     process=customiseCommon(process)
0095     process.hfreco.firstSample=1
0096     
0097     return process
0098 
0099 ##############################################################################
0100 def customiseCosmicData(process):
0101     process.ecalPreshowerRecHit.ESBaseline = 0
0102     
0103     return process
0104 
0105 ##############################################################################
0106 def customiseCosmicMC(process):
0107     
0108     return process
0109         
0110 
0111 ##############################################################################
0112 def customiseExpress(process):
0113     process= customisePPData(process)
0114 
0115     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0116     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0117 
0118     return process
0119 
0120 ##############################################################################
0121 def customisePrompt(process):
0122     process= customisePPData(process)
0123 
0124     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0125     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0126     
0127     return process