CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customise_CollisionMC_35X.py
Go to the documentation of this file.
1 
2 def customise(process):
3  #####################################################################################################
4  ####
5  #### Top level replaces for handling strange scenarios of early collisions
6  ####
7 
8  ## TRACKING:
9  ## Skip events with HV off
10  process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
11  process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
12  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
13  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
14  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
15  process.thPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
16  process.thPLSeeds.ClusterCheckPSet.MaxNumberOfPixelClusters = 2000
17 
18  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
19 
20  ### prevent bias in pixel vertex
21  process.pixelVertices.useBeamConstraint = False
22 
23  ### pixelTracks
24  #---- new parameters ----
25  process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
26 
27  ### 0th step of iterative tracking
28  #---- replaces ----
29  process.newSeedFromTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
30  #---- new parameters ----
31  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06) # was originHalfLength = 15.9; translated assuming sigmaZ ~ 3.8
32  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
33 
34  ### 2nd step of iterative tracking
35  #---- replaces ----
36  process.secTriplets.RegionFactoryPSet.ComponentName = 'GlobalRegionProducerFromBeamSpot' # was GlobalRegionProducer
37  #---- new parameters ----
38  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47) # was originHalfLength = 17.5; translated assuming sigmaZ ~ 3.8
39  process.secTriplets.RegionFactoryPSet.RegionPSet.beamSpot = cms.InputTag("offlineBeamSpot")
40 
41  ## Primary Vertex
42  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
43  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
44  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconHits = 6
45  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
46  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelHits = 1
47  process.offlinePrimaryVerticesWithBS.TkClusParameters.zSeparation = 1
48  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
49  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
50  process.offlinePrimaryVertices.TkFilterParameters.minSiliconHits = 6
51  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
52  process.offlinePrimaryVertices.TkFilterParameters.minPixelHits = 1
53  process.offlinePrimaryVertices.TkClusParameters.zSeparation = 1
54 
55  ## ECAL
56  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
57 
58 
59  ## HCAL temporary fixes
60  process.hfreco.firstSample = 1
61  process.hfreco.samplesToAdd = 4
62 
63  ## EGAMMA
64  process.photons.minSCEtBarrel = 5.
65  process.photons.minSCEtEndcap =5.
66  process.photonCore.minSCEt = 5.
67  process.conversionTrackCandidates.minSCEt =5.
68  process.conversions.minSCEt =5.
69  process.trackerOnlyConversions.AllowTrackBC = False
70  process.trackerOnlyConversions.AllowRightBC = False
71  process.trackerOnlyConversions.rCut = 2.
72  process.trackerOnlyConversions.vtxChi2 = 0.0005
73 
74  ###
75  ### end of top level replacements
76  ###
77  ###############################################################################################
78 
79  return (process)