CMS 3D CMS Logo

l1tPFClustersFromHGC3DClusters_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 l1tPFClustersFromHGC3DClusters = cms.EDProducer("PFClusterProducerFromHGC3DClusters",
4  src = cms.InputTag("l1tHGCalBackEndLayer2Producer","HGCalBackendLayer2Processor3DClustering"),
5  corrector = cms.string("L1Trigger/Phase2L1ParticleFlow/data/hadcorr_HGCal3D_TC.root"),
6  correctorEmfMax = cms.double(1.125),
7  preEmId = cms.string("hOverE < 0.3 && hOverE >= 0"),
8  emVsPionID = cms.PSet(
9  isPUFilter = cms.bool(False),
10  preselection = cms.string(""),
11  method = cms.string("BDT"), # "" to be disabled, "BDT" to be enabled
12  variables = cms.VPSet(
13  cms.PSet(name = cms.string("fabs(eta)"), value = cms.string("abs(eta())")),
14  cms.PSet(name = cms.string("eMax"), value = cms.string("eMax()")),
15  cms.PSet(name = cms.string("sigmaPhiPhiTot"), value = cms.string("sigmaPhiPhiTot()")),
16  cms.PSet(name = cms.string("sigmaZZ"), value = cms.string("sigmaZZ()")),
17  cms.PSet(name = cms.string("layer50percent"), value = cms.string("layer50percent()")),
18  cms.PSet(name = cms.string("triggerCells67percent"), value = cms.string("triggerCells67percent()")),
19  ),
20  weightsFile = cms.string("L1Trigger/Phase2L1ParticleFlow/data/hgcal_egID/Photon_vs_Pion_BDTweights_1116.xml.gz"),
21  wp = cms.string("0.05")
22  ),
23  emVsPUID = cms.PSet(
24  isPUFilter = cms.bool(True),
25  preselection = cms.string(""),
26  method = cms.string("BDT"), # "" to be disabled, "BDT" to be enabled
27  variables = cms.VPSet(
28  cms.PSet(name = cms.string("eMax"), value = cms.string("eMax()")),
29  cms.PSet(name = cms.string("eMaxOverE"), value = cms.string("eMax()/energy()")),
30  cms.PSet(name = cms.string("sigmaPhiPhiTot"), value = cms.string("sigmaPhiPhiTot()")),
31  cms.PSet(name = cms.string("sigmaRRTot"), value = cms.string("sigmaRRTot()")),
32  cms.PSet(name = cms.string("triggerCells90percent"), value = cms.string("triggerCells90percent()")),
33  ),
34  weightsFile = cms.string("L1Trigger/Phase2L1ParticleFlow/data/hgcal_egID/Photon_Pion_vs_Neutrino_BDTweights_1116.xml.gz"),
35  wp = cms.string("0.15")
36  ),
37  useEMInterpretation = cms.string("allKeepHad"), # for all clusters, use EM intepretation to redefine the EM part of the energy
38  emOnly = cms.bool(False),
39  etMin = cms.double(1.0),
40  resol = cms.PSet(
41  etaBins = cms.vdouble( 1.900, 2.200, 2.500, 2.800, 2.950),
42  offset = cms.vdouble( 2.593, 3.089, 2.879, 2.664, 2.947),
43  scale = cms.vdouble( 0.120, 0.098, 0.099, 0.098, 0.124),
44  kind = cms.string('calo')
45  ),
46 )
47 
48 
49 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
50 from Configuration.Eras.Modifier_phase2_hgcalV11_cff import phase2_hgcalV11
51 phase2_hgcalV10.toModify(l1tPFClustersFromHGC3DClusters,
52  corrector = "L1Trigger/Phase2L1ParticleFlow/data/hadcorr_HGCal3D_TC_106X.root",
53  resol = cms.PSet(
54  etaBins = cms.vdouble( 1.700, 1.900, 2.200, 2.500, 2.800, 2.900),
55  offset = cms.vdouble(-0.819, 0.900, 2.032, 2.841, 2.865, 1.237),
56  scale = cms.vdouble( 0.320, 0.225, 0.156, 0.108, 0.119, 0.338),
57  kind = cms.string('calo')
58  ),
59 )
60 phase2_hgcalV11.toModify(l1tPFClustersFromHGC3DClusters,
61  corrector = "L1Trigger/Phase2L1ParticleFlow/data/hadcorr_HGCal3D_TC_110X.root",
62  resol = cms.PSet(
63  etaBins = cms.vdouble( 1.700, 1.900, 2.200, 2.500, 2.800, 2.900),
64  offset = cms.vdouble( 1.793, 1.827, 2.363, 2.538, 2.812, 2.642),
65  scale = cms.vdouble( 0.138, 0.137, 0.124, 0.115, 0.106, 0.121),
66  kind = cms.string('calo'),
67  ),
68 )