DF Code Repository

Last updated 15 August 2003, G. Lehmann

Summary:


CVS server:

TDAQ software CVS repository on the web:
http://atdaq-sw.cern.ch/cgi-bin/viewcvs.cgi/DAQ/DataFlow

Useful CVS server information:

CVS setup for ATLAS TDAQ MODELING:


top of page

Guidelines for DF packages:

  • Header files
  • Policy packages schema:
                 TDAQPolicy
    |
    DataflowPolicy
    / \
    ROSPolicy DCPolicy
  • requirements file
    top of page

    How to check out a DF package:

    top of page

    How to check out a set of DF packages:

  • Use the script buildDF_co.tcsh

    Usage: buildDF_co.tcsh <working directory> <package file>

    NOTES:

    1. The version of each package is taken according to the file <package file>

    2. In this file, for a package referenced in the form "Pkg *", the latest tagged version is taken.

    3. In the above file, for a package referenced in the form "Pkg ver_tag", the package version tagged ver_tag is taken.

    4. Pkg is supposed to reside in DAQ/DataFlow/ in the CVS server, except if it is in the form path/Pkgname. In the latter case it should reside in path/ in the CVS server.

    5. Before using the script the CVSROOT variable must have been set.
    top of page

    Currently used DF packages:


    top of page

    How to build the DF software (manual mode, a bit complicated)

  • Things to be done every time you want to build package pkg:
    1. Change directory to the desired package's cmt directory:
      cd /working_dir/DAQ/DataFlow/pkg/v0r0p0/cmt
    2. Configure the package:
      cmt config
    3. Source the configuration script created by the previous step:
      source setup.csh
    4. Build and install pkg and all packages used by it:
      make && make install

    top of page

    How to build the DF software:

  • Check DF software.
  • Go into package DFRelease/DF-nightly/cmt and:
  • cmt broadcast "cmt config"
    source setup.csh
    cmt broadcast "make && make install"

    top of page

    How to add a new DF package:

    In this example, we suppose that package NewDFPkg was developed and has the following tree structure:
    /MyWorkingDir/NewDFPkg
    `-- v0r0p0
    |-- NewDFPkg
    |-- cmt
    |-- src
    |-- scripts
    |-- doc
    `-- ...
    To add NewDFPkg on the CVS server follow these steps:
    top of page

    Tagging a package after commiting changes:

    Let's suppose that your are an author of the Pkg package,
    you've made changes that you want to commit to the CVS server
    and want to tag the new version of your Pkg package.

    You have to follow these steps:
    1. Find out what the latest tag of Pkg is:
      cmt cvstags DAQ/DataFlow/Pkg | head -1
      ("cmt cvstags DAQ/DataFlow/Pkg" gives all the tags of the Pkg package)
      Suppose that the latest tag is v1r1p3
    2. Commit to the CVS server the changes made to the Pkg package.
    3. Tag the Pkg package increasing the version tag (E.g. v1r1p3 → v1r1p4):
      cvs rtag -r HEAD v1r1p4 DAQ/DataFlow/Pkg

    top of page

    Nightly builds of the DF software:


    top of page

    Last updated 4 Mars 2003, I. Papadopoulos