CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
charmTaggerProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 #use import as to mask it to process.load()
4 from RecoBTag.CTagging.training_settings import c_vs_l_vars_vpset, c_vs_b_vars_vpset
5 
6 charmTagsComputerCvsL = cms.ESProducer(
7  'CharmTaggerESProducer',
8  #clone the cfg only
9  slComputerCfg = cms.PSet(
10  **sl_cfg.candidateCombinedSecondaryVertexSoftLeptonComputer.parameters_()
11  ),
12  weightFile = cms.FileInPath('RecoBTag/CTagging/data/c_vs_udsg.weight.xml'),
13  variables = c_vs_l_vars_vpset,
14  computer = cms.ESInputTag('combinedSecondaryVertexSoftLeptonComputer'),
15  tagInfos = cms.VInputTag(
16  cms.InputTag('pfImpactParameterTagInfos'),
17  cms.InputTag('pfInclusiveSecondaryVertexFinderCvsLTagInfos'),
18  cms.InputTag('softPFMuonsTagInfos'),
19  cms.InputTag('softPFElectronsTagInfos'),
20  ),
21  mvaName = cms.string('BDT'),
22  useCondDB = cms.bool(False),
23  gbrForestLabel = cms.string(''),
24  useGBRForest = cms.bool(True),
25  useAdaBoost = cms.bool(False)
26  )
27 
28 charmTagsComputerCvsB = charmTagsComputerCvsL.clone(
29  weightFile = cms.FileInPath('RecoBTag/CTagging/data/c_vs_b.weight.xml'),
30  variables = c_vs_b_vars_vpset
31  )
32