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