145 def makeAlgs(self, config):
146
147 if self._instance_number != 1:
148 return
149
150 selections = config.getContainerMeta('EventInfo', 'eventSelectionNames',
151 failOnMiss=True)
152 selections = [sel for sel in selections if not sel.startswith("pass_SUB")]
153
154 alg = config.createAlgorithm('CP::SaveFilterAlg',
155 'EventSelectionMerger' + selections[0].
split(
"_%SYS%")[0])
156 alg.FilterDescription = 'events passing at least one EventSelection'
157 alg.eventDecisionOutputDecoration = 'ignore_anySelection_%SYS%'
158 alg.selection = '||'.join([sel + ',as_char' for sel in selections])
159 alg.noFilter = self.noFilter
160 alg.selectionName = 'pass_anySelection_%SYS%'
161 alg.decorationName = 'ntuplepass_anySelection_%SYS%'
162
163
std::vector< std::string > split(const std::string &s, const std::string &t=":")