CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customise_CollisionMC_35X Namespace Reference

Functions

def customise
 

Function Documentation

def customise_CollisionMC_35X.customise (   process)

Definition at line 2 of file customise_CollisionMC_35X.py.

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