CMS 3D CMS Logo

SoftLeptonByMVAComputers_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 softPFElectronCommon = cms.PSet(
4  useCondDB = cms.bool(True),
5  gbrForestLabel = cms.string("btag_SoftPFElectron_BDT"),
6  weightFile = cms.FileInPath('RecoBTag/SoftLepton/data/SoftPFElectron_BDT.weights.xml.gz'),
7  useGBRForest = cms.bool(True),
8  useAdaBoost = cms.bool(False)
9 )
10 
11 softPFMuonCommon = cms.PSet(
12  useCondDB = cms.bool(True),
13  gbrForestLabel = cms.string("btag_SoftPFMuon_BDT"),
14  weightFile = cms.FileInPath('RecoBTag/SoftLepton/data/SoftPFMuon_BDT.weights.xml.gz'),
15  useGBRForest = cms.bool(True),
16  useAdaBoost = cms.bool(True)
17 )
18 
19 from Configuration.Eras.Modifier_run3_common_cff import run3_common
20 run3_common.toModify(
21  softPFElectronCommon,
22  useCondDB = cms.bool(False),
23 ).toModify(
24  softPFMuonCommon,
25  useCondDB = cms.bool(False),
26 )
27 
28 softPFElectronComputer = cms.ESProducer("ElectronTaggerESProducer",
29  softPFElectronCommon,
30  ipSign = cms.string("any"),
31 )
32 
33 negativeSoftPFElectronComputer = cms.ESProducer("ElectronTaggerESProducer",
34  softPFElectronCommon,
35  ipSign = cms.string("negative")
36 )
37 
38 positiveSoftPFElectronComputer = cms.ESProducer("ElectronTaggerESProducer",
39  softPFElectronCommon,
40  ipSign = cms.string("positive")
41 )
42 
43 softPFMuonComputer = cms.ESProducer("MuonTaggerESProducer",
44  softPFMuonCommon,
45  ipSign = cms.string("any")
46 )
47 
48 negativeSoftPFMuonComputer = cms.ESProducer("MuonTaggerESProducer",
49  softPFMuonCommon,
50  ipSign = cms.string("negative")
51 )
52 
53 positiveSoftPFMuonComputer = cms.ESProducer("MuonTaggerESProducer",
54  softPFMuonCommon,
55  ipSign = cms.string("positive")
56 )