Esempio n. 1
0
def dune17tscChips(skipSel=False, skipBad=True):
    chips = []
    skipChips = []
    if skipSel: skipChips += selectedChips()
    if skipBad: skipChips += badChips()
    for sam in dune17tscSamples():
        chip = dune17cChip(sam)
        if chip not in chips:
            if chip not in skipChips:
                chips.append(chip)
    return chips
Esempio n. 2
0
def dune17BadSampleChips(excludePdts=True, excludeCets=True):
    chips = []
    sams = []
    sams += dune17cSamples(isBad=True)
    sams += dune17tscSamples(isBad=True)
    excludeChips = []
    if excludePdts: excludeChips += dune17cChips()
    if excludeCets: excludeChips += dune17tscChips()
    for sam in sams:
        chip = dune17cChip(sam)
        if chip not in chips:
            if chip not in excludeChips:
                chips.append(chip)
    return chips
Esempio n. 3
0
def dune17qcSamples(isBad=False, isFail=False, skipSel=False, skipBad=True):
    pre = "DUNE17q-cold_chip"
    # List the bad samples here.
    badsams = []
    badsams.append(pre + "D0362_0828T1558")  # 1 Mhz
    badsams.append(pre + "D0363_0828T1558")  # 1 Mhz
    badsams.append(pre + "D0365_0828T1638")  # 1 Mhz
    badsams.append(pre + "D0366_0828T1638")  # 1 Mhz
    badsams.append(pre + "D0365_0828T1752")  # 1 Mhz
    badsams.append(pre + "D0364_0828T1752")  # 1 Mhz
    badsams.append(pre + "D0352_0828T1354")  # 1 Mhz
    badsams.append(pre + "D0357_0828T1354")  # 1 Mhz
    badsams.append(pre + "D0358_0828T1841")  # 1 Mhz
    badsams.append(pre + "D0361_0828T1841")  # 1 Mhz
    badsams.append(pre + "D0359_0828T1509")  # 1 Mhz
    badsams.append(pre + "D0351_0828T1509")  # 1 Mhz
    badsams.append(pre + "D0359_0828T1714")  # 1 Mhz
    badsams.append(pre + "D0360_0828T1714")  # 1 Mhz
    badsams.append(pre + "D0352_0828T1345")  # 1 Mhz
    badsams.append(pre + "D0357_0828T1345")  # 1 Mhz
    failsams = []
    # Fetch the list of all samples from the text file.
    ifile = open("DUNE17q-cold-all.txt", "r")
    samsraw = ifile.read().splitlines()
    sams = []
    for sam in samsraw:
        if sam not in badsams: sams.append(sam)
    # Construct the output list.
    if isBad: outsams = badsams
    elif isFail: outsams = failsams
    else: outsams = sams
    if skipSel or skipBad:
        skipChips = []
        if skipSel: skipChips += selectedChips()
        if skipBad: skipChips += badChips()
        keepsams = []
        for sam in outsams:
            chip = dune17cChip(sam)
            #print "Chip " + str(chip)
            if chip not in skipChips:
                keepsams.append(sam)
        return keepsams
    return outsams
Esempio n. 4
0
def dune17cChipSamples(chip):
    dso = []
    for ds in dune17cSamples() + dune17tscSamples():
        if dune17cChip(ds) == chip:
            dso.append(ds)
    return dso
