RunInfo Class Reference

#include <RunInfo.h>

List of all members.

Public Member Functions

 RunInfo (int t, string d) throw (ILCException::Exception)
void setStatus (int s) throw (ILCException::Exception)
void start () throw (ILCException::Exception)
void stop () throw (ILCException::Exception)
void setDescription (string d) throw (ILCException::Exception)
int getRunNumber ()
int getStatus ()
int getType ()
string getStartTime ()
string getStopTime ()
DaqgetDaq () throw (ILCException::Exception)
string getDescription ()

Static Public Member Functions

static RunInfogetRunInfo (int n) throw (ILCException::Exception)
static string getStatusDefinition (int val) throw (ILCException::Exception)
static string getTypeDefinition (int val) throw (ILCException::Exception)
static vector< RunInfo * > getRunsFromDaqName (string dname) throw (ILCException::Exception)


Detailed Description

Informations about a Run


Constructor & Destructor Documentation

RunInfo::RunInfo ( int  t,
string  d 
) throw (ILCException::Exception)

Constructor

Parameters:
t The type of the run
d The name of the Daq used for the run


Member Function Documentation

Daq * RunInfo::getDaq (  )  throw (ILCException::Exception)

Get a pointer on the DAQ used for the run : you have to delete this pointer.

Returns:
A pointer on the used DAQ

RunInfo * RunInfo::getRunInfo ( int  n  )  throw (ILCException::Exception) [static]

Download the RunInfo object from the database

Parameters:
n The run number
Returns:
A pointer on the object containing all informations. You have to delete this pointer.

vector< RunInfo * > RunInfo::getRunsFromDaqName ( string  dname  )  throw (ILCException::Exception) [static]

Get the list of RunInfo using a given DAQ

Parameters:
dname The name of the DAQ
Returns:
A vector of RunInfo pointers. You have to delete these pointers yourself!

string RunInfo::getStatusDefinition ( int  val  )  throw (ILCException::Exception) [static]

Get the definition of a run status code

string RunInfo::getTypeDefinition ( int  val  )  throw (ILCException::Exception) [static]

Get the definition of a run type code

void RunInfo::setStatus ( int  s  )  throw (ILCException::Exception)

Change the status of the Run

Parameters:
s The new status : 0 INITIALIZED, 1 CONFIGURED, 2 RUNNING, 3 STOPPED, 4 END

void RunInfo::start (  )  throw (ILCException::Exception)

Change the status of the run to RUNNING (2) and record the startDate

void RunInfo::stop (  )  throw (ILCException::Exception)

Change the status of the run to STOPPED (3) and record the stopDate


The documentation for this class was generated from the following files:
Generated on Tue Feb 28 15:35:34 2012 for ILCConfigurationDB by  doxygen 1.4.7