CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_7/src/DQM/TrackingMonitor/python/customizeTrackingMonitorSeedNumber.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 def customise_trackMon_IterativeTracking_2012(process):
00004 
00005 ## DEBUGGING
00006 #    if hasattr(process,"trackMonIterativeTracking2012"):
00007 #        print "trackMonIterativeTracking2012 DEFINED !!!"
00008 #    else :
00009 #        print "trackMonIterativeTracking2012 NOT DEFINED !!!"
00010 #    print "IterativeTracking_2012"    
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 ######### Phase1
00031 def customise_trackMon_IterativeTracking_PHASE1(process):
00032 
00033 ## DEBUGGING
00034 #    if hasattr(process,"trackMonIterativeTracking2012"):
00035 #        print "trackMonIterativeTracking2012 DEFINED !!!"
00036 #    else :
00037 #        print "trackMonIterativeTracking2012 NOT DEFINED !!!"
00038 #    print "IterativeTracking_PHASE1"    
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 ######## Phase1 PU70
00059 def customise_trackMon_IterativeTracking_PHASE1PU70(process):
00060 
00061 ## DEBUGGING
00062 #    if hasattr(process,"trackMonIterativeTracking2012"):
00063 #        print "trackMonIterativeTracking2012 DEFINED !!!"
00064 #    else :
00065 #        print "trackMonIterativeTracking2012 NOT DEFINED !!!"
00066 #    print "IterativeTracking_PHASE1_PU70"    
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 ######## Phase1 PU140
00087 def customise_trackMon_IterativeTracking_PHASE1PU140(process):
00088 
00089 ## DEBUGGING
00090 #    if hasattr(process,"trackMonIterativeTracking2012"):
00091 #        print "trackMonIterativeTracking2012 DEFINED !!!"
00092 #    else :
00093 #        print "trackMonIterativeTracking2012 NOT DEFINED !!!"
00094 #    print "IterativeTracking_PHASE1_PU140"    
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