CMS 3D CMS Logo

reco_TLR_38X.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  ## ECAL
41  process.ecalRecHit.ChannelStatusToBeExcluded = [ 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 78, 142 ]
42 
43  ###
44  ### end of top level replacements
45  ###
46  ###############################################################################################
47 
48  return (process)
49 
50 
51 ##############################################################################
52 def customisePPData(process):
53  process= customiseCommon(process)
54 
55  ## particle flow HF cleaning
56  process.particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
57  process.particleFlowRecHitHCAL.ApplyPulseDPG = True
58 
59  ## HF cleaning for data only
60  process.hcalRecAlgos.SeverityLevels[3].RecHitFlags.remove("HFDigiTime")
61  process.hcalRecAlgos.SeverityLevels[4].RecHitFlags.append("HFDigiTime")
62 
63  ##beam-halo-id for data only
64  process.CSCHaloData.ExpectedBX = cms.int32(3)
65 
66  ## hcal hit flagging
67  process.hfreco.PETstat.flagsToSkip = 2
68  process.hfreco.S8S1stat.flagsToSkip = 18
69  process.hfreco.S9S1stat.flagsToSkip = 26
70 
71  return process
72 
73 
74 ##############################################################################
75 def customisePPMC(process):
76  process=customiseCommon(process)
77 
78  return process
79 
80 ##############################################################################
81 def customiseCosmicData(process):
82 
83  return process
84 
85 ##############################################################################
86 def customiseCosmicMC(process):
87 
88  return process
89 
90 ##############################################################################
91 def customiseVALSKIM(process):
92  process= customisePPData(process)
93  process.reconstruction.remove(process.lumiProducer)
94  return process
95 
96 ##############################################################################
97 def customiseExpress(process):
98  process= customisePPData(process)
99 
101  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
102 
103  return process
104 
105 ##############################################################################
106 def customisePrompt(process):
107  process= customisePPData(process)
108 
110  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
111 
112  return process
def customiseCosmicData(process)
Definition: reco_TLR_38X.py:81
def customisePPData(process)
Definition: reco_TLR_38X.py:52
def customisePPMC(process)
Definition: reco_TLR_38X.py:75
def customiseCommon(process)
Definition: reco_TLR_38X.py:3
def customisePrompt(process)
def customiseVALSKIM(process)
Definition: reco_TLR_38X.py:91
def customiseExpress(process)
Definition: reco_TLR_38X.py:97
def customiseCosmicMC(process)
Definition: reco_TLR_38X.py:86