24 def makeAlgs(self, config):
25 if not ( isinstance(self.selections, list) and self.selections and all(isinstance(item, str) for item in self.selections) ):
26 print(
'EventSelectionMerger: selections = ', self.selections)
27 raise ValueError('EventSelectionMerger requires a non-empty list of selection strings to be '
28 'passed as `selections`!')
29 alg = config.createAlgorithm(
'CP::SaveFilterAlg',
'EventSelectionMerger' + self.selections[0].
split(
"_%SYS%")[0])
30 alg.FilterDescription = 'events passing at least one EventSelection algorithm'
31 alg.eventDecisionOutputDecoration = 'ignore_anySelection_%SYS%'
32 alg.selection = '||'.join([sel+',as_char' for sel in self.selections if sel])
33 alg.noFilter = self.noFilter
34 alg.selectionName = 'pass_anySelection_%SYS%'
35 alg.decorationName = 'ntuplepass_anySelection_%SYS%'
36
void print(char *figname, TCanvas *c1)
std::vector< std::string > split(const std::string &s, const std::string &t=":")