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  candName = cms.InputTag('particleFlow'),
33  vertexName = cms.InputTag('offlinePrimaryVertices'),
34  #candName = cms.string('packedPFCandidates'),
35  #vertexName = cms.string('offlineSlimmedPrimaryVertices'),
36  applyCHS = cms.bool (True),
37  invertPuppi = cms.bool (False),
38  useExp = cms.bool (False),
39  MinPuppiWeight = cms.double(0.01),
40  useExistingWeights = cms.bool(False),
41  useWeightsNoLep = cms.bool(False),
42  clonePackedCands = cms.bool(False), # should only be set to True for MiniAOD
43  vtxNdofCut = cms.int32(4),
44  vtxZCut = cms.double(24),
45  algos = cms.VPSet(
46  cms.PSet(
47  etaMin = cms.vdouble(0.),
48  etaMax = cms.vdouble(2.5),
49  ptMin = cms.vdouble(0.),
50  MinNeutralPt = cms.vdouble(0.2),
51  MinNeutralPtSlope = cms.vdouble(0.015),
52  RMSEtaSF = cms.vdouble(1.0),
53  MedEtaSF = cms.vdouble(1.0),
54  EtaMaxExtrap = cms.double(2.0),
55  puppiAlgos = puppiCentral
56  ),
57  cms.PSet(
58  etaMin = cms.vdouble( 2.5, 3.0),
59  etaMax = cms.vdouble( 3.0, 10.0),
60  ptMin = cms.vdouble( 0.0, 0.0),
61  MinNeutralPt = cms.vdouble( 1.7, 2.0),
62  MinNeutralPtSlope = cms.vdouble(0.08, 0.08),
63  RMSEtaSF = cms.vdouble(1.20, 0.95),
64  MedEtaSF = cms.vdouble(0.90, 0.75),
65  EtaMaxExtrap = cms.double( 2.0),
66  puppiAlgos = puppiForward
67  ),
68  # cms.PSet(
69  # etaMin = cms.double(3.0),
70  # etaMax = cms.double(10.0),
71  # ptMin = cms.double(0.0),
72  # MinNeutralPt = cms.double(2.0),
73  # MinNeutralPtSlope = cms.double(0.07),
74  # # RMSEtaSF = cms.double(1.18),
75  # # MedEtaSF = cms.double(0.4397),
76  # RMSEtaSF = cms.double(1.10),
77  # MedEtaSF = cms.double(0.90),
78  # EtaMaxExtrap = cms.double(2.0),
79  # puppiAlgos = puppiForward
80  # )
81  )
82 )
83 
84 from Configuration.Eras.Modifier_phase2_common_cff import phase2_common
85 phase2_common.toModify(
86  puppi,
87  DeltaZCut = cms.double(0.1),
88  algos = cms.VPSet(
89  cms.PSet(
90  etaMin = cms.vdouble(0., 2.5),
91  etaMax = cms.vdouble(2.5, 3.5),
92  ptMin = cms.vdouble(0., 0.), #Normally 0
93  MinNeutralPt = cms.vdouble(0.2, 0.2),
94  MinNeutralPtSlope = cms.vdouble(0.015, 0.030),
95  RMSEtaSF = cms.vdouble(1.0, 1.0),
96  MedEtaSF = cms.vdouble(1.0, 1.0),
97  EtaMaxExtrap = cms.double(2.0),
98  puppiAlgos = puppiCentral
99  ), cms.PSet(
100  etaMin = cms.vdouble( 3.5),
101  etaMax = cms.vdouble(10.0),
102  ptMin = cms.vdouble( 0.), #Normally 0
103  MinNeutralPt = cms.vdouble( 2.0),
104  MinNeutralPtSlope = cms.vdouble(0.08),
105  RMSEtaSF = cms.vdouble(1.0 ),
106  MedEtaSF = cms.vdouble(0.75),
107  EtaMaxExtrap = cms.double( 2.0),
108  puppiAlgos = puppiForward
109  )
110  )
111 )