54 name="AsgPhotonBDTSelector",
57 computeIfMissing=True,
59 reapplyWPIfNoShowerShapes=False,
67 acc = ComponentAccumulator()
69 isRun3 = (flags.GeoModel.Run == LHCPeriod.Run3)
76 workingPoint = workingPoint
or defaultCfg[
"workingPoint"]
77 modelConv = modelConv
or defaultCfg[
"modelConv"]
78 modelUnconv = modelUnconv
or defaultCfg[
"modelUnconv"]
79 scoreDecoration = scoreDecoration
or defaultCfg[
"scoreDecoration"]
80 isEMDecoration = isEMDecoration
or defaultCfg[
"isEMDecoration"]
82 Single = CompFactory.PhotonIDBDT.PhotonSingleBDTCalculator
83 Calc = CompFactory.PhotonIDBDT.PhotonBDTCalculator
84 Sel = CompFactory.PhotonIDBDT.AsgPhotonBDTSelector
86 singleConv = Single(f
"{name}_SingleConv",
89 acc.addPublicTool(singleConv)
91 singleUnconv = Single(f
"{name}_SingleUnconv",
92 ModelFile=modelUnconv,
94 acc.addPublicTool(singleUnconv)
96 bdtCalc = Calc(f
"{name}_BDTCalc",
98 ToolUnconv=singleUnconv,
99 DecorationName=scoreDecoration,
100 ExcludeTRT=excludeTRT,
101 ForceRecompute=forceRecompute,
102 ReserveVarsConv=reserveVarsConv,
103 ReserveVarsUnconv=reserveVarsUnconv)
104 acc.addPublicTool(bdtCalc)
107 WorkingPoint=workingPoint,
108 ScoreDecoration=scoreDecoration,
109 ComputeIfMissing=computeIfMissing,
110 ReapplyWPIfNoShowerShapes=reapplyWPIfNoShowerShapes,
111 IsEMDecoration=isEMDecoration,
112 ExcludeTRT=excludeTRT,
114 acc.setPrivateTools(selector)
119 name="PhotonBDTCalculator",
121 forceRecompute=False,
124 scoreDecoration=None,
126 reserveVarsUnconv=12):
128 acc = ComponentAccumulator()
134 modelConv = modelConv
or defaultCfg[
"modelConv"]
135 modelUnconv = modelUnconv
or defaultCfg[
"modelUnconv"]
136 scoreDecoration = scoreDecoration
or defaultCfg[
"scoreDecoration"]
138 Single = CompFactory.PhotonIDBDT.PhotonSingleBDTCalculator
139 Calc = CompFactory.PhotonIDBDT.PhotonBDTCalculator
141 singleConv = Single(f
"{name}_SingleConv",
144 acc.addPublicTool(singleConv)
146 singleUnconv = Single(f
"{name}_SingleUnconv",
147 ModelFile=modelUnconv,
149 acc.addPublicTool(singleUnconv)
153 ToolUnconv=singleUnconv,
154 DecorationName=scoreDecoration,
155 ExcludeTRT=(flags.GeoModel.Run == LHCPeriod.Run3),
156 ForceRecompute=forceRecompute,
157 ReserveVarsConv=reserveVarsConv,
158 ReserveVarsUnconv=reserveVarsUnconv)
159 acc.setPrivateTools(bdtCalc)
AsgPhotonBDTSelectorCfg(flags, name="AsgPhotonBDTSelector", workingPoint=None, useNFs=False, computeIfMissing=True, forceRecompute=False, reapplyWPIfNoShowerShapes=False, reserveVarsConv=12, reserveVarsUnconv=12, modelConv=None, modelUnconv=None, scoreDecoration=None, isEMDecoration=None)
PhotonBDTCalculatorCfg(flags, name="PhotonBDTCalculator", useNFs=False, forceRecompute=False, modelConv=None, modelUnconv=None, scoreDecoration=None, reserveVarsConv=12, reserveVarsUnconv=12)