CMS 3D CMS Logo

reco_TLR_35X.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customiseCommon(process):
4 
5 
6  #####################################################################################################
7  ####
8  #### Top level replaces for handling strange scenarios of early collisions
9  ####
10 
11  ## TRACKING:
12  ## Skip events with HV off
13  process.newSeedFromTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
14  process.newSeedFromPairs.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
15  process.secTriplets.ClusterCheckPSet.MaxNumberOfPixelClusters=2000
16  process.fifthSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters = 10000
17  process.fourthPLSeeds.ClusterCheckPSet.MaxNumberOfCosmicClusters=10000
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  ## HCAL temporary fixes
60  process.hfreco.samplesToAdd = 4
61 
62  ## EGAMMA
63  process.gsfElectrons.applyPreselection = cms.bool(False)
64  process.photons.minSCEtBarrel = 2.
65  process.photons.minSCEtEndcap =2.
66  process.photonCore.minSCEt = 2.
67  process.conversionTrackCandidates.minSCEt =1.
68  process.conversions.minSCEt =1.
69  process.trackerOnlyConversions.AllowTrackBC = cms.bool(False)
70  process.trackerOnlyConversions.AllowRightBC = cms.bool(False)
71  process.trackerOnlyConversions.MinApproach = cms.double(-.25)
72  process.trackerOnlyConversions.DeltaCotTheta = cms.double(.07)
73  process.trackerOnlyConversions.DeltaPhi = cms.double(.2)
74 
75  ###
76  ### end of top level replacements
77  ###
78  ###############################################################################################
79 
80  return (process)
81 
82 
83 ##############################################################################
84 def customisePPData(process):
85  process= customiseCommon(process)
86  process.hfreco.firstSample=3
87  ##Preshower
88  process.ecalPreshowerRecHit.ESBaseline = 0
89 
90  ##Preshower algo for data is different than for MC
91  process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
92 
93  return process
94 
95 
96 ##############################################################################
97 def customisePPMC(process):
98  process=customiseCommon(process)
99  process.hfreco.firstSample=1
100 
101  return process
102 
103 ##############################################################################
104 def customiseCosmicData(process):
105  process.ecalPreshowerRecHit.ESBaseline = cms.int32(0)
106  process.ecalPreshowerRecHit.ESRecoAlgo = cms.untracked.int32(1)
107 
108  return process
109 
110 ##############################################################################
111 def customiseCosmicMC(process):
112 
113  return process
114 
115 
116 ##############################################################################
117 def customiseExpress(process):
118  process= customisePPData(process)
119 
120  return process
def customiseExpress(process)
def customiseCosmicData(process)
def customiseCosmicMC(process)
def customisePPData(process)
Definition: reco_TLR_35X.py:84
def customiseCommon(process)
Definition: reco_TLR_35X.py:3
def customisePPMC(process)
Definition: reco_TLR_35X.py:97