Section: BaBar Trigger Documentation (1)
Updated: December 2001
Return to Main Contents
getTrgConfig - get a TrgConfig file from the database
file for the given configuration key or alias from the database and
save it to disk or print its contents to the standard output.
can be called with one optional argument to specify the configuration
tree, or without arguments to retrieve the current default
configuration according to the latest Run Control configuration.
- <config key>
If a numeric configuration key is given getTrgConfig will search
for a TrgConfig object that is associated with that key. The key
argument is assumed to represent a "top key", i.e., a key pertaining
map of the configuration database. The key can be given either in
decimal format or in hexadecimal format using a "0x" prefix.
- <config alias>
A non-numeric argument is interpreted as a run-type alias.
will look up the key that is referred to by this alias and try to find
the corresponding TrgConfig object.
An alias can be specified as a simple run-type, e.g.,
or as a combination of a map and an alias, e.g.,
If no map is given, the
alias map is used as the default map, which contains the data-taking
aliases used by Run Control (Orc). The
alias map contains the aliases used for Monte Carlo production. If
the specified alias or alias map does not exist, or if the
corresponding key does not contain a TrgConfig object,
will report an error.
If no argument is given
will look up the latest configuration record in the conditions
database to find out which configuration key was last used by Run
Control. It will then fetch the TrgConfig object for that key. Note
that Run Control's database proxy writes a configuration record every
time the DAQ system is configured.
The following options control the output of the command.
Extract the TrgConfig file under its stored name and write it to the
current directory. Without the -x option, the file is parsed
and the parsed output is written to the standard output. Both the
stored file and the parsed output represent valid inputs to the
Produce verbose output. More v's increase the verbosity.
Stay quiet. The opposite of -v.
application will attempt to make a connection to a BaBar database
federation specified by the
environment variable. The database schema of that federation must be
compatible with the release from which
is executed and it must have at least the configuration data loaded.
variable should be set by the appropriate script sourced by a shell
function such as
Note that new configuration data become available in
only after the regular sweeps from
If a very recent configuration needs to be accessed, it may be
necessary to run the
script, following the usual regulations for its use.
Look up the configuration currently in use for data taking:
[Note that this version of the command gives the most recent result
only when run on the IR2 platform, as this requires access to
ir2boot. On other federations it will retrieve the most recent
configuration up to the time of the last sweep.]
Retrieve the current
Save the configuration contained under top key 1219 to disk:
getTrgConfig -x 1219
Look up the most recent list of aliases:
This command will look up "?" in the
default map and since an alias with that name does not exist it will
print the alias list it found. [Depending on the command shell, one
may have to quote the "?" or use any other character that does not
represent a valid alias.] The
map defines the run-types that are used for data taking, e.g.,
"PHYSICS". This version of the command is useful for looking up
the current list of run-types.
Similarly, the command
will print the alias list of the
map contains the aliases used for Monte Carlo production, e.g.,
Rainer Bartoldus <email@example.com>.
Report bugs to
Software developed for the BaBar Detector at the SLAC B-Factory.
Copyright © 2001 BaBar Collaboration
More documentation on
and the BaBar Trigger can be found on the BaBar web site
- DATABASE ACCESS
- REPORTING BUGS
- SEE ALSO
This document was created by
using the manual pages.
Time: 00:21:45 GMT, February 20, 2005