CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Configuration/GlobalRuns/python/reco_TLR_37X.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 
00083     ## local tracker strip reconstruction
00084     process.OutOfTime.TOBlateBP=0.071
00085     process.OutOfTime.TIBlateBP=0.036
00086             
00087     ## particle flow HF cleaning
00088     process.particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
00089     process.particleFlowRecHitHCAL.ApplyPulseDPG = True
00090 
00091     ## HF cleaning for data only
00092     process.hcalRecAlgos.SeverityLevels[3].RecHitFlags.remove("HFDigiTime")
00093     process.hcalRecAlgos.SeverityLevels[4].RecHitFlags.append("HFDigiTime")
00094     
00095     return process
00096 
00097 
00098 ##############################################################################
00099 def customisePPMC(process):
00100     process=customiseCommon(process)
00101     process.hfreco.firstSample=1
00102     process.CSCHaloData.ExpectedBX = cms.int32(6)
00103     
00104     return process
00105 
00106 ##############################################################################
00107 def customiseCosmicData(process):
00108 
00109     return process
00110 
00111 ##############################################################################
00112 def customiseCosmicMC(process):
00113     
00114     return process
00115         
00116 
00117 ##############################################################################
00118 def customiseExpress(process):
00119     process= customisePPData(process)
00120 
00121     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00122     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00123     
00124     return process
00125 
00126 ##############################################################################
00127 def customisePrompt(process):
00128     process= customisePPData(process)
00129 
00130     import RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi
00131     process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
00132     
00133     return process