CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customise_Collision_36X.py
Go to the documentation of this file.
1 
2 def customise(process):
3 
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=20000
13  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
14  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 20000
15  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters= 20000
16  process.thTripletsA.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
17  process.thTripletsB.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
18 
19  ## local tracker strip reconstruction
20  process.OutOfTime.TOBlateBP=0.071
21  process.OutOfTime.TIBlateBP=0.036
22 
23  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
24 
25  ### prevent bias in pixel vertex
26  process.pixelVertices.useBeamConstraint = False
27 
28  ### pixelTracks
29  #---- new parameters ----
30  process.pixelTracks.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
31  process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
32 
33  ### 0th step of iterative tracking
34  #---- new parameters ----
35  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
36  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
37 
38  ### 2nd step of iterative tracking
39  #---- new parameters ----
40  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47)
41  process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
42 
43  ## Primary Vertex
44  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
45  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
46  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
47  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
48  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
49  process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
50  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
51  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
52  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
53  process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
54  process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
55  process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.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  ## HCAL temporary fixes
64  process.hfreco.firstSample = 3
65  process.hfreco.samplesToAdd = 4
66 
67  ## EGAMMA
68  process.photons.minSCEtBarrel = 5.
69  process.photons.minSCEtEndcap =5.
70  process.photonCore.minSCEt = 5.
71  process.conversionTrackCandidates.minSCEt =5.
72  process.conversions.minSCEt =5.
73  process.trackerOnlyConversions.rCut = 2.
74  process.trackerOnlyConversions.vtxChi2 = 0.0005
75 
76  ###
77  ### end of top level replacements
78  ###
79  ###############################################################################################
80 
81 
82  #add the DQM stream for this time only
83  # DQMStream output definition
84  process.outputDQMStream = cms.OutputModule("PoolOutputModule",
85  outputCommands = cms.untracked.vstring('drop *',
86  'keep *_MEtoEDMConverter_*_*'),
87  fileName = cms.untracked.string('DQMStream.root'),
88  dataset = cms.untracked.PSet(
89  filterName = cms.untracked.string(''),
90  dataTier = cms.untracked.string('DQM')
91  )
92  )
93  process.outputDQMStreamOutPath = cms.EndPath(process.outputDQMStream)
94  process.schedule.append( process.outputDQMStreamOutPath )
95 
96 
97 
98  return (process)