Difference: D3PDMakerAthena (r3 vs. r2)

Create Proper Directories and Files

You must first setup the cmt structure and include the proper files. This explanation was based on https://twiki.cern.ch/twiki/bin/view/AtlasProtected/SingleTopDPDMakerTutorial

  • Create a top-level directory to do your work $> mkdir SingleTopD3PDMaker
  • Make sub-directories $> mkdir -p SingleTopD3PDMaker/cmthome  SingleTopD3PDMaker/testarea/14.5.0
  • In the cmthome directory make files called requirements and setup.sh. See examples of these files below. Note that these files will have to be edited to match your own directory structure and will have additional differences if you are not running on a CERN computer (see above link).
    • requirements
       
      #---------------------------------------------------------------------
      # requirements
      #---------------------------------------------------------------------
      #
      set CMTSITE CERN
      set SITEROOT /afs/cern.ch
      macro ATLAS_DIST_AREA /afs/cern.ch/atlas/software/dist
      macro ATLAS_TEST_AREA /work/jever/pryan/SingleTopD3PDMaker/testarea
      apply_tag setup
      apply_tag simpleTest
      use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
      #---------------------------------------------------------------------
              
    • setup.sh
      #---------------------------------------------------------------------
      # setup.sh
      #---------------------------------------------------------------------
      #
      if test "${CMTROOT}" = ""; then
        CMTROOT=/afs/cern.ch/sw/contrib/CMT/v1r20; export CMTROOT
      fi
      . ${CMTROOT}/mgr/setup.sh
      
      tempfile=`${CMTROOT}/mgr/cmt -quiet build temporary_name`
      if test ! $? = 0 ; then tempfile=/tmp/cmt.$$; fi
      ${CMTROOT}/mgr/cmt setup -sh -pack=cmt_standalone -path=/work/jever/pryan/SingleTopD3PDMaker/cmthome  -no_cleanup $* >${tempfile}; . ${tempfile}
      /bin/rm -f ${tempfile}
      
      export CVSROOT=:ext:isscvs.cern.ch:/local/reps/atlas
      export CVS_RSH=ssh 
      #---------------------------------------------------------------------
              

cmt Setup

  • $> cd cmthome
  • $> source setup.sh -tag=14.5.0

Checkout the package

  • $> cd testarea/14.0.5/
  • $> cmt co PhysicsAnalysis/DistributedAnalysis/PandaTools (Panda tools for running on the grid. This gives an error message during checkout that PandaTools not a CMT package and the directory in the web-browsable code is empty.)
  • $> cmt co PhysicsAnalysis/TopPhys/SingleTopDPDMaker (to get the latest version of the code) or
  • $> cmt co -r SingleTopDPDMaker-00-00-XX PhysicsAnalysis/TopPhys/SingleTopDPDMaker (to get version -XX of the code)
  • $> cmt co offline/Reconstruction/egamma/egammaUtils
  • $> cmt co offline/Reconstruction/egamma/egammaInterfaces
  • $> cmt co offline/Reconstruction/Top/TopUtils
  • $> cmt co offline/Reconstruction/Top/TopInputs
  • X
  • $>cmt co -r SingleTopDPDMaker-00-00-14 offline/PhysicsAnalysis/TopPhys/SingleTopDPDMaker
  • $>cmt co -r egammaUtils-00-04-13 offline/Reconstruction/egamma/egammaUtils
  • $>cmt co -r egammaInterfaces-00-00-27 offline/Reconstruction/egamma/egammaInterfaces

Compile in Athena

  • $> cd testarea/14.5.0/offline/PhysicsAnalysis/TopPhys/SingleTopDPDMaker/cmt
  • $> cmt config
  • $> source setup.sh
  • $> cmt make

-- PatRyan - 22 Jul 2009

View topic | View difference side by side | History: r3 < r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback