CMS 3D CMS Logo

PFJetResDQMAnalyzer_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 pfJetResDQMAnalyzer = DQMEDAnalyzer('PFJetDQMAnalyzer',
5  InputCollection = cms.InputTag('pfAllElectrons'),
6  MatchCollection = cms.InputTag('gensource'),
7  BenchmarkLabel = cms.string('PFJetResValidation/PFElecVsGenElec'),
8  deltaRMax = cms.double(0.1),
9  onlyTwoJets = cms.bool(True),
10  matchCharge = cms.bool(False),
11  mode = cms.int32( 1 ),
12  CreatePFractionHistos = cms.bool(False),
13  CreateReferenceHistos = cms.bool(True),
14  CreateEfficiencyHistos = cms.bool(False),
15  ptMin = cms.double( 0.0 ),
16  ptMax = cms.double( 999999 ),
17  etaMin = cms.double(-10),
18  etaMax = cms.double(10),
19  phiMin = cms.double(-3.14),
20  phiMax = cms.double(3.14),
21 # Histogram Parameters related to pt
22  #VariablePtBins = cms.vdouble(0.,1.,2.,5.,10.,20.,50.,100.,200.,400.,1000.),
23  VariablePtBins = cms.vdouble(20,40,60,80,100,150,200,250,300,400,500,750), # must be = to the one in PFClient_cfi if you want to slice the TH2
24  PtHistoParameter = cms.PSet(
25  switchOn = cms.bool(True),
26  nBin = cms.int32(50),
27  xMin = cms.double(0.0),
28  xMax = cms.double(100.0)
29  ),
30  DeltaPtHistoParameter = cms.PSet(
31  switchOn = cms.bool(True),
32  nBin = cms.int32(100),
33  xMin = cms.double(-50.0),
34  xMax = cms.double(50.0)
35  ),
36  DeltaPtOvPtHistoParameter = cms.PSet(
37  switchOn = cms.bool(True),
38  BROn = cms.bool(True), BREtaMin = cms.double(0.0), BREtaMax = cms.double(1.4),
39  EROn = cms.bool(True), EREtaMin = cms.double(1.6), EREtaMax = cms.double(2.4),
40  slicingOn = cms.bool(False),
41  nBin = cms.int32(160), #200
42  xMin = cms.double(-1.0),
43  xMax = cms.double(1.0)
44  ),
45 # Histogram Parameters related to Eta
46  EtaHistoParameter = cms.PSet(
47  switchOn = cms.bool(True),
48  nBin = cms.int32(100),
49  xMin = cms.double(-5.0),
50  xMax = cms.double(5.0)
51  ),
52  DeltaEtaHistoParameter = cms.PSet(
53  switchOn = cms.bool(True),
54  nBin = cms.int32(50),
55  xMin = cms.double(-0.5),
56  xMax = cms.double(0.5)
57  ),
58 # Histogram Parameters related to Phi
59  PhiHistoParameter = cms.PSet(
60  switchOn = cms.bool(True),
61  nBin = cms.int32(100),
62  xMin = cms.double(-3.1416),
63  xMax = cms.double(3.1416)
64  ),
65  DeltaPhiHistoParameter = cms.PSet(
66  switchOn = cms.bool(True),
67  nBin = cms.int32(50),
68  xMin = cms.double(-0.5),
69  xMax = cms.double(0.5)
70  ),
71 # Histogram Parameters related to DeltaR
72  DeltaRHistoParameter = cms.PSet(
73  switchOn = cms.bool(True),
74  nBin = cms.int32(150),
75  xMin = cms.double(0.0),
76  xMax = cms.double(1.0)
77  ),
78 # Histogram Parameters related to Charge
79  ChargeHistoParameter = cms.PSet(
80  switchOn = cms.bool(False),
81  nBin = cms.int32(3),
82  xMin = cms.double(-1.5),
83  xMax = cms.double(1.5)
84  )
85 )