CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
reco_TLR_311X.py
Go to the documentation of this file.
2 
3 def customiseCommon(process):
4 
5  #####################################################################################################
6  ####
7  #### Top level replaces for handling strange scenarios of early collisions
8  ####
9 
10  ## TRACKING:
11  process.newSeedFromTriplets.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(100000)
12  process.newSeedFromPairs.OrderedHitsFactoryPSet.maxElement = cms.uint32(100000)
13  process.secTriplets.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(100000)
14  process.thTripletsA.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(100000)
15  process.thTripletsB.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = cms.uint32(100000)
16  process.fourthPLSeeds.OrderedHitsFactoryPSet.maxElement = cms.uint32(100000)
17  process.fifthSeeds.OrderedHitsFactoryPSet.maxElement = cms.uint32(100000)
18 
19  ###### FIXES TRIPLETS FOR LARGE BS DISPLACEMENT ######
20 
21  ### prevent bias in pixel vertex
22  process.pixelVertices.useBeamConstraint = False
23 
24  ###
25  ### end of top level replacements
26  ###
27  ###############################################################################################
28 
29  return (process)
30 
31 
32 ##############################################################################
33 def customisePPData(process):
34  process= customiseCommon(process)
35 
36  ## particle flow HF cleaning
37  process.particleFlowRecHitHCAL.LongShortFibre_Cut = 30.
38  process.particleFlowRecHitHCAL.ApplyPulseDPG = True
39 
40  ## HF cleaning for data only
41  process.hcalRecAlgos.SeverityLevels[3].RecHitFlags.remove("HFDigiTime")
42  process.hcalRecAlgos.SeverityLevels[4].RecHitFlags.append("HFDigiTime")
43 
44  ##beam-halo-id for data only
45  process.CSCHaloData.ExpectedBX = cms.int32(3)
46 
47  ## hcal hit flagging
48  process.hfreco.PETstat.flagsToSkip = 2
49  process.hfreco.S8S1stat.flagsToSkip = 18
50  process.hfreco.S9S1stat.flagsToSkip = 26
51 
52  ##Ecal time bias correction
53  process.ecalGlobalUncalibRecHit.doEBtimeCorrection = True
54  process.ecalGlobalUncalibRecHit.doEEtimeCorrection = True
55 
56  return process
57 
58 
59 ##############################################################################
60 def customisePPMC(process):
61  process=customiseCommon(process)
62 
63  return process
64 
65 ##############################################################################
66 def customiseCosmicData(process):
67 
68  return process
69 
70 ##############################################################################
71 def customiseCosmicMC(process):
72 
73  return process
74 
75 ##############################################################################
76 def customiseVALSKIM(process):
77  process= customisePPData(process)
78  process.reconstruction.remove(process.lumiProducer)
79  return process
80 
81 ##############################################################################
82 def customiseExpress(process):
83  process= customisePPData(process)
84 
86  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
87 
88  return process
89 
90 ##############################################################################
91 def customisePrompt(process):
92  process= customisePPData(process)
93 
94  return process
95 
96 ##############################################################################
97 ##############################################################################
98 
99 def customiseCommonHI(process):
100 
101  ###############################################################################################
102  ####
103  #### Top level replaces for handling strange scenarios of early HI collisions
104  ####
105 
106  ## Offline Silicon Tracker Zero Suppression
107  process.siStripZeroSuppression.Algorithms.CommonModeNoiseSubtractionMode = cms.string("IteratedMedian")
108  process.siStripZeroSuppression.Algorithms.CutToAvoidSignal = cms.double(2.0)
109  process.siStripZeroSuppression.Algorithms.Iterations = cms.int32(3)
110  process.siStripZeroSuppression.storeCM = cms.bool(True)
111 
112 
113  ###
114  ### end of top level replacements
115  ###
116  ###############################################################################################
117 
118  return process
119 
120 ##############################################################################
121 def customiseExpressHI(process):
122  process= customiseCommonHI(process)
123 
125  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
126 
127  return process
128 
129 ##############################################################################
130 def customisePromptHI(process):
131  process= customiseCommonHI(process)
132 
134  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
135 
136  return process
137 
138 ##############################################################################
def customiseCosmicData