1-hello | 2-mod | 3-pack | 4-pythia | 5-ATLFAST | 6-aodread | 7-sim | 8-dig | 9-rec | 10-aod |

(1)GETTING AN ACCOUNT (2008.5.7卒業)

[kondo@lxplus217]~% fs lq でquotaを見る.単位はkB。500MB以上は特別許可必要。
Volume Name     Quota      Used %Used   Partition
user.kondo      200000    144000   72%         51%

CASTOR に大きな貯蔵が可能である。ーー>とあるが見つからない! 
/castor/cern.ch/user//

(2) SETTING UP YOUR ACCOUNT

これはbootstrap procedureという-->説明

[kondo@lxplus239]~% echo $SHELL (SHELLは大文字!) /usr/local/bin/zsh
  ***ショートカット先で内容を変更するには右クリックでプログラムから開くー>メモ帳とする。 ***cygwin画面で範囲指定後はEnterでコピーとなる! CMTはconfiguration management tool main ATLAS repositoryからcodeをコピーしてlinkとcompilationをつかさどる。 > source /afs/cern.ch/sw/contrib/CMT/v1r20p20070720/mgr/setup.sh をしたが何もcmthomeでは変化ない!v1r20p20070720はCMT versionで時々変わるかも。 cmthome/requirementを作る。2008.5.9にやり直し。 https://twiki.cern.ch/twiki/bin/view/Atlas/WorkBookSetAccountのものを使う。
#------------------------------------------------------- #---typed by T. Kondo 2008.5.9----- set CMTSITE STANDALONE set SITEROOT /afs/cern.ch/atlas/software/releases/13.0.30 macro ATLAS_TEST_AREA ${HOME}/testarea macro ATLAS_DIST_AREA ${SITEROOT} apply_tag projectArea macro SITE_PROJECT_AREA ${SITEROOT} macro EXTERNAL_PROJECT_AREA ${SITEROOT} apply_tag opt apply_tag setup apply_tag simpleTest use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA) set CMTCONFIG i686-slc4-gcc34-opt #-------------------------------------------------------------
> source /afs/cern.ch/sw/contrib/CMT/v1r20p20070720/mgr/setup.sh > cmt config としたら #CMT> Warning: package AtlasLogin AtlasLogin-* /afs/cern.ch/atlas/software/relea se/13.0.30 not found (requested by cmt_standalone)    ------------------------------------------    Configuring environment for standalone package.    CMT version v1r20p20070720.    System is amd64_linux26    ------------------------------------------    Creating setup scripts.    Creating cleanup scripts. が出てきた。とりあえずwarningは無視する。また以下のファイルができた。    total 6    -rw-r--r-- 1 kondo zp 394 May 9 10:10 cleanup.csh    -rw-r--r-- 1 kondo zp 384 May 9 10:10 cleanup.sh    -rw-r--r-- 1 kondo zp 82 May 9 10:10 Makefile    -rw-r--r-- 1 kondo zp 539 May 9 09:43 requirements    -rw-r--r-- 1 kondo zp 442 May 9 10:10 setup.csh    -rw-r--r-- 1 kondo zp 433 May 9 10:10 setup.sh WorkBookに従い、ここでターミナルを切る。ログインし直す。 > source setup.sh -tag=13.0.30 としたらAtlasLogin AtlasLogin-...が見つからない。−−>いろいろ試したがダメ。 東城に助けを求めるーー>requirementsの中でタイプミス。releasesのsが抜けていた!  ・コピーをした方がよい。diff -c A Bを使え!  ・setup.shは2回は起動しないこと。 > echo $CMTCONFIG    x86_64-slc4-gcc34-opt > echo $CMTPATH /afs/cern.ch/user/k/kondo/testarea/13.0.30:/afs/cern.ch/atlas/software/ releases/13.0.30/AtlasOffline/13.0.30 --------------------------------------------------------------------------------------

(3)Running Athena HelloWorld (2008.5.9卒業)

