CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customizeTrackingMonitorSeedNumber.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 ## DEBUGGING
6 # if hasattr(process,"trackMonIterativeTracking2012"):
7 # print "trackMonIterativeTracking2012 DEFINED !!!"
8 # else :
9 # print "trackMonIterativeTracking2012 NOT DEFINED !!!"
10 # print "IterativeTracking_2012"
11 
12  from DQM.TrackingMonitor.TrackingMonitorSeedNumber_cff import trackMonIterativeTracking2012
13 
14  for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
15  idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
16  getattr(process,s).remove(getattr(process,"TrackMonStep0") )
17  getattr(process,s).remove(getattr(process,"TrackMonStep1") )
18  getattr(process,s).remove(getattr(process,"TrackMonStep2") )
19  getattr(process,s).remove(getattr(process,"TrackMonStep3") )
20  getattr(process,s).remove(getattr(process,"TrackMonStep4") )
21  getattr(process,s).remove(getattr(process,"TrackMonStep5") )
22  getattr(process,s).remove(getattr(process,"TrackMonStep6") )
23  getattr(process,s).remove(getattr(process,"TrackMonStep9") )
24  getattr(process,s).remove(getattr(process,"TrackMonStep10") )
25 
26  getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTracking2012"))
27 
28  return process
29 
30 ######### Phase1
32 
33 ## DEBUGGING
34 # if hasattr(process,"trackMonIterativeTracking2012"):
35 # print "trackMonIterativeTracking2012 DEFINED !!!"
36 # else :
37 # print "trackMonIterativeTracking2012 NOT DEFINED !!!"
38 # print "IterativeTracking_PHASE1"
39 
40  process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_PhaseI_cff")
41 
42  for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
43  idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
44  getattr(process,s).remove(getattr(process,"TrackMonStep0") )
45  getattr(process,s).remove(getattr(process,"TrackMonStep1") )
46  getattr(process,s).remove(getattr(process,"TrackMonStep2") )
47  getattr(process,s).remove(getattr(process,"TrackMonStep3") )
48  getattr(process,s).remove(getattr(process,"TrackMonStep4") )
49  getattr(process,s).remove(getattr(process,"TrackMonStep5") )
50  getattr(process,s).remove(getattr(process,"TrackMonStep6") )
51  getattr(process,s).remove(getattr(process,"TrackMonStep9") )
52  getattr(process,s).remove(getattr(process,"TrackMonStep10") )
53 
54  getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhaseI"))
55 
56  return process
57 
58 ######## Phase1 PU70
60 
61 ## DEBUGGING
62 # if hasattr(process,"trackMonIterativeTracking2012"):
63 # print "trackMonIterativeTracking2012 DEFINED !!!"
64 # else :
65 # print "trackMonIterativeTracking2012 NOT DEFINED !!!"
66 # print "IterativeTracking_PHASE1_PU70"
67 
68  process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_Phase1PU70_cff")
69 
70  for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
71  idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
72  getattr(process,s).remove(getattr(process,"TrackMonStep0") )
73  getattr(process,s).remove(getattr(process,"TrackMonStep1") )
74  getattr(process,s).remove(getattr(process,"TrackMonStep2") )
75  getattr(process,s).remove(getattr(process,"TrackMonStep3") )
76  getattr(process,s).remove(getattr(process,"TrackMonStep4") )
77  getattr(process,s).remove(getattr(process,"TrackMonStep5") )
78  getattr(process,s).remove(getattr(process,"TrackMonStep6") )
79  getattr(process,s).remove(getattr(process,"TrackMonStep9") )
80  getattr(process,s).remove(getattr(process,"TrackMonStep10") )
81 
82  getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhase1PU70"))
83 
84  return process
85 
86 ######## Phase1 PU140
88 
89 ## DEBUGGING
90 # if hasattr(process,"trackMonIterativeTracking2012"):
91 # print "trackMonIterativeTracking2012 DEFINED !!!"
92 # else :
93 # print "trackMonIterativeTracking2012 NOT DEFINED !!!"
94 # print "IterativeTracking_PHASE1_PU140"
95 
96  process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_Phase1PU140_cff")
97 
98  for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
99  idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
100  getattr(process,s).remove(getattr(process,"TrackMonStep0") )
101  getattr(process,s).remove(getattr(process,"TrackMonStep1") )
102  getattr(process,s).remove(getattr(process,"TrackMonStep2") )
103  getattr(process,s).remove(getattr(process,"TrackMonStep3") )
104  getattr(process,s).remove(getattr(process,"TrackMonStep4") )
105  getattr(process,s).remove(getattr(process,"TrackMonStep5") )
106  getattr(process,s).remove(getattr(process,"TrackMonStep6") )
107  getattr(process,s).remove(getattr(process,"TrackMonStep9") )
108  getattr(process,s).remove(getattr(process,"TrackMonStep10") )
109 
110  getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhase1PU140"))
111 
112  return process
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
Definition: HCMethods.h:49