25 def makeAlgs(self, config):
26
27 if self._instance_number != 1:
28 return
29
30 selections = config.getContainerMeta('EventInfo', 'eventSelectionNames',
31 failOnMiss=True)
32 selections = [sel for sel in selections if not sel.startswith("pass_SUB")]
33
34 alg = config.createAlgorithm('CP::SaveFilterAlg',
35 'EventSelectionMerger' + selections[0].
split(
"_%SYS%")[0])
36 alg.FilterDescription = 'events passing at least one EventSelection'
37 alg.eventDecisionOutputDecoration = 'ignore_anySelection_%SYS%'
38 alg.selection = '||'.join([sel + ',as_char' for sel in selections])
39 alg.noFilter = self.noFilter
40 alg.selectionName = 'pass_anySelection_%SYS%'
41 alg.decorationName = 'ntuplepass_anySelection_%SYS%'
42
std::vector< std::string > split(const std::string &s, const std::string &t=":")