00001 import FWCore.ParameterSet.Config as cms
00002
00003 def customise_trackMon_IterativeTracking_2012(process):
00004
00005
00006
00007
00008
00009
00010
00011
00012 from DQM.TrackingMonitor.TrackingMonitorSeedNumber_cff import trackMonIterativeTracking2012
00013
00014 for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
00015 idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
00016 getattr(process,s).remove(getattr(process,"TrackMonStep0") )
00017 getattr(process,s).remove(getattr(process,"TrackMonStep1") )
00018 getattr(process,s).remove(getattr(process,"TrackMonStep2") )
00019 getattr(process,s).remove(getattr(process,"TrackMonStep3") )
00020 getattr(process,s).remove(getattr(process,"TrackMonStep4") )
00021 getattr(process,s).remove(getattr(process,"TrackMonStep5") )
00022 getattr(process,s).remove(getattr(process,"TrackMonStep6") )
00023 getattr(process,s).remove(getattr(process,"TrackMonStep9") )
00024 getattr(process,s).remove(getattr(process,"TrackMonStep10") )
00025
00026 getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTracking2012"))
00027
00028 return process
00029
00030
00031 def customise_trackMon_IterativeTracking_PHASE1(process):
00032
00033
00034
00035
00036
00037
00038
00039
00040 process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_PhaseI_cff")
00041
00042 for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
00043 idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
00044 getattr(process,s).remove(getattr(process,"TrackMonStep0") )
00045 getattr(process,s).remove(getattr(process,"TrackMonStep1") )
00046 getattr(process,s).remove(getattr(process,"TrackMonStep2") )
00047 getattr(process,s).remove(getattr(process,"TrackMonStep3") )
00048 getattr(process,s).remove(getattr(process,"TrackMonStep4") )
00049 getattr(process,s).remove(getattr(process,"TrackMonStep5") )
00050 getattr(process,s).remove(getattr(process,"TrackMonStep6") )
00051 getattr(process,s).remove(getattr(process,"TrackMonStep9") )
00052 getattr(process,s).remove(getattr(process,"TrackMonStep10") )
00053
00054 getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhaseI"))
00055
00056 return process
00057
00058
00059 def customise_trackMon_IterativeTracking_PHASE1PU70(process):
00060
00061
00062
00063
00064
00065
00066
00067
00068 process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_Phase1PU70_cff")
00069
00070 for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
00071 idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
00072 getattr(process,s).remove(getattr(process,"TrackMonStep0") )
00073 getattr(process,s).remove(getattr(process,"TrackMonStep1") )
00074 getattr(process,s).remove(getattr(process,"TrackMonStep2") )
00075 getattr(process,s).remove(getattr(process,"TrackMonStep3") )
00076 getattr(process,s).remove(getattr(process,"TrackMonStep4") )
00077 getattr(process,s).remove(getattr(process,"TrackMonStep5") )
00078 getattr(process,s).remove(getattr(process,"TrackMonStep6") )
00079 getattr(process,s).remove(getattr(process,"TrackMonStep9") )
00080 getattr(process,s).remove(getattr(process,"TrackMonStep10") )
00081
00082 getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhase1PU70"))
00083
00084 return process
00085
00086
00087 def customise_trackMon_IterativeTracking_PHASE1PU140(process):
00088
00089
00090
00091
00092
00093
00094
00095
00096 process.load("DQM.TrackingMonitor.TrackingMonitorSeedNumber_Phase1PU140_cff")
00097
00098 for s in ["SiStripDQMTier0", "SiStripDQMTier0Common", "SiStripDQMTier0MinBias"] :
00099 idx = getattr(process,s).index(getattr(process,"TrackMonStep0"))
00100 getattr(process,s).remove(getattr(process,"TrackMonStep0") )
00101 getattr(process,s).remove(getattr(process,"TrackMonStep1") )
00102 getattr(process,s).remove(getattr(process,"TrackMonStep2") )
00103 getattr(process,s).remove(getattr(process,"TrackMonStep3") )
00104 getattr(process,s).remove(getattr(process,"TrackMonStep4") )
00105 getattr(process,s).remove(getattr(process,"TrackMonStep5") )
00106 getattr(process,s).remove(getattr(process,"TrackMonStep6") )
00107 getattr(process,s).remove(getattr(process,"TrackMonStep9") )
00108 getattr(process,s).remove(getattr(process,"TrackMonStep10") )
00109
00110 getattr(process,s).insert(idx,getattr(process,"trackMonIterativeTrackingPhase1PU140"))
00111
00112 return process