679 def makeAlgs(self, config):
680
681 if not self.cutFlowHistograms:
682 return
683
684 postfix = ('_' + self.selectionName) if self.selectionName else ''
685
686 alg = config.createAlgorithm('CP::EventCutFlowHistAlg', 'CutFlowDumperAlg')
687 alg.histPattern = 'cflow_EventInfo' + postfix + '_%SYS%'
688 alg.eventInfo = config.readName('EventInfo')
689 alg.histTitle = 'Event Cutflow: EventInfo.' + self.selectionName
690
691 if isinstance(self.customSelections, list) and len(self.customSelections) > 0:
692
693 alg.selections = self.customSelections
694 elif self.selectionName:
695
696 alg.selections = config.getEventCutFlow(self.selectionName)
697 else:
698
699 alg.selections = config.getSelectionCutFlow('EventInfo', '')
700
701 alg.selections = [sel + ',as_char' for sel in alg.selections]
702