CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/Configuration/GlobalRuns/python/reco_TLR_36X.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 def customiseCommon(process):
00004     
00005     #####################################################################################################
00006     ####
00007     ####  Top level replaces for handling strange scenarios of early collisions
00008     ####
00009 
00010     ## TRACKING:
00011     ## Skip events with HV off
00012     process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00013     process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
00014     process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00015     process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 20000
00016     process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
00017     process.thTripletsA.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
00018     process.thTripletsB.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
00019 
00020     ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
00021 
00022     ### prevent bias in pixel vertex
00023     process.pixelVertices.useBeamConstraint = False
00024     
00025     ### pixelTracks
00026     #---- new parameters ----
00027     process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ  = 4.06
00028     process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
00029 
00030     ### 0th step of iterative tracking
00031     #---- new parameters ----
00032     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ   = cms.double(4.06)  
00033     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
00034 
00035     ### 2nd step of iterative tracking
00036     #---- new parameters ----
00037     process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.47)  
00038     process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
00039 
00040     ## Primary Vertex
00041     process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
00042     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
00043     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
00044     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
00045     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
00046     process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
00047     process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
00048     process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
00049     process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
00050     process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
00051     process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
00052     process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
00053 
00054     ## ECAL 
00055     process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
00056 
00057 
00058     ## HCAL temporary fixes
00059     process.hfreco.samplesToAdd = 4
00060     
00061     ## EGAMMA
00062     process.photons.minSCEtBarrel = 5.
00063     process.photons.minSCEtEndcap =5.
00064     process.photonCore.minSCEt = 5.
00065     process.conversionTrackCandidates.minSCEt =5.
00066     process.conversions.minSCEt =5.
00067     process.trackerOnlyConversions.rCut = 2.
00068     process.trackerOnlyConversions.vtxChi2 = 0.0005
00069     
00070     ###
00071     ###  end of top level replacements
00072     ###
00073     ###############################################################################################
00074 
00075     return (process)
00076 
00077 
00078 ##############################################################################
00079 def customisePPData(process):
00080     process= customiseCommon(process)
00081     process.hfreco.firstSample=3
00082     ##Preshower
00083     process.ecalPreshowerRecHit.ESBaseline = 0
00084 
00085     ## local tracker strip reconstruction
00086     process.OutOfTime.TOBlateBP=0.071
00087     process.OutOfTime.TIBlateBP=0.036
00088 
00089     return process
00090 
00091 
00092 ##############################################################################
00093 def customisePPMC(process):
00094     process=customiseCommon(process)
00095     process.hfreco.firstSample=1
00096     
00097     return process
00098 
00099 ##############################################################################
00100 def customiseCosmicData(process):
00101     process.ecalPreshowerRecHit.ESBaseline = 0
00102     
00103     return process
00104 
00105 ##############################################################################
00106 def customiseCosmicMC(process):
00107     
00108     return process
00109         
00110 
00111 ##############################################################################
00112 def customiseExpress(process):
00113     process= customisePPData(process)
00114 
00115     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00116     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00117 
00118     return process
00119 
00120 ##############################################################################
00121 def customisePrompt(process):
00122     process= customisePPData(process)
00123 
00124     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00125     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00126     
00127     return process