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
next up previous
Next: Compile-time configuration Up: note508 Previous: Packages


Configuration

This section describes how to create and run a Beta analysis application which reads the mini. As a prerequisite, it is assumed that the user has checked out BetaMiniUser from CVS. The user may also wish to create his own analysis package based on BetaMiniUser, in which case, the source code, GNUmakefile and configuration files must be copied from BetaMiniUser into a new package directory. To configure either BetaMiniUser or a descendent package based on BetaMiniUser, the following steps need to be performed:
  1. Compile-time configuration: Modifications to analysis module.
  2. Build-time configuration: Create and configure an AppUserBuild object. Update package dependency files.
  3. Run-time configuration: Create and configure a TCL snippet file to run the application.

Table: BetaMiniUser TCL configuration parameters.
TCL parameter
Allowed values
Default
Comments
levelOfDetail
micro, cache, extend, refit, rebuild
cache
See Table 1. The list of allowed levelOfDetail values are stored in the variable BetaMiniLevels.
ConfigPatch
Run1, Run2, MC
Run2
Specifies the data taking period of the input. Run2 now encompasses all data taking periods. MC specifies Monte Carlo simulated data.
MCTruth
true, false
false if ConfigPatch is not equal to MC, else true
true means construct the MCTruth BtaCandidates and maps to reco candidates
inputList     Space-delimited list of input collections. The format of the input data, Bdb or Kan, is specified by the variable BetaMiniReadPersistence.
BetaMiniReadPersistence
Kan, Bdb
Kan
The persistence format of the input data
BetaMiniTuple
hbook, root
hbook
Determines the type of output histogram file to create. This parameter will enable RooTupleEnv (HbkTupleEnv) module and disable HbkTupleEnv (RooTupleEnv) module if this parameter is set to root ( hbook).
histFileName  
BetaMini.
${BetaMiniTuple}
Name of ntuple file.
BetaMiniSystems
Eid Tag Trk Emc Ifr Pid G3 G4 Reco Svt Dch Drc L1Glt L1Fct L3T BtaMini
The list of systems to be read, constructed by BetaMiniSequences/BetaMiniDefineSystems.tcl. A subset of systems may be explicitly specified but must account for system interdependencies.
BetaMiniReadComponents
Esd, Cnd, Aod, Tru, Tag, Sim
Dependent on levelOfDetail
The components which can be configured in a BetaMiniUser job.
BetaMiniReclusterComponents  
Esd Sim
Defines which components are written into which root file. All components except those specified in BetaMiniReclusterComponents are written into the first (header) file.

Each of these steps will be explained in more detail below. There is no need to set environment variables as part of the build- and run-time configuration for the mini. Global TCL parameters are used instead. These parameters are described in Table 2.

Subsections
next up previous
Next: Compile-time configuration Up: note508 Previous: Packages
William Stephen Lockman 2004-05-08