Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
import FWCore.ParameterSet.Config as cms

from RecoMuon.TrackingTools.MuonServiceProxy_cff import *

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
muonKinVsEtaAnalyzer = DQMEDAnalyzer('MuonKinVsEtaAnalyzer',
                                      MuonServiceProxy,
                                      
                                      MuonCollection  = cms.InputTag("muons"),
                                      VertexLabel     = cms.InputTag("offlinePrimaryVertices"),
                                      BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
                                   
                                      pBin = cms.int32(100),
                                      pMin = cms.double(0.0),
                                      pMax = cms.double(100.0),
                                      
                                      ptBin = cms.int32(100),
                                      ptMin = cms.double(0.0),
                                      ptMax = cms.double(100.0),
                                      
                                      etaBin = cms.int32(100),
                                      etaMin = cms.double(-3.0),
                                      etaMax = cms.double(3.0),
                                      
                                      phiBin = cms.int32(100),
                                      phiMin = cms.double(-3.2),
                                      phiMax = cms.double(3.2),
                                      
                                      chiBin = cms.int32(100),
                                      chiMin = cms.double(0.),
                                      chiMax = cms.double(20.),
                                      
                                      chiprobMin = cms.double(0.),
                                      chiprobMax = cms.double(1.),
                                      
                                      etaBMin = cms.double(0.),
                                      etaBMax = cms.double(1.1),
                                      etaECMin = cms.double(0.9),
                                      etaECMax = cms.double(2.4),
                                      etaOvlpMin = cms.double(0.9),
                                      etaOvlpMax = cms.double(1.1),
                                      folder = cms.string("Muons/MuonKinVsEtaAnalyzer")
                                      )
muonKinVsEtaAnalyzer_miniAOD = DQMEDAnalyzer('MuonKinVsEtaAnalyzer',
                                              MuonServiceProxy,
                                              
                                              MuonCollection  = cms.InputTag("slimmedMuons"),
                                              VertexLabel     = cms.InputTag("offlineSlimmedPrimaryVertices"),
                                              BeamSpotLabel   = cms.InputTag("offlineBeamSpot"),
                                              
                                              pBin = cms.int32(100),
                                              pMin = cms.double(0.0),
                                              pMax = cms.double(100.0),
                                              ptBin = cms.int32(100),
                                              ptMin = cms.double(0.0),
                                              ptMax = cms.double(100.0),
                                              
                                              etaBin = cms.int32(100),
                                              etaMin = cms.double(-3.0),
                                              etaMax = cms.double(3.0),
                                              
                                              phiBin = cms.int32(100),
                                              phiMin = cms.double(-3.2),
                                              phiMax = cms.double(3.2),
                                              
                                              chiBin = cms.int32(100),
                                              chiMin = cms.double(0.),
                                              chiMax = cms.double(20.),
                                              
                                              chiprobMin = cms.double(0.),
                                              chiprobMax = cms.double(1.),
                                              
                                              etaBMin = cms.double(0.),
                                              etaBMax = cms.double(1.1),
                                              etaECMin = cms.double(0.9),
                                              etaECMax = cms.double(2.4),
                                              etaOvlpMin = cms.double(0.9),
                                              etaOvlpMax = cms.double(1.1),
                                              folder = cms.string("Muons_miniAOD/MuonKinVsEtaAnalyzer")
                                              )