Difference between revisions of "NIKHEF PAT workshop Oct2006"

From Atlas Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
  
 
==Set up CMT==
 
==Set up CMT==
  
* Login to lxplus at CERN and create a working directory called "Tutorial". We will use the release 12.0.1 this tutorial:  
+
* Login to lxplus at CERN and create a working directory called "Tutorial". We will use the release 12.0.2 this tutorial:  
 
<pre>
 
<pre>
 
ssh lxplus.cern.ch
 
ssh lxplus.cern.ch
Line 9: Line 8:
 
mkdir Tutorial
 
mkdir Tutorial
 
cd Tutorial
 
cd Tutorial
mkdir 12.0.1
+
mkdir 12.0.2
 
</pre>
 
</pre>
 +
 +
* Create a file called "requirements" and setup CMT. My requirements file looks like this where my working area for 12.0.2 is ${HOME}/scratch0/Workshop/12.0.2:
 +
<pre>
 +
set  CMTSITE  CERN
 +
set  SITEROOT /afs/cern.ch
 +
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist
 +
                     
 +
macro ATLAS_GROUP_AREA "/afs/cern.ch/atlas/groups/PAT/Tutorial"
 +
 +
macro ATLAS_TEST_AREA "" \
 +
        12.0.2 "${HOME}/scratch0/Workshop/12.0.2"
 +
 +
 +
apply_tag oneTest
 +
 +
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
 +
</pre>
 +
 +
*Then do the following:
 +
<pre>
 +
source /afs/cern.ch/sw/contrib/CMT/v1r18p20060301/mgr/setup.sh
 +
cmt config
 +
</pre>
 +
 +
==Setup for the release 12.0.1==
 +
*Do the following:
 +
<pre>
 +
source setup.sh -tag=12.0.1
 +
</pre>
 +
 +
*Check that the CMT path is correct by doing this
 +
<pre>
 +
echo $CMTPATH
 +
</pre>
 +
 +
*Stuff like this should be printed to your screen:
 +
<pre>
 +
/afs/cern.ch/user/k/ketevi/scratch0/Tutorial/12.0.1:
 +
/afs/cern.ch/atlas/software/builds/AtlasOffline/12.0.1
 +
</pre>
 +
 +
*You see that the path to your working directory, the path to the release directory and the external are set correctly - do not proceed unless this is done correctly.

Revision as of 13:12, 22 September 2006

Set up CMT

  • Login to lxplus at CERN and create a working directory called "Tutorial". We will use the release 12.0.2 this tutorial:
ssh lxplus.cern.ch
cd scratch0
mkdir Tutorial
cd Tutorial
mkdir 12.0.2
  • Create a file called "requirements" and setup CMT. My requirements file looks like this where my working area for 12.0.2 is ${HOME}/scratch0/Workshop/12.0.2:
set   CMTSITE  CERN
set   SITEROOT /afs/cern.ch
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist
                      
macro ATLAS_GROUP_AREA "/afs/cern.ch/atlas/groups/PAT/Tutorial"
 
macro ATLAS_TEST_AREA "" \
        12.0.2 "${HOME}/scratch0/Workshop/12.0.2"
 
 
apply_tag oneTest
 
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
  • Then do the following:
source /afs/cern.ch/sw/contrib/CMT/v1r18p20060301/mgr/setup.sh
cmt config

Setup for the release 12.0.1

  • Do the following:
source setup.sh -tag=12.0.1
  • Check that the CMT path is correct by doing this
echo $CMTPATH
  • Stuff like this should be printed to your screen:
/afs/cern.ch/user/k/ketevi/scratch0/Tutorial/12.0.1:
/afs/cern.ch/atlas/software/builds/AtlasOffline/12.0.1
  • You see that the path to your working directory, the path to the release directory and the external are set correctly - do not proceed unless this is done correctly.