1 import FWCore.ParameterSet.Config
as cms
10 patDiscriminationByIsolationMVArun2v1raw = cms.EDProducer(
"PATTauDiscriminationByMVAIsolationRun2",
13 PATTauProducer = cms.InputTag(
'replaceMeByTauCollectionToBeUsed'),
14 Prediscriminants = noPrediscriminants,
15 loadMVAfromDB = cms.bool(
True),
16 mvaName = cms.string(
"replaceMeByNameOfMVATraining"),
17 mvaOpt = cms.string(
"replaceMeByMVAOption"),
18 requireDecayMode = cms.bool(
True),
21 srcChargedIsoPtSum = cms.string(
'chargedIsoPtSum'),
22 srcNeutralIsoPtSum = cms.string(
'neutralIsoPtSum'),
23 srcPUcorrPtSum = cms.string(
'puCorrPtSum'),
24 srcPhotonPtSumOutsideSignalCone = cms.string(
'photonPtSumOutsideSignalCone'),
25 srcFootprintCorrection = cms.string(
'footprintCorrection')
28 patDiscriminationByIsolationMVArun2v1VLoose = patTauDiscriminantCutMultiplexer.clone(
29 PATTauProducer = cms.InputTag(
'replaceMeByTauCollectionToBeUsed'),
30 Prediscriminants = noPrediscriminants,
31 toMultiplex = cms.InputTag(
'patDiscriminationByIsolationMVArun2v1raw'),
32 key = cms.InputTag(
'patDiscriminationByIsolationMVArun2v1raw:category'),
33 loadMVAfromDB = cms.bool(
True),
34 mvaOutput_normalization = cms.string(
"replaceMeByNormalizationToBeUsedIfAny"),
37 category = cms.uint32(0),
38 cut = cms.string(
"replaceMeByCut"),
39 variable = cms.string(
"pt"),
43 patDiscriminationByIsolationMVArun2v1Loose = patDiscriminationByIsolationMVArun2v1VLoose.clone()
44 patDiscriminationByIsolationMVArun2v1Loose.mapping[0].cut = cms.string(
"replaceMeByCut")
45 patDiscriminationByIsolationMVArun2v1Medium = patDiscriminationByIsolationMVArun2v1VLoose.clone()
46 patDiscriminationByIsolationMVArun2v1Medium.mapping[0].cut = cms.string(
"replaceMeByCut")
47 patDiscriminationByIsolationMVArun2v1Tight = patDiscriminationByIsolationMVArun2v1VLoose.clone()
48 patDiscriminationByIsolationMVArun2v1Tight.mapping[0].cut = cms.string(
"replaceMeByCut")
49 patDiscriminationByIsolationMVArun2v1VTight = patDiscriminationByIsolationMVArun2v1VLoose.clone()
50 patDiscriminationByIsolationMVArun2v1VTight.mapping[0].cut = cms.string(
"replaceMeByCut")
51 patDiscriminationByIsolationMVArun2v1VVTight = patDiscriminationByIsolationMVArun2v1VLoose.clone()
52 patDiscriminationByIsolationMVArun2v1VVTight.mapping[0].cut = cms.string(
"replaceMeByCut")
54 mvaIsolation2SeqRun2 = cms.Sequence(
55 patDiscriminationByIsolationMVArun2v1raw
56 + patDiscriminationByIsolationMVArun2v1VLoose
57 + patDiscriminationByIsolationMVArun2v1Loose
58 + patDiscriminationByIsolationMVArun2v1Medium
59 + patDiscriminationByIsolationMVArun2v1Tight
60 + patDiscriminationByIsolationMVArun2v1VTight
61 + patDiscriminationByIsolationMVArun2v1VVTight