Gleam User Guide:  UserAlg and Flight

Adding your own code

So you have Gleam installed and running...now you want to add some code!  How would you do that?  There are 2 special packages available to help you:  userAlg and Flight.  userAlg is meant for most users.  Flight was created for the flight software group.  

UserAlg

This package contains a simple Gaudi algorithm. A sample version of userAlg is maintained in the CVS repository. It illustrates the basics of an algorithm and how to access commonly-used elements of the Transient Data Store (TDS), and how to create a simple ntuple of your own. The intention is that you take this file and do violence to it! It is just an example.

All the action is in the execute() function; that is really the only place you would need to make changes. One exception to that is that ntuple creation is optional in the example. If you wish to turn it off, then comment out the

#define NTUPLE

line near the top of the userAlg.cxx file. You should check out the Cookbook for some further examples of accessing the TDS.  For more information about accessing data from the TDS, please see the next section.

Step by Step Instructions to setup userAlg

  1. First determine the latest tagged version of userAlg from the nightly build web page.
  2. Checkout userAlg from the CVS repository
    1. Linux
      1. Use glastpack to checkout userAlg from the CVS repository.
        glastpack.pl co userAlg virj
    2. Windows
      1. Use VCMT to checkout userAlg.
  3. Build userAlg
    1. Linux
      1. Use glastpack
        glastpack.pl build userAlg virj
    2. Windows
      1. Use VCMT to build userAlg

Flight

The Flight package is provided for the flight software group as a place to test and develop flight-oriented algorithms in the Glast Gaudi environment.  The example application is FlightTest which contains FlightTest.cxx - which is a Gaudi algorithm that demonstrates access the Monte Carlo and Digitization data from the Gaudi Transient Data Store(TDS).  For more information about accessing data from the TDS, please see the next section.  You should check out the Cookbook for some further examples of accessing the TDS.

Step by Step Instructions to setup Flight

  1. First determine the latest tagged version of Flight from the nightly build web page.
  2. Checkout Flight from the CVS repository
    1. Linux
      1. Use glastpack to checkout Flight from the CVS repository.
        glastpack.pl co Flight virj
    2. Windows
      1. Use VCMT to checkout Flight.
  3. Build Flight
    1. Linux
      1. Use glastpack
        glastpack.pl build Flight virj
    2. Windows
      1. Use VCMT to build Flight

 

 

H. Kelly Last Modified:  2004-08-04 15:42:06 -0700