3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
8 PanTau__Tool_InformationStore = CompFactory.PanTau.Tool_InformationStore
11 python_Tool_InformationStore = PanTau__Tool_InformationStore(
"PanTau_InformationStore",
12 Infos_Int = infoHandler.m_Infos_Int,
13 Infos_Double = infoHandler.m_Infos_Double,
14 Infos_VecDouble = infoHandler.m_Infos_VecDouble,
15 Infos_String = infoHandler.m_Infos_String,
16 Infos_VecString = infoHandler.m_Infos_VecString)
18 result.addPublicTool(python_Tool_InformationStore,
True)
23 PanTau__Tool_InputConverter = CompFactory.PanTau.Tool_InputConverter
26 python_Tool_InputConverter = PanTau__Tool_InputConverter(
"PanTau_InputConverter",
29 result.setPrivateTools(python_Tool_InputConverter)
34 PanTau__Tool_TauConstituentGetter = CompFactory.PanTau.Tool_TauConstituentGetter
37 python_Tool_TauConstituentGetter = PanTau__Tool_TauConstituentGetter(
"PanTau_TauConstituentGetter",
41 result.addPublicTool(python_Tool_TauConstituentGetter,
True)
46 PanTau__Tool_TauConstituentSelector = CompFactory.PanTau.Tool_TauConstituentSelector
49 python_Tool_TauConstituentSelector = PanTau__Tool_TauConstituentSelector(
"PanTau_TauConstituentSelector",
52 result.addPublicTool(python_Tool_TauConstituentSelector,
True)
57 PanTau__Tool_FeatureExtractor = CompFactory.PanTau.Tool_FeatureExtractor
60 python_Tool_FeatureExtractor = PanTau__Tool_FeatureExtractor(
"PanTau_FeatureExtractor",
63 result.addPublicTool(python_Tool_FeatureExtractor,
True)
68 PanTau__Tool_ModeDiscriminator = CompFactory.PanTau.Tool_ModeDiscriminator
70 python_Tool_ModeDiscri_1p0n_vs_1p1n = PanTau__Tool_ModeDiscriminator(
"PanTau_ModeDiscri_1p0n_vs_1p1n_" + curInAlg,
71 calibFolder = flags.Tau.tauRecToolsCVMFSPath,
72 Name_InputAlg = curInAlg,
73 Name_ModeCase =
"1p0n_vs_1p1n",
76 result.addPublicTool(python_Tool_ModeDiscri_1p0n_vs_1p1n,
True)
81 PanTau__Tool_ModeDiscriminator = CompFactory.PanTau.Tool_ModeDiscriminator
83 python_Tool_ModeDiscri_1p1n_vs_1pXn = PanTau__Tool_ModeDiscriminator(
"PanTau_ModeDiscri_1p1n_vs_1pXn_" + curInAlg,
84 calibFolder = flags.Tau.tauRecToolsCVMFSPath,
85 Name_InputAlg = curInAlg,
86 Name_ModeCase =
"1p1n_vs_1pXn",
89 result.addPublicTool(python_Tool_ModeDiscri_1p1n_vs_1pXn,
True)
94 PanTau__Tool_ModeDiscriminator = CompFactory.PanTau.Tool_ModeDiscriminator
96 python_Tool_ModeDiscri_3p0n_vs_3pXn = PanTau__Tool_ModeDiscriminator(
"PanTau_ModeDiscri_3p0n_vs_3pXn_" + curInAlg,
97 calibFolder = flags.Tau.tauRecToolsCVMFSPath,
98 Name_InputAlg = curInAlg,
99 Name_ModeCase =
"3p0n_vs_3pXn",
102 result.addPublicTool(python_Tool_ModeDiscri_3p0n_vs_3pXn,
True)
107 PanTau__Tool_DecayModeDeterminator = CompFactory.PanTau.Tool_DecayModeDeterminator
110 Name_DecayModeDeterminator =
"PanTau_DecayModeDeterminator_" + curInAlg
111 python_Tool_DecayModeDeterminator = PanTau__Tool_DecayModeDeterminator(Name_DecayModeDeterminator,
117 result.addPublicTool(python_Tool_DecayModeDeterminator,
True)
122 PanTau__Tool_DetailsArranger = CompFactory.PanTau.Tool_DetailsArranger
125 python_Tool_DetailsArranger = PanTau__Tool_DetailsArranger(
"PanTau_DetailsArranger",
128 result.addPublicTool(python_Tool_DetailsArranger,
True)
136 _name = sPrefix +
'PanTau'
139 from PanTauAlgs.Class_InformationHandler_New
import InformationHandler
140 infoHandler = InformationHandler(flags)
142 curInAlg =
'CellBased'
143 print(
"TopOptions_NewPanTau: Adding PanTau algorithms for input alg: " + curInAlg)
145 PanTau__PanTauProcessor = CompFactory.PanTau.PanTauProcessor
147 myPanTauProcessor = PanTau__PanTauProcessor(name = _name,
148 Name_InputAlg = curInAlg,
150 Tool_TauConstituentGetter = result.getPrimaryAndMerge(
PanTauConstGetterCfg(flags, infoHandler)),
153 Tool_DecayModeDeterminator = result.getPrimaryAndMerge(
PanTauDecayModeDetCfg(flags, infoHandler, curInAlg)),
156 result.setPrivateTools(myPanTauProcessor)