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 def customiseCosmicMC(process):
29 
30  return process
31 
32 ##############################################################################
33 def customiseVALSKIM(process):
34  print "WARNING"
35  print "this method is outdated, please use RecoTLR.customisePPData"
36  process= customisePPData(process)
37  return process
38 
39 ##############################################################################
40 def customiseExpress(process):
41  process= customisePPData(process)
42 
44  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
45 
46  return process
47 
48 ##############################################################################
49 def customisePrompt(process):
50  process= customisePPData(process)
51 
52  #add the lumi producer in the prompt reco only configuration
53  process.reconstruction_step+=process.lumiProducer
54  return process
55 
56 ##############################################################################
57 ##############################################################################
58 
59 #gone with the fact that there is no difference between production and development sequence
60 #def customiseCommonHI(process):
61 # return process
62 
63 ##############################################################################
64 def customiseExpressHI(process):
65  #deprecated process= customiseCommonHI(process)
66 
68  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
69 
70  return process
71 
72 ##############################################################################
73 def customisePromptHI(process):
74  #deprecated process= customiseCommonHI(process)
75 
77  process.offlineBeamSpot = RecoVertex.BeamSpotProducer.BeamSpotOnline_cfi.onlineBeamSpotProducer.clone()
78 
79  return process
80 
81 ##############################################################################
82 
83 def planBTracking(process):
84 
85  # stuff from LowPtTripletStep_cff
86  process.lowPtTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.3
87 
88  # stuff from PixelLessStep_cff
89  process.pixelLessStepClusters.oldClusterRemovalInfo=cms.InputTag("tobTecStepClusters")
90  process.pixelLessStepClusters.trajectories= cms.InputTag("tobTecStepTracks")
91  process.pixelLessStepClusters.overrideTrkQuals=cms.InputTag('tobTecStepSelector','tobTecStep')
92  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.7
93  process.pixelLessStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 1.5
94 
95  # stuff from PixelPairStep_cff
96  process.pixelPairStepSeeds.RegionFactoryPSet.RegionPSet.ptMin = 0.6
97 
98  # stuff from TobTecStep_cff
99  process.tobTecStepClusters.oldClusterRemovalInfo=cms.InputTag("detachedTripletStepClusters")
100  process.tobTecStepClusters.trajectories= cms.InputTag("detachedTripletStepTracks")
101  process.tobTecStepClusters.overrideTrkQuals=cms.InputTag('detachedTripletStep')
102  process.tobTecStepSeeds.RegionFactoryPSet.RegionPSet.originRadius = 5.0
103 
104  # stuff from DetachedTripletStep_cff
105  process.detachedTripletStepSeeds.RegionFactoryPSet.RegionPSet.ptMin=0.35
106 
107  # stuff from iterativeTk_cff
108  process.iterTracking = cms.Sequence(process.InitialStep*
109  process.LowPtTripletStep*
110  process.PixelPairStep*
111  process.DetachedTripletStep*
112  process.TobTecStep*
113  process.PixelLessStep*
114  process.generalTracks*
115  process.ConvStep*
116  process.conversionStepTracks
117  )
118 
119 
120  # stuff from RecoTracker_cff
121  process.newCombinedSeeds.seedCollections=cms.VInputTag(
122  cms.InputTag('initialStepSeeds'),
123  cms.InputTag('pixelPairStepSeeds'),
124  # cms.InputTag('mixedTripletStepSeeds'),
125  cms.InputTag('pixelLessStepSeeds')
126  )
127 
128  # stuff from Kevin's fragment
129  process.generalTracks.TrackProducers = (cms.InputTag('initialStepTracks'),
130  cms.InputTag('lowPtTripletStepTracks'),
131  cms.InputTag('pixelPairStepTracks'),
132  cms.InputTag('detachedTripletStepTracks'),
133  cms.InputTag('pixelLessStepTracks'),
134  cms.InputTag('tobTecStepTracks'))
135  process.generalTracks.hasSelector=cms.vint32(1,1,1,1,1,1)
136  process.generalTracks.selectedTrackQuals = cms.VInputTag(cms.InputTag("initialStepSelector","initialStep"),
137  cms.InputTag("lowPtTripletStepSelector","lowPtTripletStep"),
138  cms.InputTag("pixelPairStepSelector","pixelPairStep"),
139  cms.InputTag("detachedTripletStep"),
140  cms.InputTag("pixelLessStepSelector","pixelLessStep"),
141  cms.InputTag("tobTecStepSelector","tobTecStep")
142  )
143  process.generalTracks.setsToMerge = cms.VPSet( cms.PSet( tLists=cms.vint32(0,1,2,3,4,5), pQual=cms.bool(True) ) )
144 
145 
146  if hasattr(process,'dqmoffline_step'):
147  process.dqmoffline_step.remove(process.TrackMonStep4)
148  #process.dqmoffline_step.remove(process.TrackMonStep5)
149 
150  return process
def customisePromptHI
Definition: RecoTLR.py:73
def customisePPMC
Definition: RecoTLR.py:17
def customiseCosmicMC
Definition: RecoTLR.py:28
def customiseVALSKIM
Definition: RecoTLR.py:33
def customiseExpressHI
Definition: RecoTLR.py:64
def customiseCosmicData
Definition: RecoTLR.py:23
def customisePPData
Definition: RecoTLR.py:9
def customisePrompt
Definition: RecoTLR.py:49
def planBTracking
Definition: RecoTLR.py:83
def customiseExpress
Definition: RecoTLR.py:40