113 import PyUtils.RootUtils
as ru
114 ROOT = ru.import_root()
116 cppyy.load_library(
'libxAODTau_cDict')
119 name +=
'_LLP' if LLP
else ''
124 (flatteningFile0Prong, flatteningFile1Prong, flatteningFile3Prong) = \
125 flags.Trigger.Offline.Tau.TauJetRNNWPConfigLLP
if LLP \
126 else flags.Trigger.Offline.Tau.TauJetRNNWPConfig
128 (targetEff0Prong, targetEff1Prong, targetEff3Prong) = \
129 flags.Trigger.Offline.Tau.TauJetRNNLLPTargetEff
if LLP \
130 else flags.Trigger.Offline.Tau.TauJetRNNTargetEff
132 MyTauWPDecorator =CompFactory.TauWPDecorator( name=name,
133 flatteningFile0Prong = flatteningFile0Prong,
134 flatteningFile1Prong = flatteningFile1Prong,
135 flatteningFile3Prong = flatteningFile3Prong,
137 [ ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigVeryLoose, ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigLoose,
138 ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigMedium, ROOT.xAOD.TauJetParameters.IsTauFlag.JetRNNSigTight ],
139 SigEff0P = targetEff0Prong,
140 SigEff1P = targetEff1Prong,
141 SigEff3P = targetEff3Prong,
142 ScoreName =
"RNNJetScore",
143 NewScoreName =
"RNNJetScoreSigTrans",
146 acc.setPrivateTools(MyTauWPDecorator)