The following will create a dataset object with logical filenames from the stripped DC06 dataset:
In [22]: dataLFN = LHCbDataset(files=[ 'LFN:/lhcb/production/DC06/phys-v2-lumi2/00001758/DST/0000/00001758_00000001_5.dst', 'LFN:/lhcb/production/DC06/phys-v2-lumi2/00001758/DST/0000/00001758_00000002_5.dst', ])
If you create a DAVINCI job in GANGA without specifying an input dataset in the j.inputdata attribute, the input data will be extracted from the options file as it will happen if you run a DAVINCI job outside GANGA. The specification of inputdata in the options file is left for backwards compatibility but will eventually disappear. This is to ensure a clear separation between the configuration of the application and the data it will process.
You can use logical filenames for submission to the Local and Batch backends as well. The translation to the physical file names is taken care of but it is your own responsibility to give LFNs which are actually present at the site where you run (ie GANGA will not copy the files from other sites for you).
In [4]:j.outputdir Out[4]: /afs/cern.ch/user/u/uegede/gangadir/workspace/uegede/LocalAMGA/51/output
Normally you should just leave this field empty and all output files from your GAUDI job will get copied back. For ROOT and GAUDIPYTHON jobs you need to specify everything apart from standard output and standard error.
To look into the output sandbox it is very convenient to use the peek method on a job j.
# Look at what is in the output sandbox j.peek() # Look in the input sandbox j.peek( "../input" ) # View ROOT histograms, running root.exe in a new terminal window j.peek( "histograms.root", "root.exe &&" )
See the reference for the full documentation on what is possible with the peek method and how it can be configured.
If the size of an output sandbox file with the DIRAC backend exceeds 10 Mb it will automatically be treated as output data instead and copied to a Grid Storage Element.
LFN:/lhcb/user/<initial>/<username>/<diracid>/<fname>
j.backend.getOutputData(names=['myDST.dst'])
See About this document... for information on suggesting changes.