CMS 3D CMS Logo

Puppi_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 puppiCentral = cms.VPSet(
4  cms.PSet(
5  algoId = cms.int32(5), #0 is default Puppi
6  useCharged = cms.bool(True),
7  applyLowPUCorr = cms.bool(True),
8  combOpt = cms.int32(0),
9  cone = cms.double(0.4),
10  rmsPtMin = cms.double(0.1),
11  rmsScaleFactor = cms.double(1.0)
12  )
13  )
14 
15 puppiForward = cms.VPSet(
16  cms.PSet(
17  algoId = cms.int32(5), #0 is default Puppi
18  useCharged = cms.bool(False),
19  applyLowPUCorr = cms.bool(True),
20  combOpt = cms.int32(0),
21  cone = cms.double(0.4),
22  rmsPtMin = cms.double(0.5),
23  rmsScaleFactor = cms.double(1.0)
24  )
25  )
26 
27 puppi = cms.EDProducer("PuppiProducer",#cms.PSet(#"PuppiProducer",
28  puppiDiagnostics = cms.bool(False),
29  puppiForLeptons = cms.bool(False),
30  UseDeltaZCut = cms.bool(True),
31  DeltaZCut = cms.double(0.3),
32  PtMaxNeutrals = cms.double(200.),
33  candName = cms.InputTag('particleFlow'),
34  vertexName = cms.InputTag('offlinePrimaryVertices'),
35  #candName = cms.string('packedPFCandidates'),
36  #vertexName = cms.string('offlineSlimmedPrimaryVertices'),
37  applyCHS = cms.bool (True),
38  invertPuppi = cms.bool (False),
39  useExp = cms.bool (False),
40  MinPuppiWeight = cms.double(0.01),
41  useExistingWeights = cms.bool(False),
42  useWeightsNoLep = cms.bool(False),
43  clonePackedCands = cms.bool(False), # should only be set to True for MiniAOD
44  vtxNdofCut = cms.int32(4),
45  vtxZCut = cms.double(24),
46  algos = cms.VPSet(
47  cms.PSet(
48  etaMin = cms.vdouble(0.),
49  etaMax = cms.vdouble(2.5),
50  ptMin = cms.vdouble(0.),
51  MinNeutralPt = cms.vdouble(0.2),
52  MinNeutralPtSlope = cms.vdouble(0.015),
53  RMSEtaSF = cms.vdouble(1.0),
54  MedEtaSF = cms.vdouble(1.0),
55  EtaMaxExtrap = cms.double(2.0),
56  puppiAlgos = puppiCentral
57  ),
58  cms.PSet(
59  etaMin = cms.vdouble( 2.5, 3.0),
60  etaMax = cms.vdouble( 3.0, 10.0),
61  ptMin = cms.vdouble( 0.0, 0.0),
62  MinNeutralPt = cms.vdouble( 1.7, 2.0),
63  MinNeutralPtSlope = cms.vdouble(0.08, 0.08),
64  RMSEtaSF = cms.vdouble(1.20, 0.95),
65  MedEtaSF = cms.vdouble(0.90, 0.75),
66  EtaMaxExtrap = cms.double( 2.0),
67  puppiAlgos = puppiForward
68  ),
69  # cms.PSet(
70  # etaMin = cms.double(3.0),
71  # etaMax = cms.double(10.0),
72  # ptMin = cms.double(0.0),
73  # MinNeutralPt = cms.double(2.0),
74  # MinNeutralPtSlope = cms.double(0.07),
75  # # RMSEtaSF = cms.double(1.18),
76  # # MedEtaSF = cms.double(0.4397),
77  # RMSEtaSF = cms.double(1.10),
78  # MedEtaSF = cms.double(0.90),
79  # EtaMaxExtrap = cms.double(2.0),
80  # puppiAlgos = puppiForward
81  # )
82  )
83 )
84 
85 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
86 phase2_common.toModify(
87  puppi,
88  DeltaZCut = cms.double(0.1),
89  algos = cms.VPSet(
90  cms.PSet(
91  etaMin = cms.vdouble(0., 2.5),
92  etaMax = cms.vdouble(2.5, 3.5),
93  ptMin = cms.vdouble(0., 0.), #Normally 0
94  MinNeutralPt = cms.vdouble(0.2, 0.2),
95  MinNeutralPtSlope = cms.vdouble(0.015, 0.030),
96  RMSEtaSF = cms.vdouble(1.0, 1.0),
97  MedEtaSF = cms.vdouble(1.0, 1.0),
98  EtaMaxExtrap = cms.double(2.0),
99  puppiAlgos = puppiCentral
100  ), cms.PSet(
101  etaMin = cms.vdouble( 3.5),
102  etaMax = cms.vdouble(10.0),
103  ptMin = cms.vdouble( 0.), #Normally 0
104  MinNeutralPt = cms.vdouble( 2.0),
105  MinNeutralPtSlope = cms.vdouble(0.08),
106  RMSEtaSF = cms.vdouble(1.0 ),
107  MedEtaSF = cms.vdouble(0.75),
108  EtaMaxExtrap = cms.double( 2.0),
109  puppiAlgos = puppiForward
110  )
111  )
112 )