SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo CM2 logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews

BetaMiniApp: BaBar Analysis Application

Last Updated: 12 April 2004
Shahram Rahatlou, UC San Diego


Purpose

Run Physics software to analyze the simulated and data events.

Input

CM2 collections for data, MC, or skims.

Output

This is up to the user. Typically it is an hbook or root file with variables for analysis. However in the CM2 era, you might want to consider doing a smart 'reskimming' and use the UsrData technology to keep connections between floats/integers (typical analysis variables) and the Beta candidates in the collections. See the section on user data for more details.

Requirements

  1. A working production release. Check the AnalTools-hn forum for the latest recommended release.
  2. A collection for data or MC events
  3. A tcl file to configure correctly the I/O (see the example below).

Example

In the following $ is the shell prompt, the lines with # are comments, and 14.3.2b is chosen as an example production release.
# setup a new test release
$ newrel -s $BFROOT/work/your_username_initial/your_username -t 14.3.2b my-14.3.2b
$ cd my-14.3.2b

# setup your path 
$ srtpath <enter> <enter>

# setup the correct condition database
$ cond14boot

# checkout the workdir package
$ addpkg workdir
$ cd workdir
$ gmake setup

Next, you must create a tcl snippet with your favorite options for each job you want to run.

Here is an example mybeta.tcl:

# -------- mybeta.tcl: begin -----------

lappend inputList /store/SP/R14/001237/200309/14.3.1c/SP_001237_000533
set levelOfDetail "cache"
set ConfigPatch   "MC"
set BetaMiniTuple "root"
set histFileName  "myBeta.root"
sourceFoundFile BetaMiniUser/MyMiniAnalysis.tcl

# -------- mybeta.tcl: end -----------
As you can see the tcl snippet is quite simple, it just sets a few configuration parameters specific to a particular job you would like to run: The full set of options is described in BetaMiniUser/MyMiniAnalysis.tcl.

You are now ready to run:

$ BetaMiniApp mybeta.tcl
This will run a sample physics analysis module.

More detail on configuring BetaMini applications for your specific analysis can be found in the section on accessing the mini with Beta.