[kondo@lxplus234]~/testarea/13.0.30% cmt co -r UserAnalysis-00-10-12 PhysicsAnalysis/AnalysisCommon/UserAnalysis とタイプしたら、coはcheck outの意味。UserAnalysis-00-10-12はどこにあるの?-->CMTPATH内  /afs/cern.ch/atlas/software/releases/13.0.30/AtlasAnalysis/13.0.30/PhysicsAnalysis/AnalysisCommon/UserAnalysis/ をそっくり持ってきている。ちなみにこの下のcmt/version.cmtを見たらUserAnalysis-00-10-12と書いてある。 スクリーンには
# ================= working on package UserAnalysis version UserAnalysis-00-10-12 path PhysicsAnalysis/AnalysisCommon in /afs/cern.ch/user/k/kondo/testarea/13.0 .30/PhysicsAnalysis/AnalysisCommon/UserAnalysis # get top files cvs update: Updating . Creating setup scripts. Creating cleanup scripts. run directory already installed
が出てきた。説明は、ATLAS repositoryからUserAnalysis packagをコピーしている。 確かに ~/testarea/13.0.30/PhysicsAnalysis/AnalysisCommon/UserAnalysis%
-rwxr-xr-x 1 kondo zp 16204 Aug 26 2007 ChangeLog* drwxr-xr-x 3 kondo zp 2048 May 9 12:21 cmt/ drwxr-xr-x 2 kondo zp 2048 May 9 12:21 CVS/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 doc/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 python/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 Root/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 run/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 share/ drwxr-xr-x 4 kondo zp 2048 May 9 12:21 src/ drwxr-xr-x 3 kondo zp 2048 May 9 12:21 UserAnalysis/
cd cmt source setup.sh gmake ....ここで時間とる!
.... .... Installing file add_aant.C into /afs/cern.ch/user/k/kondo/testarea/13.0.30/Insta llArea/jobOptions/UserAnalysis installation done ------> (constituents.make) install_joboptions done all ok.
> cd ../run > get_files AthExHelloWorld_jobOptions.py
Warning: get_files without '-jo|-data|-scripts|-xmls' is SLOW ! Willing to acquire file AthExHelloWorld_jobOptions.py from /afs/cern.ch/atlas/software/releases/13.0.30/AtlasCore/13.0.30/InstallArea/jobOptions/AthExHelloWorld/AthExHelloWorld_jobOptions.py copy AthExHelloWorld_jobOptions.py とどこから取ったか画面に出ている。
> find . -name AthExHelloWorld_jobOptions.py -printで探すと、 ./AtlasCore/13.0.30/Control/AthenaExamples/AthExHelloWorld/share/AthExHelloWorld_jobOptions.py ./AtlasCore/13.0.30/InstallArea/jobOptions/AthExHelloWorld/AthExHelloWorld_jobOptions.py とあるからいいかな。探す機能が付いてるようだ。 >athena.py AthExHelloWorld_jobOptions.py
Py:Athena INFO including file "AthenaCommon/Compat.py" Py:PropertyProxy INFO Read module info for 2995 configurables from 10 genCon fDb files Py:PropertyProxy INFO No duplicates have been found: that's good ! Py:Athena INFO including file "AthenaCommon/Bootstrap.py" . . . . StatusCodeSvc INFO initialize ApplicationMgr INFO Application Manager Finalized successfully ApplicationMgr INFO Application Manager Terminated successfully Py:Athena INFO leaving with code 0: "successful run"
と出てきた。 >vi myjobで   #!/bin/bash   source ~/cmthome/setup.sh -tag=13.0.30   cd ~/testarea/13.0.30/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run   athena.py AthExHelloWorld_jobOptions.py を作りchmod +x myjobで実行可能にする。  -rwxr-xr-x 1 kondo zp 2160 May 9 18:41 AthExHelloWorld_jobOptions.py*  drwxr-xr-x 2 kondo zp 2048 May 9 12:21 CVS/  -rwxr-xr-x 1 kondo zp 161 May 9 18:54 myjob* > bsub -q 1nh myjob Job <915621> is submitted to queue <1nh>. [kondo@lxplus227]~/testarea/13.0.30/PhysicsAnalysis/AnalysisCommon/UserAnalysis/ run% bsub -q 1nh myjob Job <915621> is submitted to queue <1nh>. > bjobs でjobの様子をみる。
----------------------------------------------------------------------------------- JOBID USER STAT QUEUE FROM_HOST EXEC_HOST JOB_NAME SUBMIT_TIME 915621 kondo RUN 1nh lxplus227 lxb6261 myjob May 9 18:57 -----------------------------------------------------------------------------------
> bjobs -l 915621 で詳しい様子を見る。
-------------------------------------------------------------------------------- Job <915621>, User , Project , Status , Queue <1nh>, Comma nd Fri May 9 18:57:58: Submitted from host , CWD <$HOME/testarea/13.0. 30/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run>; Fri May 9 18:58:04: Started on , Execution Home , Execution CWD ; Fri May 9 18:59:44: Resource usage collected. The CPU time used is 6 seconds. MEM: 1 Mbytes; SWAP: 104 Mbytes; NTHREAD: 2 PGID: 17835; PIDs: 17855 17871 SCHEDULING PARAMETERS: r15s r1m r15m ut pg io ls it tmp swp mem loadSched - 2.5 2.0 0.9 - - - - 100M - - loadStop - - - - - - - - - - - lftm pool maxpool ccload ccio loadSched - 300.0 - - - loadStop - - - - - -------------------------------------------------------------------------------------
Fri May 9 19:03:45: Done successfully. The CPU time used is 23.8 seconds. が出たのでjobが終わったようだ!! e-mailでも知らせがきた!!
-------------------------------------------------------------------- 件名 : Job 915621: Done (Fri, 9 May 2008 19:03:45 +0200) 送信者: LSF [lsfadmin-no-reply@cern.ch] 宛先 : kondo@lxb6261.cern.ch <==============================================これは私のメールアドレス?? --------------------------------------------------- Job was submitted from host by user . Job was executed on host(s) , in queue <1nh>, as user . was used as the home directory. was used as the working directory. Started at Fri May 9 18:58:04 2008 Results reported at Fri May 9 19:03:45 2008 Your job looked like: ------------------------------------------------------------ # LSBATCH: User input myjob ------------------------------------------------------------ Successfully completed. Resource usage summary: CPU time : 23.76 sec. Max Memory : 16 MB Max Swap : 397 MB Max Processes : 9 Max Threads : 10 The output (if any) follows: --- According to the CERN-LSF setup the standard output of your job , id <915621>, has been moved to . --------------------------------------------------------------------------
runのdirectoryには
---------------------------------------------------------------- -rwxr-xr-x 1 kondo zp 2160 May 9 18:41 AthExHelloWorld_jobOptions.py* drwxr-xr-x 2 kondo zp 2048 May 9 12:21 CVS/ drwxr-xr-x 2 kondo zp 2048 May 9 18:59 LSFJOB_915621/ -rwxr-xr-x 1 kondo zp 161 May 9 18:54 myjob* --------------------------------------------------------------- となりLSFJOB_915621/というdirectoryが自動的にできている。 -rw-r--r-- 1 kondo zp 194 May 9 18:59 LSFJOB -rw-r--r-- 1 kondo zp 11777 May 9 18:59 STDOUT
なので見ると > less LSFJOB
--------------------------------------------------------------- #! /bin/sh $LSB_TRAPSIGS $LSB_RCP1 $LSB_RCP2 $LSB_RCP3 # LSBATCH: User input /usr/local/lsf/etc/job_starter 'myjob' ExitStat=$? wait # LSBATCH: End user input true exit `expr $? "|" $ExitStat` LSFJOB (END) ---------------------------------------------------------------------
>less STDOUT
-------------------------------------------------------------------- @(#)CERN job starter $Date: 2008/03/04 10:22:57 $ Working directory is on Py:Athena INFO including file "AthenaCommon/Compat.py" Py:PropertyProxy INFO Read module info for 2995 configurables from 10 genCon fDb files Py:PropertyProxy INFO No duplicates have been found: that's good ! Py:Athena INFO including file "AthenaCommon/Bootstrap.py" ApplicationMgr SUCCESS ================================================================================ ==================================================== Welcome to ApplicationMgr $Re vision: 1.66 $ running on lxb6261.cern.ch on Fri May 9 18:58:58 2008 ================================================================================ ==================================================== ApplicationMgr INFO Successfully loaded modules : AthenaServices . . . StatusCodeSvc INFO initialize ApplicationMgr INFO Application Manager Finalized successfully ApplicationMgr INFO Application Manager Terminated successfully Py:Athena INFO leaving with code 0: "successful run" Job finished at Fri May 9 18:59:00 CEST 2008 on node under linux version Scientific Linux CERN SLC release 4.6 (Beryllium) CERN statistics: This job used 0:00:26 NCU hours (26 NCU seconds) CERN statistics: This job used 0:00:26 KSI2K hours (26 KSI2K seconds) KSI2K = kilo-SpecInt2000 benchmark units = 1.00 NCU -------------------------------------------------------------------
何したのかな?