CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customiseForRunI Namespace Reference

Functions

def customiseForRunI
 

Function Documentation

def customiseForRunI.customiseForRunI (   process)

Definition at line 3 of file customiseForRunI.py.

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