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