Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-28 23:48:29

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # TrackingMonitor ####
0004 # Clone for Cosmic Track Finder
0005 from DQM.TrackingMonitor.TrackerCosmicsTrackingMonitor_cfi import *
0006 TrackMon_cosmicTk = TrackerCosmicTrackMon.clone(
0007     TrackProducer = 'cosmictrackfinderP5',
0008     AlgoName = 'CosmicTk',
0009     FolderName = 'Tracking/TrackParameters',
0010     doSeedParameterHistos = True
0011 )
0012 
0013 # Clone for CKF Tracks
0014 from DQM.TrackingMonitor.TrackerCosmicsTrackingMonitor_cfi import *
0015 TrackMon_ckf = TrackerCosmicTrackMon.clone(
0016     TrackProducer = 'ctfWithMaterialTracksP5',
0017     AlgoName = 'CKFTk',
0018     FolderName = 'Tracking/TrackParameters',
0019     doSeedParameterHistos = True
0020 )
0021 
0022 # Clone for Road Search  Tracks
0023 from DQM.TrackingMonitor.TrackerCosmicsTrackingMonitor_cfi import *
0024 TrackMon_rs = TrackerCosmicTrackMon.clone(
0025     TrackProducer = 'rsWithMaterialTracksP5',
0026     AlgoName = 'RSTk',
0027     FolderName = 'Tracking/TrackParameters',
0028     doSeedParameterHistos = True
0029 )
0030 
0031 # Clone for Beam Halo Muon Tracks
0032 # from DQM.TrackingMonitor.TrackerCosmicsTrackingMonitor_cfi import *
0033 # TrackMon_bhmuon = TrackerCosmicTrackMon.clone(
0034 #     TrackProducer = 'ctfWithMaterialTracksBeamHaloMuon',
0035 #     AlgoName = 'BHMuonTk',
0036 #     FolderName = 'Tracking/TrackParameters',
0037 #     doSeedParameterHistos = True
0038 # )
0039 
0040 # Tracking Efficiency
0041 # Clone for Cosmic Tracks
0042 from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
0043 TrackEffMon_cosmicTk = TrackEffMon.clone( 
0044     TKTrackCollection = 'cosmictrackfinderP5',
0045     AlgoName = 'CosmicTk',
0046     FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0047 )
0048 
0049 # Clone for CKF Tracks
0050 from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
0051 TrackEffMon_ckf = TrackEffMon.clone( 
0052     TKTrackCollection = 'ctfWithMaterialTracksP5',
0053     AlgoName = 'CKFTk',
0054     FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0055 )
0056 
0057 # Clone for RS Tracks
0058 # from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
0059 # TrackEffMon_rs = TrackEffMon.clone( 
0060 #     TKTrackCollection = 'rsWithMaterialTracksP5',
0061 #     AlgoName = 'RSTk',
0062 #     FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0063 # )
0064 
0065 # Clone for Beam Halo  Tracks
0066 from DQM.TrackingMonitor.TrackEfficiencyMonitor_cfi import *
0067 TrackEffMon_bhmuon = TrackEffMon.clone( 
0068     TKTrackCollection = 'ctfWithMaterialTracksBeamHaloMuon',
0069     AlgoName = 'BHMuonTk',
0070     FolderName = 'Tracking/TrackParameters/TrackEfficiency'
0071 )
0072 
0073 # Split Tracking
0074 from  DQM.TrackingMonitor.TrackSplittingMonitor_cfi import *
0075 TrackSplitMonitor.FolderName = 'Tracking/TrackParameters/SplitTracks'
0076 
0077 # LogMessageMonitor ####
0078 ### load which are the module to monitor
0079 from DQM.TrackingMonitorSource.EDModules2monitor_cfi import *
0080 
0081 ### load the different flavour of settings of the LogMessageMonitor module
0082 from DQM.TrackingMonitorSource.LogMessageMonitor_cff import *
0083 
0084 for module in selectedModules4cosmics :
0085     label = str(module)+'LogMessageMon'
0086     locals()[label] = LogMessageMonCommon.clone(
0087         pluginsMonName = pluginsMonName[module],
0088         modules = modulesLabel[module],
0089         categories = categories[module]
0090     )
0091     locals()[label].setLabel(label)
0092 
0093 # DQM Services
0094 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0095 dqmInfoTracking = DQMEDAnalyzer('DQMEventInfo',
0096      subSystemFolder = cms.untracked.string('Tracking')
0097 )
0098 
0099 # Sequences 
0100 TrackingDQMTier0_cosmicTk = cms.Sequence(TrackMon_cosmicTk*TrackEffMon_cosmicTk)
0101 
0102 TrackingDQMTier0_ckf = cms.Sequence(TrackMon_ckf*TrackEffMon_ckf)
0103 
0104 #TrackingDQMTier0_rs = cms.Sequence(TrackMon_rs*TrackEffMon_rs)
0105 
0106 #TrackingDQMTier0 = cms.Sequence(TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor*dqmInfoTracking)
0107 TrackingDQMTier0 = cms.Sequence(TrackMon_cosmicTk*TrackMon_ckf*TrackEffMon_ckf*TrackSplitMonitor)
0108 
0109 # MessageLog
0110 for module in selectedModules4cosmics :
0111     label = str(module)+'LogMessageMon'
0112     TrackingDQMTier0_cosmicTk += cms.Sequence(locals()[label])
0113     TrackingDQMTier0_ckf      += cms.Sequence(locals()[label])
0114     TrackingDQMTier0          += cms.Sequence(locals()[label])
0115 
0116 TrackingDQMTier0 += cms.Sequence(dqmInfoTracking)