Difference between revisions of "NIKHEF PAT workshop Oct2006"
Jump to navigation
Jump to search
Line 52: | Line 52: | ||
*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. | *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. | ||
+ | ==Run Time Setup== | ||
+ | *Go to your working area and check out the follow package: | ||
+ | <pre> | ||
+ | cd 12.0.1 | ||
+ | cmt co -r UserAnalysis-00-08-01 PhysicsAnalysis/AnalysisCommon/UserAnalysis | ||
+ | </pre> | ||
+ | |||
+ | *Now compile everything as follows: | ||
+ | <pre> | ||
+ | cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/cmt | ||
+ | cmt config | ||
+ | source setup.sh | ||
+ | cmt broadcast gmake | ||
+ | cd ../run | ||
+ | </pre> | ||
+ | |||
+ | *To test that everything has been done correctly, do: | ||
+ | <pre> | ||
+ | get_files HelloWorldOptions.py | ||
+ | athena.py -b HelloWorldOptions.py | ||
+ | </pre> | ||
+ | |||
+ | *Stuff like this should be printed to the screen: | ||
+ | <pre> | ||
+ | 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 | ||
+ | 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 | ||
+ | </pre> | ||
+ | |||
+ | ==The Next Time You Login== | ||
+ | *The next time you login, just do the following: | ||
+ | <pre> | ||
+ | cd ${HOME}/scratch0/Tutorial | ||
+ | source setup.sh -tag=12.0.1 | ||
+ | cd 12.0.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/cmt | ||
+ | source setup.sh | ||
+ | cd ../run | ||
+ | </pre> |
Revision as of 13:15, 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.2
- Do the following:
source setup.sh -tag=12.0.2
- 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/o/ordonez/scratch0/Workshop/12.0.2: /afs/cern.ch/atlas/software/builds/AtlasOffline/12.0.2
- 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.
Run Time Setup
- Go to your working area and check out the follow package:
cd 12.0.1 cmt co -r UserAnalysis-00-08-01 PhysicsAnalysis/AnalysisCommon/UserAnalysis
- Now compile everything as follows:
cd PhysicsAnalysis/AnalysisCommon/UserAnalysis/cmt cmt config source setup.sh cmt broadcast gmake cd ../run
- To test that everything has been done correctly, do:
get_files HelloWorldOptions.py athena.py -b HelloWorldOptions.py
- Stuff like this should be printed to the screen:
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 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
The Next Time You Login
- The next time you login, just do the following:
cd ${HOME}/scratch0/Tutorial source setup.sh -tag=12.0.1 cd 12.0.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/cmt source setup.sh cd ../run