CMS 3D CMS Logo

Functions

customise_CollisionMC_36X Namespace Reference

Functions

def customise

Function Documentation

def customise_CollisionMC_36X::customise (   process)

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