#!/bin/sh


# Location of the current Atlas Local Root Base
export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase

# Use a locally installed XrootD
#export ALRB_SKIP_XDR=1

# Local site for DQ2
export DQ2_LOCAL_SITE_ID=MWT2_LOCALGROUPDISK

# Link to our proxy
export X509_USER_PROXY=${PWD}/x509_proxy




# Setup Atlas Local Root Base
source $ATLAS_LOCAL_ROOT_BASE/user/atlasLocalSetup.sh


# Setup DQ2 (and GLite which include voms-proxy-init)
localSetupDQ2Client --skipConfirm

# Setup PandaClient
localSetupPandaClient --noAthenaCheck

# Setup for Root
localSetupROOT --skipConfirm


# Display the current proxy status
voms-proxy-info -all


# Download a file using FAX
xrdcp -v -f root://fax.mwt2.org//atlas/dq2/user/HironoriIto/user.HironoriIto.xrootd.mwt2/user.HironoriIto.xrootd.mwt2-1M xrootd.mwt2-1M

# What are the files
ls -l xrootd.mwt2-1M

