How to install and run Moore including  MooLVL2Algs

0. You need an ATLAS_RELEASE version 4.2.0
     set up your CMT environment in this direction.
 
macro ATLAS_RELEASE  "4.2.0"
path_remove  CMTPATH      yourpath
path_prepend CMTPATH      yourpath          yourpath is the your development area
---------------------------------------------------------------------------------------------------------------------------
 

1. Import the packages
Recipe: in yourpath of $CMTPATH

 cmt co -r Moore-00-00-19 MuonSpectrometer/Moore
 cmt co -r MooStatistics-00-00-19  MuonSpectrometer/Moore/MooStatistics
 cmt co -r MooAlgs-00-00-19 MuonSpectrometer/Moore/MooAlgs
 cmt co -r MooEvent-00-00-19 MuonSpectrometer/Moore/MooEvent
 cmt co MuonSpectrometer/Moore/MooLVL2Algs
note: when the version is not specified you get the HEAD version

2. A few updates are needed:
Recipe:

 cd (yourpath)/MuonSpectrometer/Moore/MooEvent/MooEvent-00-00-19/MooEvent
 cvs  update -A PhiSegment.h
 cvs update -A RZSegment.h
3. Set up the right requirement!
Recipe:
cd (yourpath)/MuonSpectrometer/Moore/Moore-00-00-19/cmt
edit the requirements file, put a # in front of the line:

             use MooiPat       MooiPat-00-00-19       MuonSpectrometer/Moore

and add the following line:

use MooLVL2Algs    MooLVL2Algs-00-00-*       MuonSpectrometer/Moore
As example, I have put a copy of the Moore requirements in:
 
(yourpath)/MuonSpectrometer/Moore/MooLVL2Algs/MooLVL2Algs-00-00-01/share/requirements_moore
so you can directly copy this into:
(yourpath)/MuonSpectrometer/Moore/Moore-00-00-19/cmt/requirements
4. Configure the packages and compile
Recipe:
            cd (yourpath)//TestRelease/TestRelease-*/cmt
             cp  ../../../MuonSpectrometer/Moore/Moore-*/share/TestRelease_requirements   requirements
             cmt broadcast cmt config
             source setup.[c]sh
             cmt broadcast gmake

5. Copy the necessary files to run athena
Recipe:

cd  (yourpath)/TestRelease/TestRelease-*/run
ln -s /afs/cern.ch/atlas/offline/data/bmagatlas02.data fieldmap.dat
stagein -M /castor/cern.ch/atlas/tape/Y01345/Y01345.5.al mu20Gev
ln -sf mu20Gev ZEBRA.P
ln -s  /afs/cern.ch/atlas/maxidisk/d111/gcataldi/TrigOut/trig20Gev.out Persint.out
  note: you need to link the input data file, mu20Gev is an example using the single muon 20 GeV pt TDR data
           you need to link the corresponding output ASCII file produced by atrig.

6.  Run Moore in Athena framework using the MooLVL2Algs
Recipe: copy MooL2_jobOptions.txt and run

cd  (yourpath)/TestRelease/TestRelease-*/run
athena MooL2_jobOptions.txt