from ILCDIRAC.Interfaces.API.NewInterface.Applications import GenericApplication from ILCDIRAC.Interfaces.API.DiracILC import DiracILC datadir = "/ilc/prod/ilc/mc-opt-3/ild/dst-merged/500-TDR_ws/higgs_ffh/ILD_l5_o1_v02/v02-00-01/" filepref = "rv02-00-01.sv02-00-01.mILD_l5_o1_v02.E500-TDR_ws.I106523.Pnnh.eL.pR.n001.d_dstm_10763_" indata = [datadir + filepref + "0.slcio", datadir + filepref + "1.slcio"] d = DiracILC(True, "repo.rep") ################################################ j = UserJob() j.setJobGroup("Tutorial") j.setName("GenericExec") j.setInputSandbox(["mypre.sh", "myanal.sh"]) j.setInputData(indata) j._setSoftwareTags(["marlin.ILCSoft-02-00-02_gcc49"]) # j._setSoftwareTags(["lcio.ILCSoft-02-00-01_gcc49"]) j.setILDConfig("v02-00-02") ################################################ appre = GenericApplication() appre.setScript("mypre.sh") appre.setArguments("This is input arguments") res = j.append(appre) if not res['OK']: print res['Message'] exit(1) ################################################ appost = GenericApplication() appost.setScript("myanal.sh")