CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customiseForRunI.py
Go to the documentation of this file.
2 
3 def customiseForRunI(process):
4 
5  # apply only in reco step
6  if not hasattr(process,'reconstruction'):
7  return process
8 
9  # Put back 2012 default tracking. This piece of code is ugly.
10 
11  # first remove the current/default version of trackingGlocalReco
12  # and delete all its descendent sequences that are going to be
13  # redefined later on by the new process.load()
14 
15  # apply only in reco step
16  if not hasattr(process,'reconstruction'):
17  return process
18 
19  tgrIndex = process.globalreco.index(process.trackingGlobalReco)
20  tgrIndexFromReco = process.reconstruction_fromRECO.index(process.trackingGlobalReco)
21  process.globalreco.remove(process.trackingGlobalReco)
22  process.reconstruction_fromRECO.remove(process.trackingGlobalReco)
23  del process.trackingGlobalReco
24  del process.ckftracks
25  del process.ckftracks_wodEdX
26  del process.ckftracks_plus_pixelless
27  del process.ckftracks_woBH
28  del process.iterTracking
29  del process.InitialStep
30  del process.LowPtTripletStep
31  del process.PixelPairStep
32  del process.DetachedTripletStep
33  del process.MixedTripletStep
34  del process.PixelLessStep
35  del process.TobTecStep
36 
37  # Load the new Iterative Tracking configuration
38  process.load("RecoTracker.Configuration.RecoTrackerRunI_cff")
39 
40  process.globalreco.insert(tgrIndex, process.trackingGlobalReco)
41  process.reconstruction_fromRECO.insert(tgrIndexFromReco, process.trackingGlobalReco)
42 
43  return process