CMS 3D CMS Logo

PFMuonDQMAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 pfMuonDQMAnalyzer = DQMEDAnalyzer('PFMuonDQMAnalyzer',
5  InputCollection = cms.InputTag('muons'),
6  MatchCollection = cms.InputTag('gensource'),
7  BenchmarkLabel = cms.string('PFMuonValidation/PFMuonVsGenMuon'),
8  deltaRMax = cms.double(0.2),
9  matchCharge = cms.bool(True),
10  mode = cms.int32( 1 ),
11  CreateReferenceHistos = cms.bool(True),
12  CreateEfficiencyHistos = cms.bool(False),
13  ptMin = cms.double( 0.0 ), # since pT_reco seem to have this threshold
14  ptMax = cms.double( 999999 ),
15  etaMin = cms.double(-2.5),
16  etaMax = cms.double(2.5),
17  phiMin = cms.double(-3.14),
18  phiMax = cms.double(3.14),
19  # slimmed muons selection
20  slimmedLikeSelection = cms.bool(True),
21  ptBase = cms.double(5.0),
22  ptNotPF = cms.double(3.0),
23  # Histogram Parameters related to pt
24  #VariablePtBins = cms.vdouble(0.,1.,2.,5.,10.,20.,50.,100.,200.,400.,1000.),
25  VariablePtBins = cms.vdouble(0.), # if only one entry PtHistoParameter used
26  PtHistoParameter = cms.PSet(
27  switchOn = cms.bool(True),
28  nBin = cms.int32(60),
29  xMin = cms.double(0.0),
30  xMax = cms.double(120.0)
31  ),
32  DeltaPtHistoParameter = cms.PSet(
33  switchOn = cms.bool(True),
34  nBin = cms.int32(100),
35  xMin = cms.double(-30.0),
36  xMax = cms.double(30.0)
37  ),
38  DeltaPtOvPtHistoParameter = cms.PSet(
39  switchOn = cms.bool(True),
40  BROn = cms.bool(False), BREtaMin = cms.double(0.0), BREtaMax = cms.double(1.4),
41  EROn = cms.bool(False), EREtaMin = cms.double(1.6), EREtaMax = cms.double(2.4),
42  slicingOn = cms.bool(False),
43  nBin = cms.int32(160), #200
44  xMin = cms.double(-1.0),
45  xMax = cms.double(1.0)
46  ),
47 # Histogram Parameters related to Eta
48  EtaHistoParameter = cms.PSet(
49  switchOn = cms.bool(True),
50  nBin = cms.int32(100),
51  xMin = cms.double(-5.0),
52  xMax = cms.double(5.0)
53  ),
54  DeltaEtaHistoParameter = cms.PSet(
55  switchOn = cms.bool(True),
56  nBin = cms.int32(400),
57  xMin = cms.double(-0.2),
58  xMax = cms.double(0.2)
59  ),
60 # Histogram Parameters related to Phi
61  PhiHistoParameter = cms.PSet(
62  switchOn = cms.bool(True),
63  nBin = cms.int32(100),
64  xMin = cms.double(-3.1416),
65  xMax = cms.double(3.1416)
66  ),
67  DeltaPhiHistoParameter = cms.PSet(
68  switchOn = cms.bool(True),
69  nBin = cms.int32(400),
70  xMin = cms.double(-0.2),
71  xMax = cms.double(0.2)
72  ),
73  DeltaRHistoParameter = cms.PSet(
74  switchOn = cms.bool(True),
75  nBin = cms.int32(150),
76  xMin = cms.double(0.0),
77  xMax = cms.double(1.0)
78  ),
79 # Histogram Parameters related to Charge
80  ChargeHistoParameter = cms.PSet(
81  switchOn = cms.bool(False),
82  nBin = cms.int32(3),
83  xMin = cms.double(-1.5),
84  xMax = cms.double(1.5)
85  )
86  )