CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/Configuration/GlobalRuns/python/reco_TLR_35X.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 def customiseCommon(process):
00004 
00005     
00006     #####################################################################################################
00007     ####
00008     ####  Top level replaces for handling strange scenarios of early collisions
00009     ####
00010 
00011     ## TRACKING:
00012     ## Skip events with HV off
00013     process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00014     process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
00015     process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
00016     process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
00017     process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
00018 
00019     ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
00020 
00021     ### prevent bias in pixel vertex
00022     process.pixelVertices.useBeamConstraint = False
00023     
00024     ### pixelTracks
00025     #---- new parameters ----
00026     process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
00027     
00028     ### 0th step of iterative tracking
00029     #---- replaces ----
00030     process.newSeedFromTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
00031     #---- new parameters ----
00032     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ   = cms.double(4.06)  # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
00033     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
00034 
00035     ### 2nd step of iterative tracking
00036     #---- replaces ----
00037     process.secTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
00038     #---- new parameters ----
00039     process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.47)  # was originHalfLength = 17.5; translated assuming sigmaZ ~ 3.8
00040     process.secTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
00041 
00042     ## Primary Vertex
00043     process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
00044     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
00045     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconHits = 6
00046     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
00047     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelHits = 1
00048     process.offlinePrimaryVerticesWithBS.TkClusParameters.zSeparation = 1
00049     process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
00050     process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
00051     process.offlinePrimaryVertices.TkFilterParameters.minSiliconHits = 6
00052     process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
00053     process.offlinePrimaryVertices.TkFilterParameters.minPixelHits = 1
00054     process.offlinePrimaryVertices.TkClusParameters.zSeparation = 1
00055 
00056     ## ECAL 
00057     process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
00058 
00059     ## HCAL temporary fixes
00060     process.hfreco.samplesToAdd = 4
00061     
00062     ## EGAMMA
00063     process.gsfElectrons.applyPreselection = cms.bool(False)
00064     process.photons.minSCEtBarrel = 2.
00065     process.photons.minSCEtEndcap =2.
00066     process.photonCore.minSCEt = 2.
00067     process.conversionTrackCandidates.minSCEt =1.
00068     process.conversions.minSCEt =1.
00069     process.trackerOnlyConversions.AllowTrackBC = cms.bool(False)
00070     process.trackerOnlyConversions.AllowRightBC = cms.bool(False)
00071     process.trackerOnlyConversions.MinApproach = cms.double(-.25)
00072     process.trackerOnlyConversions.DeltaCotTheta = cms.double(.07)
00073     process.trackerOnlyConversions.DeltaPhi = cms.double(.2)
00074     
00075     ###
00076     ###  end of top level replacements
00077     ###
00078     ###############################################################################################
00079 
00080     return (process)
00081 
00082 
00083 ##############################################################################
00084 def customisePPData(process):
00085     process= customiseCommon(process)
00086     process.hfreco.firstSample=3
00087     ##Preshower
00088     process.ecalPreshowerRecHit.ESBaseline = 0
00089 
00090     ##Preshower algo for data is different than for MC
00091     process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
00092 
00093     return process
00094 
00095 
00096 ##############################################################################
00097 def customisePPMC(process):
00098     process=customiseCommon(process)
00099     process.hfreco.firstSample=1
00100     
00101     return process
00102 
00103 ##############################################################################
00104 def customiseCosmicData(process):
00105     process.ecalPreshowerRecHit.ESBaseline = cms.int32(0)
00106     process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
00107     
00108     return process
00109 
00110 ##############################################################################
00111 def customiseCosmicMC(process):
00112     
00113     return process
00114         
00115 
00116 ##############################################################################
00117 def customiseExpress(process):
00118     process= customisePPData(process)
00119 
00120     return process