CMS 3D CMS Logo

PFElectronDQMAnalyzer_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 pfElectronDQMAnalyzer = DQMEDAnalyzer('PFCandidateDQMAnalyzer',
5  InputCollection = cms.InputTag('pfAllElectrons'),
6  MatchCollection = cms.InputTag('gensource'),
7  BenchmarkLabel = cms.string('PFElectronValidation/PFElecVsGenElec'),
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(True),
13  ptMin = cms.double( 2.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  slimmedLikeSelection = cms.bool(False),
20  # Histogram Parameters related to pt
21  #VariablePtBins = cms.vdouble(0.,1.,2.,5.,10.,20.,50.,100.,200.,400.,1000.),
22  VariablePtBins = cms.vdouble(0.), # if only one entry PtHistoParameter used
23  PtHistoParameter = cms.PSet(
24  switchOn = cms.bool(True),
25  nBin = cms.int32(60),
26  xMin = cms.double(0.0),
27  xMax = cms.double(120.0)
28  ),
29  DeltaPtHistoParameter = cms.PSet(
30  switchOn = cms.bool(True),
31  nBin = cms.int32(100),
32  xMin = cms.double(-30.0),
33  xMax = cms.double(30.0)
34  ),
35  DeltaPtOvPtHistoParameter = cms.PSet(
36  switchOn = cms.bool(True),
37  BROn = cms.bool(False), BREtaMin = cms.double(0.0), BREtaMax = cms.double(1.4),
38  EROn = cms.bool(False), EREtaMin = cms.double(1.6), EREtaMax = cms.double(2.4),
39  slicingOn = cms.bool(False),
40  nBin = cms.int32(160), #200
41  xMin = cms.double(-1.0),
42  xMax = cms.double(1.0)
43  ),
44 # Histogram Parameters related to Eta
45  EtaHistoParameter = cms.PSet(
46  switchOn = cms.bool(True),
47  nBin = cms.int32(100),
48  xMin = cms.double(-5.0),
49  xMax = cms.double(5.0)
50  ),
51  DeltaEtaHistoParameter = cms.PSet(
52  switchOn = cms.bool(True),
53  nBin = cms.int32(400),
54  xMin = cms.double(-0.2),
55  xMax = cms.double(0.2)
56  ),
57 # Histogram Parameters related to Phi
58  PhiHistoParameter = cms.PSet(
59  switchOn = cms.bool(True),
60  nBin = cms.int32(100),
61  xMin = cms.double(-3.1416),
62  xMax = cms.double(3.1416)
63  ),
64  DeltaPhiHistoParameter = cms.PSet(
65  switchOn = cms.bool(True),
66  nBin = cms.int32(400),
67  xMin = cms.double(-0.2),
68  xMax = cms.double(0.2)
69  ),
70  DeltaRHistoParameter = cms.PSet(
71  switchOn = cms.bool(True),
72  nBin = cms.int32(150),
73  xMin = cms.double(0.0),
74  xMax = cms.double(1.0)
75  ),
76 # Histogram Parameters related to Charge
77  ChargeHistoParameter = cms.PSet(
78  switchOn = cms.bool(False),
79  nBin = cms.int32(3),
80  xMin = cms.double(-1.5),
81  xMax = cms.double(1.5)
82  )
83 )