Esempio n. 5
0
def dune17tscSamples(isBad=False,
                     isFail=False,
                     skipSel=False,
                     skipBad=True,
                     isDNL=False):
    pre = "DUNE17ts-cold_chip"
    sams = []
    dnlsams = []
    badsams = []
    failsams = []
    sams.append(pre + "4")
    sams.append(pre + "5")
    dnlsams.append(pre + "17_DNL")
    dnlsams.append(pre + "21_DNL")
    dnlsams.append(pre + "31_DNL")
    dnlsams.append(pre + "32_DNL")
    dnlsams.append(pre + "33_DNL")
    dnlsams.append(pre + "34_DNL")
    dnlsams.append(pre + "35_DNL")
    dnlsams.append(pre + "36_DNL")
    dnlsams.append(pre + "37")
    dnlsams.append(pre + "38_DNL")
    dnlsams.append(pre + "47_DNL")
    dnlsams.append(pre + "68_DNL")
    dnlsams.append(pre + "76_DNL")
    dnlsams.append(pre + "77_DNL")
    dnlsams.append(pre + "88_DNL")
    dnlsams.append(pre + "89_DNL")
    dnlsams.append(pre + "91")
    sams.append(pre + "109")
    sams.append(pre + "116")
    sams.append(pre + "123")
    sams.append(pre + "126")
    sams.append(pre + "128")
    sams.append(pre + "130")
    sams.append(pre + "131")
    sams.append(pre + "134")
    sams.append(pre + "135")
    sams.append(pre + "142")
    dnlsams.append(pre + "143_DNL07_25_16")
    dnlsams.append(pre + "143_DNL07_25_18")
    sams.append(pre + "144")
    sams.append(pre + "153")
    sams.append(pre + "159")
    sams.append(pre + "160_0717")
    sams.append(pre + "160_0727")
    sams.append(pre + "161")
    sams.append(pre + "162")
    sams.append(pre + "163")
    sams.append(pre + "164")
    sams.append(pre + "165")
    sams.append(pre + "166_0717")
    sams.append(pre + "166_0724")
    sams.append(pre + "168")
    sams.append(pre + "169")
    sams.append(pre + "170")
    sams.append(pre + "171")
    sams.append(pre + "172")
    sams.append(pre + "173")
    sams.append(pre + "174")
    sams.append(pre + "175_0717")
    sams.append(pre + "175_0724")
    sams.append(pre + "176")
    sams.append(pre + "177_0717")
    sams.append(pre + "177_0724")
    sams.append(pre + "178")
    sams.append(pre + "179")
    sams.append(pre + "180")
    sams.append(pre + "181")
    sams.append(pre + "182")
    sams.append(pre + "183_0717")
    sams.append(pre + "183_0724")
    sams.append(pre + "184")
    sams.append(pre + "185_0717")
    sams.append(pre + "185_0727")
    sams.append(pre + "186_0718")
    sams.append(pre + "186_0724")
    sams.append(pre + "187")
    sams.append(pre + "188")
    sams.append(pre + "189")
    sams.append(pre + "199")
    sams.append(pre + "203")
    sams.append(pre + "211")
    sams.append(pre + "215")
    sams.append(pre + "219")
    sams.append(pre + "241")
    sams.append(pre + "243")
    sams.append(pre + "249")
    sams.append(pre + "250")
    sams.append(pre + "251")
    sams.append(pre + "252")
    sams.append(pre + "253")
    sams.append(pre + "254")
    sams.append(pre + "255")
    sams.append(pre + "256")
    sams.append(pre + "257")
    sams.append(pre + "258")
    sams.append(pre + "259_0718")
    sams.append(pre + "259_0725")
    sams.append(pre + "260")
    sams.append(pre + "261")
    sams.append(pre + "262")
    sams.append(pre + "263")
    sams.append(pre + "264")
    sams.append(pre + "265")
    sams.append(pre + "266")
    sams.append(pre + "267")
    sams.append(pre + "268")
    sams.append(pre + "269")
    sams.append(pre + "270")
    sams.append(pre + "272")
    sams.append(pre + "273")
    sams.append(pre + "274")
    sams.append(pre + "275")
    sams.append(pre + "276")
    sams.append(pre + "277")
    sams.append(pre + "278")
    sams.append(pre + "279")
    sams.append(pre + "280")
    sams.append(pre + "281")
    sams.append(pre + "282")
    sams.append(pre + "283")
    sams.append(pre + "284_0720")
    sams.append(pre + "284_0731")
    sams.append(pre + "285")
    sams.append(pre + "286")
    sams.append(pre + "287")
    sams.append(pre + "288_0720")
    #sams.append(pre + "288_0727")  # Actually chip 388 Junbin Zhang 7/28/2017
    sams.append(pre + "289")
    sams.append(pre + "290")
    sams.append(pre + "291")
    sams.append(pre + "292")
    sams.append(pre + "293")
    sams.append(pre + "295")
    sams.append(pre + "296")
    sams.append(pre + "298")
    sams.append(pre + "299")
    sams.append(pre + "300")
    sams.append(pre + "301")
    sams.append(pre + "302")
    sams.append(pre + "304")
    sams.append(pre + "305")
    sams.append(pre + "306")
    sams.append(pre + "307")
    sams.append(pre + "308")
    sams.append(pre + "309")
    sams.append(pre + "310")
    sams.append(pre + "311")
    sams.append(pre + "312")
    sams.append(pre + "313_0725")
    sams.append(pre + "313_0731")
    sams.append(pre + "314")
    sams.append(pre + "316")
    sams.append(pre + "317")
    sams.append(pre + "318")
    sams.append(pre + "319")
    sams.append(pre + "320")
    sams.append(pre + "321")
    sams.append(pre + "322")
    sams.append(pre + "323")
    sams.append(pre + "324")
    sams.append(pre + "325")
    sams.append(pre + "326")
    sams.append(pre + "327")
    sams.append(pre + "328")
    sams.append(pre + "329")
    sams.append(pre + "333")
    sams.append(pre + "335")
    sams.append(pre + "339")
    sams.append(pre + "348")
    sams.append(pre + "350")
    sams.append(pre + "355")
    sams.append(pre + "375")
    sams.append(pre + "386")
    sams.append(pre + "378")
    sams.append(pre + "388_fchip288_0727")  # Junbin Zhang 7/28/2017
    sams.append(pre + "D0001_0731")
    sams.append(pre + "D0002_0731")
    sams.append(pre + "D0003_0731")
    sams.append(pre + "D0004_0731")
    sams.append(pre + "D0005_0731")
    sams.append(pre + "D0006_0731")
    sams.append(pre + "D0007_0731")
    sams.append(pre + "D0008_0731")
    sams.append(pre + "D0009_0731")
    sams.append(pre + "D0010_0801")
    sams.append(pre + "D0011_0731")
    sams.append(pre + "D0012_0731")
    sams.append(pre + "D0013_0731")
    sams.append(pre + "D0014_0731")
    sams.append(pre + "D0015_0731")
    sams.append(pre + "D0016_0731")
    sams.append(pre + "D0017_0731")
    sams.append(pre + "D0018_0731")
    sams.append(pre + "D0019_0731")
    sams.append(pre + "D0020_0731")
    sams.append(pre + "D0021_0731")
    sams.append(pre + "D0022_0731")
    sams.append(pre + "D0023_0731")
    sams.append(pre + "D0024_0731")
    sams.append(pre + "D0025_0731")
    sams.append(pre + "D0026_0731")
    sams.append(pre + "D0027_0731")
    sams.append(pre + "D0028_0731")
    sams.append(pre + "D0029_0731")
    sams.append(pre + "D0030_0731")
    if isBad: outsams = badsams
    elif isFail: outsams = failsams
    elif isDNL: outsams = dnlsams
    else: outsams = sams + dnlsams
    if skipSel or skipBad:
        skipChips = []
        if skipSel: skipChips += selectedChips()
        if skipBad: skipChips += badChips()
        keepsams = []
        for sam in outsams:
            chip = dune17cChip(sam)
            if chip not in skipChips:
                keepsams.append(sam)
        return keepsams
    return outsams