CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
reco_TLR_36X.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customiseCommon(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=20000
14  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
15  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 20000
16  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=20000
17  process.thTripletsA.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
18  process.thTripletsB.ClusterCheckPSet.MaxNumberOfPixelClusters = 5000
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 = 4.06
28  process.pixelTracks.RegionFactoryPSet.RegionPSet.originHalfLength = cms.double(40.6)
29 
30  ### 0th step of iterative tracking
31  #---- new parameters ----
32  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.06)
33  process.newSeedFromTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 40.6
34 
35  ### 2nd step of iterative tracking
36  #---- new parameters ----
37  process.secTriplets.RegionFactoryPSet.RegionPSet.nSigmaZ = cms.double(4.47)
38  process.secTriplets.RegionFactoryPSet.RegionPSet.originHalfLength = 44.7
39 
40  ## Primary Vertex
41  process.offlinePrimaryVerticesWithBS.PVSelParameters.maxDistanceToBeam = 2
42  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxNormalizedChi2 = 20
43  process.offlinePrimaryVerticesWithBS.TkFilterParameters.maxD0Significance = 100
44  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minPixelLayersWithHits = 2
45  process.offlinePrimaryVerticesWithBS.TkFilterParameters.minSiliconLayersWithHits = 5
46  process.offlinePrimaryVerticesWithBS.TkClusParameters.TkGapClusParameters.zSeparation = 1
47  process.offlinePrimaryVertices.PVSelParameters.maxDistanceToBeam = 2
48  process.offlinePrimaryVertices.TkFilterParameters.maxNormalizedChi2 = 20
49  process.offlinePrimaryVertices.TkFilterParameters.maxD0Significance = 100
50  process.offlinePrimaryVertices.TkFilterParameters.minPixelLayersWithHits = 2
51  process.offlinePrimaryVertices.TkFilterParameters.minSiliconLayersWithHits = 5
52  process.offlinePrimaryVertices.TkClusParameters.TkGapClusParameters.zSeparation = 1
53 
54  ## ECAL
55  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
56 
57 
58  ## HCAL temporary fixes
59  process.hfreco.samplesToAdd = 4
60 
61  ## EGAMMA
62  process.photons.minSCEtBarrel = 5.
63  process.photons.minSCEtEndcap =5.
64  process.photonCore.minSCEt = 5.
65  process.conversionTrackCandidates.minSCEt =5.
66  process.conversions.minSCEt =5.
67  process.trackerOnlyConversions.rCut = 2.
68  process.trackerOnlyConversions.vtxChi2 = 0.0005
69 
70  ###
71  ### end of top level replacements
72  ###
73  ###############################################################################################
74 
75  return (process)
76 
77 
78 ##############################################################################
79 def customisePPData(process):
80  process= customiseCommon(process)
81  process.hfreco.firstSample=3
82  ##Preshower
83  process.ecalPreshowerRecHit.ESBaseline = 0
84 
85  ## local tracker strip reconstruction
86  process.OutOfTime.TOBlateBP=0.071
87  process.OutOfTime.TIBlateBP=0.036
88 
89  return process
90 
91 
92 ##############################################################################
93 def customisePPMC(process):
94  process=customiseCommon(process)
95  process.hfreco.firstSample=1
96 
97  return process
98 
99 ##############################################################################
100 def customiseCosmicData(process):
101  process.ecalPreshowerRecHit.ESBaseline = 0
102 
103  return process
104 
105 ##############################################################################
106 def customiseCosmicMC(process):
107 
108  return process
109 
110 
111 ##############################################################################
112 def customiseExpress(process):
113  process= customisePPData(process)
114 
116  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
117 
118  return process
119 
120 ##############################################################################
121 def customisePrompt(process):
122  process= customisePPData(process)
123 
125  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
126 
127  return process
def customiseCosmicData
def customiseCosmicMC
def customiseExpress
def customiseCommon
Definition: reco_TLR_36X.py:3
def customisePPData
Definition: reco_TLR_36X.py:79