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  #all the non-CSC stuff is here
46  process=customise_Reco(process)
47  process=customise_RawToDigi(process)
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  return process
121 
122 ##############################################################################
123 
124 def planBTracking(process):
125 
126  # stuff from LowPtTripletStep_cff
127  process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.3
128 
129  # stuff from PixelLessStep_cff
130  process.pixelLessStepClusters.oldClusterRemovalInfo=cms.InputTag("tobTecStepClusters")
131  process.pixelLessStepClusters.trajectories= cms.InputTag("tobTecStepTracks")
132  process.pixelLessStepClusters.overrideTrkQuals=cms.InputTag('tobTecStepSelector','tobTecStep')
133  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.7
134  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 1.5
135 
136  # stuff from PixelPairStep_cff
137  process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
138 
139  # stuff from TobTecStep_cff
140  process.tobTecStepClusters.oldClusterRemovalInfo=cms.InputTag("detachedTripletStepClusters")
141  process.tobTecStepClusters.trajectories= cms.InputTag("detachedTripletStepTracks")
142  process.tobTecStepClusters.overrideTrkQuals=cms.InputTag('detachedTripletStep')
143  process.tobTecStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 5.0
144 
145  # stuff from DetachedTripletStep_cff
146  process.detachedTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.35
147 
148  # stuff from iterativeTk_cff
149  process.iterTracking = cms.Sequence(process.InitialStep*
150  process.LowPtTripletStep*
151  process.PixelPairStep*
152  process.DetachedTripletStep*
153  process.TobTecStep*
154  process.PixelLessStep*
155  process.generalTracks*
156  process.ConvStep*
157  process.conversionStepTracks
158  )
159 
160 
161  # stuff from RecoTracker_cff
162  process.newCombinedSeeds.seedCollections=cms.VInputTag(
163  cms.InputTag('initialStepSeeds'),
164  cms.InputTag('pixelPairStepSeeds'),
165  # cms.InputTag('mixedTripletStepSeeds'),
166  cms.InputTag('pixelLessStepSeeds')
167  )
168 
169  # stuff from Kevin's fragment
170  process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
171  cms.InputTag('lowPtTripletStepTracks'),
172  cms.InputTag('pixelPairStepTracks'),
173  cms.InputTag('detachedTripletStepTracks'),
174  cms.InputTag('pixelLessStepTracks'),
175  cms.InputTag('tobTecStepTracks'))
176  process.generalTracks.hasSelector=cms.vint32(1,1,1,1,1,1)
177  process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
178  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
179  cms.InputTag("pixelPairStepSelector","pixelPairStep"),
180  cms.InputTag("detachedTripletStep"),
181  cms.InputTag("pixelLessStepSelector","pixelLessStep"),
182  cms.InputTag("tobTecStepSelector","tobTecStep")
183  )
184  process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) ) )
185 
186 
187  if hasattr(process,'dqmoffline_step'):
188  process.dqmoffline_step.remove(process.TrackMonStep4)
189  #process.dqmoffline_step.remove(process.TrackMonStep5)
190 
191  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:124
def customiseExpress
Definition: RecoTLR.py:70