CMS 3D CMS Logo

PATTauDiscriminationAgainstElectronMVA6Phase2_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Electron collection merger
4 from RecoTauTag.RecoTau.mergedPhase2SlimmedElectronsForTauId_cff import mergedSlimmedElectronsForTauId
5 
6 # anti-e phase-2 tauID (Raw)
7 from RecoTauTag.RecoTau.tauDiscriminationAgainstElectronMVA6Phase2_mvaDefs_cff import mvaNames_phase2, mapping_phase2, workingPoints_phase2
8 from RecoTauTag.RecoTau.TauDiscriminatorTools import noPrediscriminants
10 patTauDiscriminationAgainstElectronMVA6Phase2Raw = patTauDiscriminationAgainstElectronMVA6.clone(
11  #Note: PATTauProducer has to be set in the final cfg
12  Prediscriminants = noPrediscriminants,
13  srcElectrons = "mergedSlimmedElectronsForTauId",
14  isPhase2 = True,
15  vetoEcalCracks = False,
16  **mvaNames_phase2
17 )
18 # anti-e phase-2 tauID (WPs)
19 from RecoTauTag.RecoTau.patTauDiscriminantCutMultiplexerDefault_cfi import patTauDiscriminantCutMultiplexerDefault
20 patTauDiscriminationAgainstElectronMVA6Phase2 = patTauDiscriminantCutMultiplexerDefault.clone(
21  #Note: PFTauProducer and Prediscriminants have to be set in the final cfg
22  toMultiplex = 'patTauDiscriminationAgainstElectronMVA6Phase2Raw',
23  mapping = mapping_phase2,
24  rawValues = ["discriminator", "category"],
25  workingPoints = workingPoints_phase2
26 )
27 
28 patTauDiscriminationAgainstElectronMVA6Phase2Task = cms.Task(
29  mergedSlimmedElectronsForTauId,
30  patTauDiscriminationAgainstElectronMVA6Phase2Raw,
31  patTauDiscriminationAgainstElectronMVA6Phase2
32 )
33 
34 patTauDiscriminationAgainstElectronMVA6Phase2Seq = cms.Sequence(
35  patTauDiscriminationAgainstElectronMVA6Phase2Task
36 )