Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:39

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 effPlotterLoose = DQMEDHarvester("EfficiencyPlotter",
0005                                   folder = cms.string("Muons/EfficiencyAnalyzer"),
0006                                   phiMin = cms.double(-3.2),
0007                                   etaMin = cms.double(-2.5),
0008                                   ptMin  = cms.double(10),
0009                                   etaBin = cms.int32(8),
0010                                   ptBin = cms.int32(10),
0011                                   phiBin = cms.int32(8),
0012                                   etaMax = cms.double(2.5),
0013                                   phiMax = cms.double(3.2),
0014                                   ptMax  = cms.double(100),
0015                                   vtxBin = cms.int32(30),
0016                                   vtxMin = cms.double(0.5),
0017                                   vtxMax = cms.double(149.5),
0018                                   MuonID = cms.string("Loose")
0019                                   )
0020 
0021 
0022 effPlotterMedium = DQMEDHarvester("EfficiencyPlotter",
0023                                    folder = cms.string("Muons/EfficiencyAnalyzer"),
0024                                    phiMin = cms.double(-3.2),
0025                                    etaMin = cms.double(-2.5),
0026                                    ptMin  = cms.double(10),
0027                                    etaBin = cms.int32(8),
0028                                    ptBin = cms.int32(10),
0029                                    phiBin = cms.int32(8),
0030                                    etaMax = cms.double(2.5),
0031                                    phiMax = cms.double(3.2),
0032                                    ptMax  = cms.double(100),
0033                                    vtxBin = cms.int32(30),
0034                                    vtxMin = cms.double(0.5),
0035                                    vtxMax = cms.double(149.5),
0036                                    MuonID = cms.string("Medium")
0037                                    )
0038 
0039 
0040 effPlotterTight = DQMEDHarvester("EfficiencyPlotter",
0041                                   folder = cms.string("Muons/EfficiencyAnalyzer"),
0042                                   phiMin = cms.double(-3.2),
0043                                   etaMin = cms.double(-2.5),
0044                                   ptMin  = cms.double(10),
0045                                   etaBin = cms.int32(8),
0046                                   ptBin = cms.int32(10),
0047                                   phiBin = cms.int32(8),
0048                                   etaMax = cms.double(2.5),
0049                                   phiMax = cms.double(3.2),
0050                                   ptMax  = cms.double(100),
0051                                   vtxBin = cms.int32(30),
0052                                   vtxMin = cms.double(0.5),
0053                                   vtxMax = cms.double(149.5),
0054                                   MuonID = cms.string("Tight")
0055                                   )
0056 effPlotterLooseMiniAOD = DQMEDHarvester("EfficiencyPlotter",
0057                                           folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
0058                                           phiMin = cms.double(-3.2),
0059                                           etaMin = cms.double(-2.5),
0060                                           ptMin  = cms.double(10),
0061                                           etaBin = cms.int32(8),
0062                                           ptBin = cms.int32(10),
0063                                           phiBin = cms.int32(8),
0064                                           etaMax = cms.double(2.5),
0065                                           phiMax = cms.double(3.2),
0066                                           ptMax  = cms.double(100),
0067                                           vtxBin = cms.int32(30),
0068                                           vtxMin = cms.double(0.5),
0069                                           vtxMax = cms.double(149.5),
0070                                           MuonID = cms.string("Loose")
0071                                           )
0072 
0073 
0074 effPlotterMediumMiniAOD = DQMEDHarvester("EfficiencyPlotter",
0075                                            folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
0076                                            phiMin = cms.double(-3.2),
0077                                            etaMin = cms.double(-2.5),
0078                                            ptMin  = cms.double(10),
0079                                            etaBin = cms.int32(8),
0080                                            ptBin = cms.int32(10),
0081                                            phiBin = cms.int32(8),
0082                                            etaMax = cms.double(2.5),
0083                                            phiMax = cms.double(3.2),
0084                                            ptMax  = cms.double(100),
0085                                            vtxBin = cms.int32(30),
0086                                            vtxMin = cms.double(0.5),
0087                                            vtxMax = cms.double(149.5),
0088                                            MuonID = cms.string("Medium")
0089                                            )
0090 
0091 
0092 effPlotterTightMiniAOD = DQMEDHarvester("EfficiencyPlotter",
0093                                           folder = cms.string("Muons_miniAOD/EfficiencyAnalyzer"),
0094                                           phiMin = cms.double(-3.2),
0095                                           etaMin = cms.double(-2.5),
0096                                           ptMin  = cms.double(10),
0097                                           etaBin = cms.int32(8),
0098                                           ptBin = cms.int32(10),
0099                                           phiBin = cms.int32(8),
0100                                           etaMax = cms.double(2.5),
0101                                           phiMax = cms.double(3.2),
0102                                           ptMax  = cms.double(100),
0103                                           vtxBin = cms.int32(30),
0104                                           vtxMin = cms.double(0.5),
0105                                           vtxMax = cms.double(149.5),
0106                                           MuonID = cms.string("Tight")
0107                                           )
0108 
0109 
0110 effPlotter=cms.Sequence(effPlotterLoose*effPlotterMedium*effPlotterTight)
0111 effPlotter_miniAOD=cms.Sequence(effPlotterLooseMiniAOD*effPlotterMediumMiniAOD*effPlotterTightMiniAOD)   
0112 
0113 effPlotterLoose_Phase2=effPlotterLoose.clone(
0114     vtxBin=20,
0115     vtxMin=149.5,
0116     vtxMax=249.5
0117     )
0118 effPlotterMedium_Phase2=effPlotterMedium.clone(
0119     vtxBin=20,
0120     vtxMin=149.5,
0121     vtxMax=249.5                                                                                           
0122 )
0123 effPlotterTight_Phase2=effPlotterTight.clone(
0124     vtxBin=20,
0125     vtxMin=149.5,
0126     vtxMax=249.5                                                                                              
0127 )
0128 effPlotterLooseMiniAOD_Phase2=effPlotterLooseMiniAOD.clone(                                                                                
0129     vtxBin=20,
0130     vtxMin=149.5,
0131     vtxMax=249.5
0132 )
0133 effPlotterMediumMiniAOD_Phase2=effPlotterMediumMiniAOD.clone(
0134     vtxBin=20,
0135     vtxMin=149.5,
0136     vtxMax=249.5
0137 )                                                                              
0138 effPlotterTightMiniAOD_Phase2=effPlotterTightMiniAOD.clone(
0139     vtxBin=20,
0140     vtxMin=149.5,
0141     vtxMax=249.5                                                                                
0142 )
0143 
0144 effPlotter_Phase2=cms.Sequence(effPlotterLoose_Phase2*effPlotterMedium_Phase2*effPlotterTight_Phase2)
0145 effPlotter_miniAOD_Phase2=cms.Sequence(effPlotterLooseMiniAOD_Phase2*effPlotterMediumMiniAOD_Phase2*effPlotterTightMiniAOD_Phase2)                                    
0146 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon                                                                         
0147 phase2_muon.toReplaceWith(effPlotter,effPlotter_Phase2)     
0148 phase2_muon.toReplaceWith(effPlotter_miniAOD,effPlotter_miniAOD_Phase2)  
0149 
0150