sh
ls -l /afs/cern.ch/sw/contrib/CMT/
(e.g. v1r16p20040901)
source /afs/cern.ch/sw/contrib/CMT/<cmtversion>/mgr/setup.sh
(e.g. <cmtversion>
: v1r16p20040901)
cmt version
(should return the <cmtversion>
you specified above)
echo $CMTROOT
(should return: /afs/cern.ch/sw/contrib/CMT/<cmtversion>
)
mkdir ~/cmthome
cd ~/cmthome
cat >requirements
# The first configuration tag:
tag <configurationname1> <release> special
# The second configuration tag:
tag <configurationname1> <release> special
# The site identification (CMTSITE)::
set CMTSITE CERN
# The location to the siteroot:
set SITEROOT /afs/cern.ch
# The location to the distribution area (ATLAS_DIST_AREA):
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist
# The location to the test area (ATLAS_TEST_AREA) for the different configurations:
macro ATLAS_TEST_AREA "" \
<configurationname1> "${HOME}/atlas_software/<configurationname1>/<release>"
\ <configurationname2> "${HOME}/atlas_software/<configurationname2>/<release>"
# The connection to the standard AtlasLogin definitions:
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
vi
, pico
, emacs
) <configurationname1>
: Tuturial
; <configurationname2>
: Work
; <release>
: 8.8.1
) mkdir $HOME/atlas_software
mkdir $HOME/atlas_software/<configurationname1>
mkdir $HOME/atlas_software/<configurationname1>/<release>
mkdir $HOME/atlas_software/<configurationname2>
mkdir $HOME/atlas_software/<configurationname2>/<release>
<configurationname1>
, <configurationname2>
and <release>
as in the requirements file
cmt config
source setup.sh -tag=<configurationname>,opt
<configurationname>
= <configurationname1>
or <configurationname2>
echo $CMTPATH
(should return the specified work directory, the $ATLAS_DIST_AREA/latest directory , a Gaudi directory and a LCGCMT directory
cd ~/atlas_software/<configurationname>/<release>
cmt co -r UserAnalysis-00-01-08 PhysicsAnalysis/AnalysisCommon/UserAnalysis
cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-01-08/cmt/
cmt config
source setup.sh
gmake
cd ../run
get_files HelloWorldOptions.py
athena.py -b HelloWorldOptions.py
=>>> start of event 9 <<<=
=>>> end of event 9 <<<=