main/Local CMS/Accessing dCache
Accessing dCache

The files files stored in dCache are located in a directory mounted as /pnfs in the login machines. The full path is /pnfs/hep.wisc.edu/data5/uscms01/YOUR_USERNAME/JOB_NAME. If you want to access them in a cmsRun cfg file, you need to use the dcap protocol:

source = PoolSource {
untracked vstring fileNames =
"dcap://cmsdcap.hep.wisc.edu:22125/pnfs/hep.wisc.edu/data5/uscms01/YOUR_USERNAME/JOB_NAME/ROOT_FILE.root"}

To copy files from dCache to a local directory, you'll need to have a valid proxy (grid-proxy-init) and then use the srmcp command:

srmcp srm://cmssrm.hep.wisc.edu:8443/pnfs/hep.wisc.edu/data5/uscms01/YOUR_USERNAME/JOB_NAME/ROOT_FILE.root file://localhost//scratch/YOUR_USERNAME/ROOT_FILE.root

dccp dcap://cmsdcap.hep.wisc.edu:22125/pnfs/hep.wisc.edu/data5/uscms01/YOUR_USERNAME/JOB_NAME/ROOT_FILE.root /scratch/YOUR_USERNAME/ROOT_FILE.root

To copy many files you can use the dccp_many command. To remove files:

srm-advisory-delete -debug=true srm://cmssrm.hep.wisc.edu:8443/pnfs/hep.wisc.edu/data5/uscms01/YOUR_USERNAME/JOB_NAME/*

Removing directories is not supported with this command.

Last update: Feb. 25, 2009, Christos Lazaridis

Google search
 
Web hep.wisc.edu
root.cern.ch twiki.cern.ch