CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTLR.py
Go to the documentation of this file.
2 
3 from SLHCUpgradeSimulations.Configuration.postLS1Customs import customise_Reco,customise_RawToDigi
4 
5 #gone with the fact that there is no difference between production and development sequence
6 #def customiseCommon(process):
7 # return (process)
8 
9 
10 ##############################################################################
11 def customisePPData(process):
12  #deprecated process= customiseCommon(process)
13  ##all customisation for data are now deprecated to Reconstruction_Data_cff
14  #left as a place holder to alter production sequences in case of emergencies
15  return process
16 
17 
18 ##############################################################################
19 def customisePPMC(process):
20  #deprecated process=customiseCommon(process)
21  #left as a place holder to alter production sequences in case of emergencies
22  return process
23 
24 ##############################################################################
25 def customiseCosmicData(process):
26 
27  return process
28 
29 
30 
31 ##############################################################################
32 # this is supposed to be added on top of other (Run1) data customs
34  process.CSCGeometryESModule.useGangedStripsInME1a = cms.bool(False)
35  process.CSCIndexerESProducer.AlgoName=cms.string("CSCIndexerPostls1")
36  process.CSCChannelMapperESProducer.AlgoName=cms.string("CSCChannelMapperPostls1")
37  process.csc2DRecHits.readBadChannels = cms.bool(False)
38  process.csc2DRecHits.CSCUseGasGainCorrections = cms.bool(False)
39  if hasattr(process,'valCscTriggerPrimitiveDigis'):
40  #this is not doing anything at the moment
41  process.valCscTriggerPrimitiveDigis.commonParam.gangedME1a = cms.untracked.bool(False)
42  if hasattr(process,'valCsctfTrackDigis'):
43  process.valCsctfTrackDigis.gangedME1a = cms.untracked.bool(False)
44 
45  process=customise_Reco(process)
46  process=customise_RawToDigi(process)
47 
48  return process
49 
50 ##############################################################################
52  process = customiseCosmicData(process)
53  process = customiseDataRun2Common(process)
54  return process
55 
56 
57 ##############################################################################
58 def customiseCosmicMC(process):
59 
60  return process
61 
62 ##############################################################################
63 def customiseVALSKIM(process):
64  print "WARNING"
65  print "this method is outdated, please use RecoTLR.customisePPData"
66  process= customisePPData(process)
67  return process
68 
69 ##############################################################################
70 def customiseExpress(process):
71  process= customisePPData(process)
72 
74  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
75 
76  return process
77 
78 ##############################################################################
79 def customiseExpressRun2(process):
80  process = customiseExpress(process)
81  process = customiseDataRun2Common(process)
82  return process
83 
84 ##############################################################################
85 def customisePrompt(process):
86  process= customisePPData(process)
87 
88  #add the lumi producer in the prompt reco only configuration
89  process.reconstruction_step+=process.lumiProducer
90  return process
91 
92 ##############################################################################
93 def customisePromptRun2(process):
94  process = customisePrompt(process)
95  process = customiseDataRun2Common(process)
96  return process
97 
98 ##############################################################################
99 
100 #gone with the fact that there is no difference between production and development sequence
101 #def customiseCommonHI(process):
102 # return process
103 
104 ##############################################################################
105 def customiseExpressHI(process):
106  #deprecated process= customiseCommonHI(process)
107 
109  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
110 
111  return process
112 
113 ##############################################################################
114 def customisePromptHI(process):
115  #deprecated process= customiseCommonHI(process)
116 
118  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
119 
120  #add the lumi producer in the prompt reco only configuration
121  process.reconstruction_step+=process.lumiProducer
122 
123  return process
124 
125 ##############################################################################
126 
127 def planBTracking(process):
128 
129  # stuff from LowPtTripletStep_cff
130  process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.3
131 
132  # stuff from PixelLessStep_cff
133  process.pixelLessStepClusters.oldClusterRemovalInfo=cms.InputTag("tobTecStepClusters")
134  process.pixelLessStepClusters.trajectories= cms.InputTag("tobTecStepTracks")
135  process.pixelLessStepClusters.overrideTrkQuals=cms.InputTag('tobTecStepSelector','tobTecStep')
136  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.7
137  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 1.5
138 
139  # stuff from PixelPairStep_cff
140  process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
141 
142  # stuff from TobTecStep_cff
143  process.tobTecStepClusters.oldClusterRemovalInfo=cms.InputTag("detachedTripletStepClusters")
144  process.tobTecStepClusters.trajectories= cms.InputTag("detachedTripletStepTracks")
145  process.tobTecStepClusters.overrideTrkQuals=cms.InputTag('detachedTripletStep')
146  process.tobTecStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 5.0
147 
148  # stuff from DetachedTripletStep_cff
149  process.detachedTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.35
150 
151  # stuff from iterativeTk_cff
152  process.iterTracking = cms.Sequence(process.InitialStep*
153  process.LowPtTripletStep*
154  process.PixelPairStep*
155  process.DetachedTripletStep*
156  process.TobTecStep*
157  process.PixelLessStep*
158  process.generalTracks*
159  process.ConvStep*
160  process.conversionStepTracks
161  )
162 
163 
164  # stuff from RecoTracker_cff
165  process.newCombinedSeeds.seedCollections=cms.VInputTag(
166  cms.InputTag('initialStepSeeds'),
167  cms.InputTag('pixelPairStepSeeds'),
168  # cms.InputTag('mixedTripletStepSeeds'),
169  cms.InputTag('pixelLessStepSeeds')
170  )
171 
172  # stuff from Kevin's fragment
173  process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
174  cms.InputTag('lowPtTripletStepTracks'),
175  cms.InputTag('pixelPairStepTracks'),
176  cms.InputTag('detachedTripletStepTracks'),
177  cms.InputTag('pixelLessStepTracks'),
178  cms.InputTag('tobTecStepTracks'))
179  process.generalTracks.hasSelector=cms.vint32(1,1,1,1,1,1)
180  process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
181  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
182  cms.InputTag("pixelPairStepSelector","pixelPairStep"),
183  cms.InputTag("detachedTripletStep"),
184  cms.InputTag("pixelLessStepSelector","pixelLessStep"),
185  cms.InputTag("tobTecStepSelector","tobTecStep")
186  )
187  process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) ) )
188 
189 
190  if hasattr(process,'dqmoffline_step'):
191  process.dqmoffline_step.remove(process.TrackMonStep4)
192  #process.dqmoffline_step.remove(process.TrackMonStep5)
193 
194  return process
def customiseDataRun2Common
this is supposed to be added on top of other (Run1) data customs
Definition: RecoTLR.py:33
def customisePromptHI
Definition: RecoTLR.py:114
def customisePPMC
Definition: RecoTLR.py:19
def customiseCosmicMC
Definition: RecoTLR.py:58
def customiseVALSKIM
Definition: RecoTLR.py:63
def customiseCosmicDataRun2
Definition: RecoTLR.py:51
def customiseExpressRun2
Definition: RecoTLR.py:79
def customiseExpressHI
Definition: RecoTLR.py:105
def customiseCosmicData
Definition: RecoTLR.py:25
def customisePromptRun2
Definition: RecoTLR.py:93
def customisePPData
Definition: RecoTLR.py:11
def customisePrompt
Definition: RecoTLR.py:85
def customise_RawToDigi
Definition: HCalCustoms.py:105
def customise_Reco
Definition: HCalCustoms.py:138
def planBTracking
Definition: RecoTLR.py:127
def customiseExpress
Definition: RecoTLR.py:70