groer_at_physics_dot_utoronto_dot_ca.
--------------------------------------------------------------- % ssh -p2222 username@guppy01.physics.utoronto.ca
Once you are logged into this machine, you should ssh to one of the
"standard" machines to be used for the workshop. To spread the load, log
into the machine as follows:
Your Last Name begins with A-F: antler % ssh -p2222 nodename
% yppasswd
usercert.pem and the key
should be userkey.pem. These are not the names of the files you will get
from the web page registration. You may also want your .p12 file if you
want to access some of the CERN and other web pages that require a
certificate. The .p12 certificate will need to be uploaded to your
browser (see instructions% mkdir .globus % scp username@yournode.youruniversity.ca:.globus/usercert.pem .globus/usercert.pem % scp username@yournode.youruniversity.ca:.globus/userkey.pem .globus/userkey.pem
Your userkey.pem should only be readable by you.
% chmod 400 userkey.pem
Note: If you wish to scp into the Fish cluster, you need to go through
the gateway node guppy01.physics.utoronto.ca and you need to specify the
port number with a capital P e.g.
% scp -P2222 yourlocalfile username@guppy01.physics.utoronto.ca:.globus/
|
15-April-2007 Note: There are two new setup scripts that do all the necessary setups for the tutorial (Grid, DQ2, Ganga) except for the Athena
setup which needs to be done separately.
For csh/tcsh
For ksh,bash
|
% voms-proxy-init -voms atlas:/atlas/ca
Cannot find file or dir: /home/groer/.glite/vomses Your identity: /C=CA/O=Grid/OU=physics.utoronto.ca/CN=Leslie Groer Enter GRID pass phrase: Creating temporary proxy ................................................... Done Contacting lcg-voms.cern.ch:15001 [/C=CH/O=CERN/OU=GRID/CN=host/lcg-voms.cern.ch] "atlas" Done Creating proxy ................................................. Done Your proxy is valid until Thu Mar 22 02:45:33 2007
% voms-proxy-info -all
subject : /C=CA/O=Grid/OU=physics.utoronto.ca/CN=Leslie Groer/CN=proxy issuer : /C=CA/O=Grid/OU=physics.utoronto.ca/CN=Leslie Groer identity : /C=CA/O=Grid/OU=physics.utoronto.ca/CN=Leslie Groer type : proxy strength : 512 bits path : /tmp/x509up_u30104 timeleft : 11:59:05 === VO atlas extension information === VO : atlas subject : /C=CA/O=Grid/OU=physics.utoronto.ca/CN=Leslie Groer issuer : /C=CH/O=CERN/OU=GRID/CN=host/lcg-voms.cern.ch attribute : /atlas/ca/Role=NULL/Capability=NULL attribute : /atlas/Role=NULL/Capability=NULL attribute : /atlas/lcg1/Role=NULL/Capability=NULL timeleft : 11:59:05If you got this far, pat yourself on the back - you are about ready to start running Atlas code.
% cp /home/atlassoft/.gangarc ~/
Run ganga and answer any questions that you are prompted for:
% /home/atlassoft/Ganga/install/slc3_gcc323/4.2.12/bin/ganga
You can use Ctrl-D to log-out. Here is the first Hello World job you can try:
In [1]:j = Job(application=Executable(exe='/bin/echo',args=['Hello World'])) In [2]:j.backend=LCG() In [3]:j.submitIt takes a few minutes to get some output.
------>j.submit() Ganga.GPIDev.Lib.Job : INFO submitting job 1 Ganga.GPIDev.Adapters : INFO submitting job 1 to LCG backend Ganga.GPIDev.Lib.Job : INFO job 1 status changed to "submitted"You can use
In [4]:j
to get details on the job, or
In [5]:jobs
to see all jobs
In [2]:j.backend=LCG()
enter
In [3]:j.backend.CE='lcgce01.triumf.ca:2119/jobmanager-lcgpbs-atlas'
or
In [3]:j.backend.CE='bigmac-lcg-ce.physics.utoronto.ca:2119/jobmanager-lcgcondor-atlas'
% /home/atlassoft/DQ2/dq2 listDatasetsInSite triumfdisk
trig1_misal1_mc12.006337.PythiaA110mumu_30.recon.AOD.v12000601 trig1_misal1_mc12.005929.McAtNlo0310_JIMMY_WpWm_taunumunu.recon.NTUP.v12000601 trig1_misal1_csc11.005987.WZ_Herwig.recon.NTUP.v12000601_tid006069 etc...Run this dq2_get command from a directory where you have write permission:
% source /home/atlassoft/DQ2/setup.csh
% /home/atlassoft/DQ2/dq2_get -r trig0_ideal0_mc12.007061.singlepart_e_E100.recon.AOD.v12000601_tid006084 trig0_ideal0_mc12.007061.singlepart_e_E100.recon.AOD.v12000601_tid006084._00130.pool.root.2
Select TORONTO or TRIUMF from the list of SRMs.
mkdir ${HOME}/workarea
Create cmthome diretory:
mkdir ${HOME}/cmthome
cd ${HOME}/cmthome
Copy the requirements file needed for cmt set-up:
cp /home/atlassoft/cmthome/requirements ${HOME}/cmthome/
and check that the macro ATLAS_TEST_AREA in the requrements file points to your workarea
Initialize cmt for Release 12.0.6:
In csh: source /home/atlassoft/12.0.6/CMT/v1r19/mgr/setup.csh In bash,sh: . /home/atlassoft/12.0.6/CMT/v1r19/mgr/setup.shConfigure cmt:
cmt configNOTE: The previous steps should be done only once Now, change to your working directory, and source the setup script to configure Athena. This should be done everytime you login or you open a new shell.
cd ~/workarea In csh: source ~/cmthome/setup.csh -tag=12.0.6 In bash, sh: . ~/cmthome/setup.sh -tag=12.0.6Now you are ready to use Athena. A simple test consists on running Athena with the HelloWorldOptions.py jobOption file. It initializes Athena and prints out several messages. You don't need to check out any package to run it. Just do:
get_files HelloWorldOptions.py athena.py HelloWorldOptions.pyYou should get something like:
.. HelloWorld INFO initialize() HelloWorld INFO MyInt = 42 HelloWorld INFO MyBool = 1 HelloWorld INFO MyDouble = 3.14159 HelloWorld INFO MyStringVec[0] = Welcome HelloWorld INFO MyStringVec[1] = to HelloWorld INFO MyStringVec[2] = Athena HelloWorld INFO MyStringVec[3] = Framework HelloWorld INFO MyStringVec[4] = Tutorial ...To use the Physics Analysis Tools, you need to check out the standard UserAnalysis Algorithm available from the ATLAS software repository. The local repository is already set-up in the setup_tutorial.sh. NOTE: You will have to enter the ssh password for the cvsuser account (to be handed out at the workshop) a number of times (at least 5?) during the checkout process. Then you need to configure cmt for this package and compile it:
cmt co -r UserAnalysis-00-09-10 PhysicsAnalysis/AnalysisCommon/UserAnalysis
cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/cmt
cmt broadcast cmt config
In csh:
source setup.csh
In sh:
. setup.sh
gmake
In the above checkout you may safely ignore errors from the CVS server of the sort:
cvs update: warning: cannot open /expt/1/cern.ch/atlascvs/CVSROOT/val-tags
read/write: Permission denied
Note the gmake takes a few minutes to compile the necessary packages
cd ~/workarea In csh: source ~/cmthome/setup.csh -tag=12.0.6 source /home/atlassoft/setup_tutorial.csh In bash, sh: . ~/cmthome/setup.sh -tag=12.0.6 . /home/atlassoft/setup_tutorial.shAnd you have your atlas-canada voms extension
voms-proxy-init -voms atlas:/atlas/ca
Get the example submission ipython script (this script defaults to
submissions to the TRIUMF CE):
cp /home/atlassoft/workarea/anal_lcg.sub .Change to the run area in the PhysicsAnalysis package
cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/runIf you don't already have the python scripts, copy these in to your run/ directory
cp /home/atlassoft/workarea/AnalysisSkeleton_topOptions.py .
cp /home/atlassoft/workarea/StructuredAAN_topOptions.py .
Fire up ganga
gangaand issue the execution file with the full path to your area (i.e. replace USERNAME with your username)
execfile('/home/<USERNAME>/workarea/anal_lcg.sub')
You should see something like:
Ganga.GPIDev.Lib.Job : INFO submitting job 19 Ganga.GPIDev.Adapters : INFO submitting job 19.0 to LCG backend Ganga.GPIDev.Lib.Job : INFO job 19.0 status changed to "submitted"