Adds algorithm to select events based on object flags.
Reject events based containing objects passing a certain selection criteria. E.g. useful for 'bad muon veto' or 'b-jet veto', etc.. Example usage:
# Bad muon veto
alg = createAlgorithm('CP::EventSelectionByObjectFlagAlg', 'BadMuonVetoAlg')
alg.preselection = '&&'.join(commonCuts)
alg.veto = '&&'.join(['is_bad,as_char'])
alg.eventDecisionOutputDecoration = 'has_bad_muon_%SYS%'
seq.append( alg, inputPropName = {'muons' : 'particles',
'eventInfo' : 'eventInfo'} )
Edited by Miha Muskinja