import FWCore.ParameterSet.Config as cms

#Analyzer taken from online dqm
from DQM.TrackingMonitor.MonitorTrackSTAMuons_cfi import *
from DQM.TrackingMonitor.MonitorTrackGLBMuons_cfi import *
from DQM.TrackingMonitor.MonitorTrackInnerTrackMuons_cff import *


#dedicated analyzers for offline dqm 
from DQMOffline.Muon.muonAnalyzer_cff import *
from DQMOffline.Muon.CSCMonitor_cfi import *
from DQMOffline.Muon.muonIdDQM_cff import *
from DQMOffline.Muon.muonIsolationDQM_cff import *

#dedicated clients for offline dqm 
from DQMOffline.Muon.muonQualityTests_cff import *

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
dqmInfoMuons = DQMEDAnalyzer('DQMEventInfo',
                              subSystemFolder = cms.untracked.string('Muons')
                              )

muonTrackAnalyzers = cms.Sequence(MonitorTrackSTAMuons*MonitorTrackGLBMuons*MonitorTrackINNMuons)

muonMonitors = cms.Sequence(muonTrackAnalyzers*
                            cscMonitor*
                            muonAnalyzer*
                            muonIdDQM*
                            dqmInfoMuons*
                            muIsoDQM_seq)

muonMonitors_miniAOD = cms.Sequence( muonAnalyzer_miniAOD*
                                     muIsoDQM_seq_miniAOD)


muonMonitorsAndQualityTests = cms.Sequence(muonMonitors*muonQualityTests)
