40 def makeAlgs(self, config):
41
42 if self._instance_number != 1:
43 return
44
45 selections = config.getContainerMeta('EventInfo', 'eventSelectionNames',
46 failOnMiss=True)
47 selections = [sel for sel in selections if not sel.startswith("pass_SUB")]
48
49 alg = config.createAlgorithm('CP::SaveFilterAlg',
50 'EventSelectionMerger' + selections[0].
split(
"_%SYS%")[0])
51 alg.FilterDescription = 'events passing at least one EventSelection'
52 alg.eventDecisionOutputDecoration = 'ignore_anySelection_%SYS%'
53 alg.selection = '||'.join([sel + ',as_char' for sel in selections])
54 alg.noFilter = self.noFilter
55 alg.selectionName = 'pass_anySelection_%SYS%'
56 alg.decorationName = 'ntuplepass_anySelection_%SYS%'
57
58
std::vector< std::string > split(const std::string &s, const std::string &t=":")