971 def makeAlgs (self, config) :
972
973 suffix = self.suffix()
974 decorationName = f"{self._prefix}_selection{suffix},as_char"
975 selectionName = self.selectionName
976
977 alg = config.createAlgorithm('CP::AsgSelectionAlg', f'{self._algPrefix}SelectionAlg_{self.workingPoint()}')
978 config.addPrivateTool('selectionTool', self._selectionTool)
979 alg.selectionTool.JetContainer = config.readName(self.containerName)
980 alg.selectionTool.JvtMomentName = self._momentName
981 alg.selectionTool.WorkingPoint = self.workingPoint()
982 if self._maxPtForJvt is not None:
983 alg.selectionTool.MaxPtForJvt = self._maxPtForJvt
984 alg.selectionDecoration = decorationName
985 alg.particles = config.readName(self.containerName)
986
987 config.addSelection (self.containerName, selectionName, decorationName, preselection=False)
988
989