def METHOD_NAME(exp, targeted, picker, scorer, trafo):
    output = pyopenms.FeatureMap()
    scorer.prepareProteinPeptideMaps_(targeted)
    chrom_map = {}
    pepmap = {}
    trmap = {}
    for i, chrom in enumerate(exp.getChromatograms()):
        chrom_map[ chrom.getNativeID() ] = i
    for i, pep in enumerate(targeted.getCompounds() ):
        pepmap[ pep.id ] = i
    for i, tr in enumerate(targeted.getTransitions() ):
        tmp = trmap.get( tr.getPeptideRef() , [])
        tmp.append( i )
        trmap[ tr.getPeptideRef() ] = tmp
    swath_maps_dummy = []
    for key, value in trmap.iteritems():
        try:
            transition_group = getTransitionGroup(exp, targeted, key, value, chrom_map)
        except Exception:
            print "Skip ", key, value
            continue
        picker.pickTransitionGroup(transition_group);
        scorer.scorePeakgroups(transition_group, trafo, swath_maps_dummy, output, False);
    return output