j = Job(name='2016_Bs_p001_down',
        backend=Dirac(),
        application=DaVinci(version="v41r3"),
        splitter=SplitByFiles(filesPerJob=10, maxFiles=-1)
        )

j.application.optsfile = '2016_Bd_DKstar.py'

BK = BKQuery(path=('//MC/2016/Beam6500GeV-2016-MagDown-Nu1.6-25ns-Pythia8/'
                   'Sim09b/Trig0x6138160F/Reco16/Turbo03/'
                   'Stripping26NoPrescalingFlagged/13164447/ALLSTREAMS.MDST'))

j.inputdata = BK.getDataset()
j.comment = '2016 Bs pi0 001, magDown'
j.submit()
