DatabaseUpdater

Contents

Contact Name

Robert Hatcher.

Overview

The job of the DBU is to extract information from the data stream and condense it into database table rows. Generally it is run in a fast offline mode, meaning it is either getting the data in real time (from the Dispatcher) or soon after the file has been archived to tape.

Currently the DBU fills the following tables:
DbuSubRunSummary Information (start/end time, run type, etc.) for each file (subrun).
DbuVaChipPeds Pedestal values for VA electronics from RawPedestalTableBlock.
DbuVaChipSpars Sparsification threshold values for VA electronics from RawSparsifierTableBlock.

User Interface

The dbu program is similar to loon but with the addition of the DatabaseUpdater library and without most of the reconstruction and simulation package libraries.

The DbuDaqMonitorModule is like a normal JobCModule module.

Database Access

Lots. Writes to the above mentioned tables. Provides row object classes for retrieving same data using DBI.

Configuring & Running

Configuring the DbuDaqMonitorModule

    JobC jc;
    // ...
    Registry dbucfg = jc.Path(pathname).Mod("DbuDaqMonitor").DefaultConfig();
    dbucfg.UnLockValues();
    dbucfg.Set("SubRunSummary",1);
    dbucfg.Set("RecordAtStart",1);
    dbucfg.Set("HeartbeatIntervalSec",5*60);
    dbucfg.Set("VaChipPeds",1);
    dbucfg.Set("VaChipSpars",1);
    dbucfg.Set("VaChipVldSec",2*7*24*60*60);
    jc->Path(pathname).Mod("DbuDaqMonitor").Config(dbucfg);

Running the dbu

Dispatcher data driven:

$ dbu -bq $SRT_PUBLIC_CONTEXT/DatabaseUpdater/dbu_dds.C
File driven: $ dbu -bq $SRT_PUBLIC_CONTEXT/DatabaseUpdater/dbu_file.C <list-of-files>

Further Links

None.
Robert Hatcher Last Modified: $Date: 2004/10/05 12:24:36 $