import os


INPUT_PATH = "root://eosatlas.cern.ch//eos/atlas/user/a/apetrid/ICHEP_2016/data15and16/"


DATA_LIST = [
"data_13TeV.00276073",
"data_13TeV.00276147",
"data_13TeV.00276161",
"data_13TeV.00276176",
"data_13TeV.00276181",
"data_13TeV.00276183",
"data_13TeV.00276189",
"data_13TeV.00276212",
"data_13TeV.00276245",
"data_13TeV.00276262",
"data_13TeV.00276329",
"data_13TeV.00276330",
"data_13TeV.00276336",
"data_13TeV.00276416",
"data_13TeV.00276511",
"data_13TeV.00276689",
"data_13TeV.00276731",
"data_13TeV.00276778",
"data_13TeV.00276790",
"data_13TeV.00276952",
"data_13TeV.00276954",
"data_13TeV.00278727",
"data_13TeV.00278748",
"data_13TeV.00278880",
"data_13TeV.00278912",
"data_13TeV.00278968",
"data_13TeV.00278970",
"data_13TeV.00279169",
"data_13TeV.00279259",
"data_13TeV.00279279",
"data_13TeV.00279284",
"data_13TeV.00279345",
"data_13TeV.00279515",
"data_13TeV.00279598",
"data_13TeV.00279685",
"data_13TeV.00279764",
"data_13TeV.00279813",
"data_13TeV.00279867",
"data_13TeV.00279928",
"data_13TeV.00279932",
"data_13TeV.00279984",
"data_13TeV.00280231",
"data_13TeV.00280273",
"data_13TeV.00280319",
"data_13TeV.00280368",
"data_13TeV.00280423",
"data_13TeV.00280464",
"data_13TeV.00280500",
"data_13TeV.00280520",
"data_13TeV.00280614",
"data_13TeV.00280673",
"data_13TeV.00280753",
"data_13TeV.00280853",
"data_13TeV.00280862",
"data_13TeV.00280950",
"data_13TeV.00280977",
"data_13TeV.00281070",
"data_13TeV.00281074",
"data_13TeV.00281075",
"data_13TeV.00281130",
"data_13TeV.00281317",
"data_13TeV.00281385",
"data_13TeV.00281411",
"data_13TeV.00282625",
"data_13TeV.00282631",
"data_13TeV.00282712",
"data_13TeV.00282784",
"data_13TeV.00282992",
"data_13TeV.00283074",
"data_13TeV.00283155",
"data_13TeV.00283270",
"data_13TeV.00283429",
"data_13TeV.00283608",
"data_13TeV.00283780",
"data_13TeV.00284006",
"data_13TeV.00284154",
"data_13TeV.00284213",
"data_13TeV.00284285",
"data_13TeV.00284420",
"data_13TeV.00284427",
"data_13TeV.00284473",
"data_13TeV.00284484",
"data_13TeV.00297730",
"data_13TeV.00298595",
"data_13TeV.00298609",
"data_13TeV.00298633",
"data_13TeV.00298687",
"data_13TeV.00298690",
"data_13TeV.00298771",
"data_13TeV.00298773",
"data_13TeV.00298862",
"data_13TeV.00298967",
"data_13TeV.00299055",
"data_13TeV.00299144",
"data_13TeV.00299147",
"data_13TeV.00299184",
"data_13TeV.00299243",
"data_13TeV.00299340",
"data_13TeV.00299584",
"data_13TeV.00300279",
"data_13TeV.00300345",
"data_13TeV.00300415",
"data_13TeV.00300418",
"data_13TeV.00300487",
"data_13TeV.00300540",
"data_13TeV.00300571",
"data_13TeV.00300600",
"data_13TeV.00300655",
"data_13TeV.00300687",
"data_13TeV.00300784",
"data_13TeV.00300800",
"data_13TeV.00300863",
"data_13TeV.00300908",
"data_13TeV.00301912",
"data_13TeV.00301918",
"data_13TeV.00301932",
"data_13TeV.00301973",
"data_13TeV.00302053",
"data_13TeV.00302137",
"data_13TeV.00302265",
"data_13TeV.00302269",
"data_13TeV.00302300",
"data_13TeV.00302347",
"data_13TeV.00302380",
"data_13TeV.00302391",
"data_13TeV.00302393",
"data_13TeV.00302737",
"data_13TeV.00302831",
"data_13TeV.00302872",
"data_13TeV.00302919",
"data_13TeV.00302925",
"data_13TeV.00302956",
"data_13TeV.00303007",
"data_13TeV.00303079",
"data_13TeV.00303201",
"data_13TeV.00303208",
"data_13TeV.00303264",
"data_13TeV.00303266",
"data_13TeV.00303291",
"data_13TeV.00303304",
"data_13TeV.00303338",
"data_13TeV.00303421",
"data_13TeV.00303499",
"data_13TeV.00303560"
]


for file in DATA_LIST:

    file_fields=file.split(".")
    DSID=file_fields[1]

    command = "./susy " + INPUT_PATH + file + " id_" + DSID + " DATA"
    print command
    os.system(command)
