Prerequisites

  • Download the examples: svn co https://svn.cern.ch/reps/jansvn/trunk/DiracByExample; cd DiracByExample
  • source the dirac environment, e.g., source /afs/cern.ch/eng/clic/software/DIRAC/env.sh
  • obtain a dirac proxy with dirac-proxy-init

Example Scripts:

How to submit a number of jobs to be processed with the SiD simulation and reconstruction chain.

python SiDChainJob.py -F CLIC_CDR_3000 -O 60 -i ilc-user-j-jstrube-TripleH-aa_4q_bs_3TeV_gen-001.lfns -p aa_4q_bs_3TeV_gen -T reconstructed -n 100 -j 2

The file with the jobs must contain a python list with the lfn of the input data. This can be obtained with

dirac-dms-user-lfns -b /path/to/my/input/files

gawk 'ORS=""; BEGIN{print "lfnlist=[" } NR > 1 {print ","} {print " \""$1"\"\n"} END{print "]\n"}' name_of_file_created_by_previous_step

How to merge a number of files and process them with the DST maker

python lcsimAnalysis.py  --xml=fix_recFiles.xml --datatype=REC --lcsim=HEAD --title=fix -n 5 --path=fixedRecFiles/2376 --prodid=2376

How to get a list of files for a given production

dirac-ilc-find-in-FC /ilc ProdID=2711

How to get a list of files for a user directory (or any other directory)

dirac-dms-user-lfns -b /ilc/user/j/jstrube

How to get the meta data for a given production at the command line

dirac-ilc-get-info --ProductionID 2712

How to download a list of files to the local directory

dirac-dms-user-lfns -b /ilc/user/j/jstrube/stdhep/whizard/nunu writes ilc-user-etc.lfn file dirac-ilc-find-in-FC --help To get the files dirac-dms-get-file ilc-user-etc.lfn
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2014-11-12 - AndreSailer
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CLIC All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback