Easy Timeline Syntax

Sample timeline file:
c allskip 6023-6025 7123 8888 9999
! the beginning:
#yup this is it
comment another comment

timeline MH1X efficiency
file mh1xeff
category muon
hist imu: efficiency all planes
val v1
err e1
skip 9785-9791 9305
start 8192

timeline MH efficiency
file mh_all_eff
category muon
hist imu: efficiency all planes
val v1..4/4
err e1..4
# equivalent to: err sqrt(e1**2 + e2**2 + e3**2 + e4**2)

General Format

Keywords

Keywords are divided into categories:

Global Keywords:

allskip
Run numbers for alltimelines to skip. This should be used sparingly, or not at all. Whole ranges of run numbers can be given. for example, 9785-9791 indicated all run numbers between and including 9785 and 9791. Run numbers or ranges are separated by commas or whitespace. If more than one allskip keyword is given, the additional run numbers are added to the list.

Timeline Keywords:

timeline
Begins defining a timeline. The "data" is the name of the timeline.
category
Timelines can be grouped into categories. If no category is given, it defaults to "none". (The timelines are placed in subdirectories which are the name with a ".dir" extension.
hist
The title of the histogram. This title is case-insensitive (converted to upper case automatically). If the title is "none", then the timeline does not require any histogram data. This only works if the value and error are computed from variables and/or scaler rates alone. (See Quantities below)
file
The filename containing the timeline data. ".tl" is automatically appended. If no filename is given, the timeline name is used instead, with goofy characters converted to underscores.
val
The value to be plotted. See "quantities" below. This must be specified for each timeline. Well, if it is omitted, it is assumed to be "v1".
err
The uncertainty of the value. If omitted, no error is reported.
skip
The run numbers for this timeline to ignore. Ranges can be given like in allskip.
start
Indicates which run number to begin accumulating data for. Defaults to zero. If an oddpack file does not contain the histogram specified, it will be ignored. So, indicating a start number is not necessary, but can speed up the timeline accumulation if you're not interested in earlier data or you know that a histogram was recently added.

Variable Keywords:

variable
Begins defining a variable. The data is the name of the variable. It IS case-sensitive, and can only contain letters and numbers.
hist
The histogram title containing the data needed for the variable.
val
A quantity (see below) defining the value of the variable.

Quantities

Quantities specified by val and err are computed by the Perl interpreter. This is much like calculations in C, plus the exponentiation operator, **, borrowed from FORTRAN. All computation is done using floting point arithmatic.

The following special syntax is included:

Functions for timeline quantities

Scaler Values

Scaler data for each run is also available to timelines. These scaler rates reflect the entire run, whereas the oddpack file will analyze all the events in file #2 (typically around 40,000 events).

The values are reffered to with the syntax:

scaler(name)

where name is any of: The scalar names are the ones that appear in the scaler logs. Follow this link for a full list of them. The scalar names must be lower case (sorry).

Processing

First all variables, including all scaler rates, are computed. Then all the timeline values and errors are computed. The order in which variables or timelines appear in the timeline file makes absolutely no difference.

Ideas for Future Enhancement


Last modified: Fri Apr 18 15:13:13 CDT 1997