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 
0083     ## local tracker strip reconstruction
0084     process.OutOfTime.TOBlateBP=0.071
0085     process.OutOfTime.TIBlateBP=0.036
0086             
0087     ## particle flow HF cleaning
0088     process.particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
0089     process.particleFlowRecHitHCAL.ApplyPulseDPG = True
0090 
0091     ## HF cleaning for data only
0092     process.hcalRecAlgos.SeverityLevels[3].RecHitFlags.remove("HFDigiTime")
0093     process.hcalRecAlgos.SeverityLevels[4].RecHitFlags.append("HFDigiTime")
0094     
0095     return process
0096 
0097 
0098 ##############################################################################
0099 def customisePPMC(process):
0100     process=customiseCommon(process)
0101     process.hfreco.firstSample=1
0102     process.CSCHaloData.ExpectedBX = cms.int32(6)
0103     
0104     return process
0105 
0106 ##############################################################################
0107 def customiseCosmicData(process):
0108 
0109     return process
0110 
0111 ##############################################################################
0112 def customiseCosmicMC(process):
0113     
0114     return process
0115         
0116 
0117 ##############################################################################
0118 def customiseExpress(process):
0119     process= customisePPData(process)
0120 
0121     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0122     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0123     
0124     return process
0125 
0126 ##############################################################################
0127 def customisePrompt(process):
0128     process= customisePPData(process)
0129 
0130     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
0131     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
0132     
0133     return process