CMS 3D CMS Logo

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

Functions

def customise
 

Function Documentation

def customise_Collision_35X.customise (   process)

Definition at line 2 of file customise_Collision_35X.py.

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