Howto install CMT:

Index:

On LXPLUS:

  1. change your shell:
    sh
  2. search the last available CMT version:
    ls -l /afs/cern.ch/sw/contrib/CMT/ (e.g. v1r16p20040901)
  3. call CMT setup script:
    source /afs/cern.ch/sw/contrib/CMT/<cmtversion>/mgr/setup.sh (e.g. <cmtversion> : v1r16p20040901)
  4. check the success of the CMT setup script by typing:
    1. cmt version (should return the <cmtversion> you specified above)
    2. echo $CMTROOT (should return: /afs/cern.ch/sw/contrib/CMT/<cmtversion>)
  5. create CMT home directory:
    mkdir ~/cmthome
    and enter it:
    cd ~/cmthome
    TIP Tip: You can also do the following steps in your $HOME directory but using a dedicated directory makes it more transparent for you
  6. create requirements file:
    1. cat >requirements
      and type or copy-paste:
      # 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)
      press CTRL+D at the end
    2. edit requirements with you favorite editor (e.g. vi, pico, emacs)
      (e.g. <configurationname1> : Tuturial ; <configurationname2> : Work ; <release> : 8.8.1)
      TIP Tip: As you see above you can use different configurations (with different releases or different work directories) with the tag command and you are free to name them how ever you like (e.g. Tutorial,Test,Work...) and add even more if you like
  7. create the required working paths:
    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>
    ALERT! Cautition: be sure to use the same <configurationname1>, <configurationname2> and <release> as in the requirements file
  8. create the setup and cleanup scripts:
    cmt config
  9. apply the setup script:
    source setup.sh -tag=<configurationname>,opt
    ALERT! Cautition: <configurationname> = <configurationname1> or <configurationname2>
    TIP Tip: only this last step has to be redone at each session startup
  10. check the success of the CMT setup script by:
    echo $CMTPATH (should return the specified work directory, the $ATLAS_DIST_AREA/latest directory , a Gaudi directory and a LCGCMT directory

Test CMT

  1. enter the work directory you have choosen with the setup script:
    cd ~/atlas_software/<configurationname>/<release>
  2. check out the package UserAnalysis/UserAnalysis-00-01-08:
    cmt co -r UserAnalysis-00-01-08 PhysicsAnalysis/AnalysisCommon/UserAnalysis
  3. enter the package's CMT directory:
    cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis-00-01-08/cmt/
  4. create the setup and cleanup scripts:
    cmt config
  5. apply the setup script:
    source setup.sh
  6. compile the package:
    gmake
  7. enter the package's run directory:
    cd ../run
  8. copy the Hello World jobOptions file into the run directory:
    get_files HelloWorldOptions.py
  9. execute athena with the Hello World jobOptions file:
    athena.py -b HelloWorldOptions.py
    should return:
    [...]
    AthenaEventLoopMgr INFO =>>>  start of event 9  <<<=
    HelloWorld INFO execute()
    HelloWorld INFO An INFO message
    HelloWorld WARNING A WARNING message
    HelloWorld ERROR An ERROR message
    HelloWorld FATAL A FATAL error message
    AthenaEventLoopMgr INFO =>>>  end of event 9    <<<=
    HistorySvc INFO Service finalised successfully
    HelloWorld INFO finalize()
    [...]
    ChronoStatSvc.f... INFO Service finalized succesfully
    ToolSvc INFO Removing all tools created by ToolSvc
    ApplicationMgr INFO Application Manager Finalized successfully
    ApplicationMgr INFO Application Manager Terminated successfully

-- DanielDobos - 03 Nov 2004

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2004-11-09 - MarcDuenser
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback