Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0004 hltMuonOfflineAnalyzer = DQMEDAnalyzer('HLTMuonOfflineAnalyzer',
0005 
0006     ## Used when fetching triggerSummary and triggerResults
0007     hltProcessName = cms.string("HLT"),
0008 
0009     ## Location of plots in DQM
0010     destination = cms.untracked.string("HLT/Muon/Distributions/globalMuons"),
0011 
0012     ## HLT paths passing any one of these regular expressions will be included
0013     hltPathsToCheck = cms.vstring(
0014       "HLT_Mu8_TrkIsoVVL_v",
0015       "HLT_Mu50_v",
0016       "HLT_Mu24_v",
0017       "HLT_IsoMu24_v",
0018       "HLT_IsoMu27_v",
0019       "HLT_IsoMu20_v",
0020       "HLT_HIL3Mu12_v", #for HI
0021       "HLT_HIL3Mu15_v", #for HI
0022       "HLT_HIL3Mu20_v", #for HI
0023       "HLT_CascadeMu100_v",
0024       "HLT_HighPtTkMu100_v"
0025     ),
0026 
0027 #HLT_Mu15_eta2p1_TriCentral_40_20_20_BTagIP3D1stTrack_v3 matches HLT_Mu15_eta2p1_v
0028 
0029     ## All input tags are specified in this pset for convenience
0030     inputTags = cms.PSet(
0031         recoMuon       = cms.InputTag("muons"),
0032         beamSpot       = cms.InputTag("offlineBeamSpot"),
0033         offlinePVs     = cms.InputTag("offlinePrimaryVertices"),
0034         triggerSummary = cms.InputTag("hltTriggerSummaryAOD"),
0035         triggerResults = cms.InputTag("TriggerResults")
0036     ),
0037 
0038     ## Both 1D and 2D plots use the binnings defined here
0039     binParams = cms.untracked.PSet(
0040         ## parameters for fixed-width plots
0041         NVertex    = cms.untracked.vdouble( 1,10,15,20,25,30,35,40,45,50,55,60,65,70,100),
0042         NVertexFine= cms.untracked.vdouble( 1,5,10,12.5,15,17.5,20,22.5,25,27.5,30,32.5,35,37.5,40,42.5,45,47.5,50,52.5,55,57.5,60,62.5,65,67.5,70,85,100),
0043         eta        = cms.untracked.vdouble( 20,  -2.40,   2.40),
0044         phi        = cms.untracked.vdouble( 20,  -3.14,   3.14),
0045         phiHEP17   = cms.untracked.vdouble( -3.14,-2.4,-1.8,-1.0,-0.4,0.0,0.4,1.0,1.8,2.4,3.14),
0046         z0         = cms.untracked.vdouble( 10, -0.15,  0.15),
0047         z0Fine     = cms.untracked.vdouble( 20, -0.15,  0.15),
0048         d0         = cms.untracked.vdouble( 10,  -0.50,   0.50),
0049         zMass      = cms.untracked.vdouble( 50,  65.00, 115.00),
0050         jpsiMass   = cms.untracked.vdouble( 60,   0.00,   6.00),
0051         charge     = cms.untracked.vdouble(  2,  -2.00,   2.00),
0052         deltaR     = cms.untracked.vdouble( 20,   0.00,   0.05),
0053         deltaR2    = cms.untracked.vdouble( 20,    0.0,   4.5 ),
0054         phiCoarse  = cms.untracked.vdouble( 10,  -3.14,   3.14),
0055         resolutionRel = cms.untracked.vdouble( 40,  -0.30,   0.30),
0056         resolutionEta = cms.untracked.vdouble( 20,  -0.01,   0.01),
0057         resolutionPhi = cms.untracked.vdouble( 20,  -0.01,   0.01),
0058         ## parameters for variable-width plots
0059         etaCoarse = cms.untracked.vdouble(-2.4, -2.1, -1.6, -1.2, -0.8, 0.0,
0060                                            0.8,  1.2,  1.6,  2.1,  2.4),
0061         etaFine = cms.untracked.vdouble(-2.4,-2.1,-1.6,-1.2,-0.9,-0.3,
0062                                          -0.2,0.2,0.3,0.9,1.2,1.6,2.1,2.4),
0063         phiFine = cms.untracked.vdouble(-3.14,-(11.0/12.0)*3.14,-(9.0/12.0)*3.14,-(7.0/12.0)*3.14,-(5.0/12.0)*3.14,-
0064 (3.0/12.0)*3.14,-(1.0/12.0)*3.14,(1.0/12.0)*3.14,(3.0/12.0)*3.14,(5.0/12.0)*3.14,(7.0/12.0)*3.14,
0065 (9.0/12.0)*3.14,(11.0/12.0)*3.14,3.14),
0066         ptCoarse = cms.untracked.vdouble(10.0, 20.0, 40.0, 60.0, 80.0, 100.0, 200.0),
0067         ptFine   = cms.untracked.vdouble(10.0,15.0, 20.0,30.0, 40.0,50.0, 60.0,70.0, 80.0,90.0, 100.0,150., 200.0),
0068         pt = cms.untracked.vdouble(  0.0,   2.0,   4.0, 
0069                                      6.0,   8.0,  10.0, 
0070                                     20.0,  30.0,  40.0, 
0071                                    100.0, 200.0, 400.0),
0072     ),
0073 
0074     ## These parameters define which objects are used to fill plots
0075     plotCuts = cms.PSet(
0076         ## not applied on eta plots
0077         maxEta = cms.untracked.double(2.10),
0078         ## only fill plots for muons with pt > ceil(hltThreshold * minPtFactor)
0079         ## ex: for HLT_Mu17, ceil(17 * 1.2 ) = 21, so we require pT > 21
0080         minPtFactor = cms.untracked.double(1.20),
0081         ## deltaR cuts
0082         L1DeltaR = cms.untracked.double(0.30),
0083         L2DeltaR = cms.untracked.double(0.30),
0084         L3DeltaR = cms.untracked.double(0.05),
0085     ),
0086 
0087     ## Only events passing all these triggers will be considered
0088     requiredTriggers   = cms.untracked.vstring(),
0089 
0090     ## This collection is used to fill most distributions
0091     targetParams = cms.PSet(
0092         ## The d0 and z0 cuts are required for the inner track of the
0093         ## reco muons, taken with respect to the beamspot
0094         d0Cut = cms.untracked.double(2.0),
0095         z0Cut = cms.untracked.double(25.0),
0096         ## cuts
0097         recoMaxEtaCut = cms.untracked.double(2.4),
0098         recoMinEtaCut = cms.untracked.double(0.0),
0099         recoGlbMuCut = cms.untracked.bool(True),
0100         hltMaxEtaCut  = cms.untracked.double(2.4),
0101         hltMinEtaCut  = cms.untracked.double(0.0),
0102     ),
0103 
0104     ## If this PSet is empty, then no "tag and probe" plots are produced;
0105     ## the cuts used for the tags are specified by targetParams
0106     probeParams = cms.PSet(
0107         ## The d0 and z0 cuts are required for the inner track of the
0108         ## reco muons, taken with respect to the beamspot
0109         d0Cut = cms.untracked.double(2.0),
0110         z0Cut = cms.untracked.double(25.0),
0111         ## cuts
0112         recoMaxEtaCut = cms.untracked.double(2.4),
0113         recoMinEtaCut = cms.untracked.double(0.0),
0114         recoGlbMuCut = cms.untracked.bool(True),        
0115         hltMaxEtaCut  = cms.untracked.double(2.4),
0116         hltMinEtaCut  = cms.untracked.double(0.0),
0117     ),
0118 
0119 )