VetoPerf 3.2.0
An algorithm to measure the performance of vetoes for gravitational-wave detectors
|
Program to access information about online data quality channels. More...
#include <ffl.h>
#include "VPconfig.h"
Functions | |
int | main (int argc, char *argv[]) |
Main program. | |
int | PrintUsage (void) |
Usage funcion. | |
Program to access information about online data quality channels.
Many data quality channels are produced in the DAQ and most of them are saved in the raw data (/virgoData/ffl/raw.ffl
). The name of these channels starts by V1:DQ_
. Data quality channels usually take discrete values depending on the data quality. For example, FLAG
channels take value=1 when the data quality is bad and value=0 when it is good. The dq-print
command lists data quality channels taking a given value at a given time: the channel is then said to be "active". It can also prints the list of segments when the channels are active.
The dq-print
command must be given a timing and a list of channels. It prints the list of data quality time segments or the list of active channels.
The timing is specified as a GPS time interval: gps-start
→ gps-end
. This interval can be provided in different ways:
gps-start=
and gps-end=
are specified explicitly.gps=
is specified as well as a (half-)time window dt=
(by default dt=5
seconds).One or several data quality channels can be provided. If several channels are provided, they will be combined using a OR operation when "segments" are printed.
The list of channels can be specified with the channel=
option. With this option, you can list the channel names separated with a space: channel="V1:CHANNEL1 V1:CHANNEL2 V1:CHANNEL3"
. You can also use patterns: channel="V1:DQ_*_TOTO_* V1:DQ_*_TITI_*"
. By default, channel="V1:DQ_*_FLAG_* V1:DQ*_VETO_*"
is used.
Finally, the list of channels can be provided in a text file with channel-file=
. The channel names or patterns are listed in a single column in this file.
A channel is said to be active if it takes a pre-defined value. By default, this value is set to 1. You can change the active value with the active-value=
option.
The dq-print
command prints the output in the standard output or in a file which must be specified with the output=
option.
There are 2 types of output:
dq-print
is to dump the list of time segments when the data quality channel is active. One or several data quality channels can be combined. To print segments, use the print="segments"
option in the command line.print="list-active"
option in the command line.If you use the second feature, only active channels are printed. It is possible to print all channels (active or not) with the print="list-all"
option.
dq-print
Use the following command to run dq-print
:
dq-print gps=[GPS] channel="V1:CHANNEL1 V1:CHANNEL2 V1:CHANNEL3"
This commands tests whether V1:CHANNEL1
, V1:CHANNEL2
, or V1:CHANNEL3
is active around a given GPS time.
You can also specify a list of channels matching a pattern:
dq-print gps=[GPS] channel="V1:DQ_*_TOTO_* V1:DQ_*_TITI_*"
Or a file with a list of channels (patterns):
dq-print gps=[GPS] channel-file="myfile.txt"
dq-print
comes with many extra options which can be used at the command line. Just type dq-print
to get the list of options:
gps=
: Specify the GPS time of interest.gps-start=
: Specify the GPS starting time.gps-end=
: Specify the GPS ending time.dt=
: Specify the half time window. By default = 5 seconds.channel=
: Specify the list of channels (names and/or patterns). By default = "V1:DQ_*_FLAG_* V1:DQ*_VETO_*"
.channel-file=
: Specify the path to a text file listing the channel names and/or patterns.ffl=
: Specify the path to the ffl file where to scan data quality channels. By default = /virgoData/ffl/raw.ffl
active-value=
: Specify the active value. By default = 1.print=
: Specify the type of output: "segments"
to print segments when at least one channel is active, "list-active"
to print the list of active channels, "list-all"
to print the list of all channels. By default = "list-active"
output=
: Specify the path to the output file. By default, use the standard output.int main | ( | int | argc, |
char * | argv[] | ||
) |
Main program.
int PrintUsage | ( | void | ) |
Usage funcion.
[dq-print-usage]
[dq-print-usage]