DcsUser

Contents

Contact Name

Erik Beall.

Overview

DcsUser consists of the database access classes for the DCS database tables and helper utilities.

User Interface

DcsUser can currently only be run through loon scripts.

Database Access

The usual environment vars for loon must be set (such as ENV_TSQL_URL, usually done for you in setup scripts).

Configuring & Running

An example follows: To write to database from dcs root files:
{
  gSystem->Load("libDcsWriter.so");

  JobC jc;
  // create a path, Input::Get is implicit
  jc.Path.Create("Spin","DcsWriter::Ana");

  jc.Input.Set("Format=input");
  //jc.Input.Set("Streams=DaqMonitor,DaqSnarl");

  // apparently this is necessary with DCS files ...
  jc.Input.Set("Streams=DcsMonitor,DcsAlarm");

  jc.Path("Spin").Run();
  jc.Path.Report();
}
To read from database, see this script

Further Links


Erik Beall Last Modified: $Date: 2004/06/07 14:48:48 $