CMS 3D CMS Logo

Functions

customise_Collision_36X Namespace Reference

Functions

def customise

Function Documentation

def customise_Collision_36X::customise (   process)

Definition at line 2 of file customise_Collision_36X.py.

00003                       :
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     ## local tracker strip reconstruction
00021     process.OutOfTime.TOBlateBP=0.071
00022     process.OutOfTime.TIBlateBP=0.036
00023 
00024     ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
00025 
00026     ### prevent bias in pixel vertex
00027     process.pixelVertices.useBeamConstraint = False
00028     
00029     ### pixelTracks
00030     #---- new parameters ----
00031     process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.06)
00032     process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
00033     
00034     ### 0th step of iterative tracking
00035     #---- new parameters ----
00036     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ   = cms.double(4.06)
00037     process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
00038 
00039     ### 2nd step of iterative tracking
00040     #---- new parameters ----
00041     process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ  = cms.double(4.47)
00042     process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
00043 
00044     ## Primary Vertex
00045     process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
00046     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
00047     process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
00048     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
00049     process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
00050     process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
00051     process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
00052     process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
00053     process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
00054     process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
00055     process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
00056     process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
00057 
00058     ## ECAL 
00059     process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
00060 
00061     ##Preshower
00062     process.ecalPreshowerRecHit.ESBaseline = 0
00063 
00064     ## HCAL temporary fixes
00065     process.hfreco.firstSample  = 3
00066     process.hfreco.samplesToAdd = 4
00067     
00068     ## EGAMMA
00069     process.photons.minSCEtBarrel = 5.
00070     process.photons.minSCEtEndcap =5.
00071     process.photonCore.minSCEt = 5.
00072     process.conversionTrackCandidates.minSCEt =5.
00073     process.conversions.minSCEt =5.
00074     process.trackerOnlyConversions.rCut = 2.
00075     process.trackerOnlyConversions.vtxChi2 = 0.0005
00076     
00077     ###
00078     ###  end of top level replacements
00079     ###
00080     ###############################################################################################
00081 
00082 
00083     #add the DQM stream for this time only
00084     # DQMStream output definition
00085     process.outputDQMStream = cms.OutputModule("PoolOutputModule",
00086                                                outputCommands = cms.untracked.vstring('drop *',
00087                                                                                       'keep *_MEtoEDMConverter_*_*'),
00088                                                fileName = cms.untracked.string('DQMStream.root'),
00089                                                dataset = cms.untracked.PSet(
00090         filterName = cms.untracked.string(''),
00091         dataTier = cms.untracked.string('DQM')
00092         )
00093     )
00094     process.outputDQMStreamOutPath = cms.EndPath(process.outputDQMStream)
00095     process.schedule.append( process.outputDQMStreamOutPath )
00096 
00097     
00098 
00099     return (process)