namespace generator class Generator

DMT data generation class.

Public Methods

Generator(void)
Default Generator constructor
~Generator(void)
Generator destructor
int addChannel(const char* chan, int detID=0, const Pipe* daq=0)
Add a channel to the list of channels to be simulated
int addDetector(const char* ifo)
Add specified ifo to the detector list.
int addDetector(const GenDet& det)
Add an IFO to the Generator list.
int addSource(const std::string& name, const DataSource& data)
Add a named data source.
int addSource(const std::string& name, DataSource* data=0)
Add an existing DataSource to the Generator source list.
void generate(const Time& t0, Interval dT)
Generate dat for the specified time range.
void releaseSourceData(const Time& t0)
Release source data
void releaseChannelData(const Time& t0)
Release channel data
Interval getGenerStride(void) const
Get the generation stride.
Time getLatest(void) const
Get the last generation time.
int getNChannel(void) const
Get the number of channels.
int getNDetector(void) const
Get the number of detectors.
int getNSource(void) const
Get the number of data sources
const GenChan& refChannel(int id) const
Get a constant reference to the specified channel ID
GenChan& refChannel(int id)
Get a reference to the specified channel ID
const GenDet& refDetector(int id) const
Get a constant reference to a Detector definition
GenDet& refDetector(int id)
Get a constant reference to a Detector definition
const DataSource& refSource(int id) const
Get a constant referecne to the data cource object with the specified index
DataSource& refSource(int id)
Get a referecne to the data cource object with the specified index
int getSourceID(const std::string& name) const
get named source index.
void setDebug(int lvl)
Set the debug verbosity level
void setGenerStride(Interval dt)
Get the generation stride.

Documentation

The Generator class generates data for a monte carlo study of LIGO analysis routines. The signals are optionally passed through a response filter and then added to the noise. One or more signals may be injected either at fixed or random times. The data sources and output channels are specified using the "addSource" and "addCHannel" methods.
Generator(void)
Default Generator constructor

~Generator(void)
Generator destructor

int addChannel(const char* chan, int detID=0, const Pipe* daq=0)
Add a channel to the list of channels to be simulated. The channel definition includes a name, a detector identifier.
Returns:
New channel index
Parameters:
chan - Channel name
detID - Detector index
daq - DAQ simulation filter pipe.

int addDetector(const char* ifo)
Add default detector information for the specified ifo
Returns:
Index of the added detector.
Parameters:
ifo - Two digit standard IFO name (in the form "Xn")

int addDetector(const GenDet& det)
Add an IFO to the Generator list.
Parameters:
det - Detector specifier.

int addSource(const std::string& name, const DataSource& data)
Create a copy of a data source and add the copy to the data source list.
Returns:
Source index.
Parameters:
name - Name of the data source.
data - Data source to be cloned

int addSource(const std::string& name, DataSource* data=0)
Add a data source object to the Genereator source list. The specified object is added to the list. Ownership of the DataSource is passed to the generator class object.
Returns:
Source index
Parameters:
name - Name of the new data source.
data - DataSource object.

void generate(const Time& t0, Interval dT)
Generate data for all sources in the specified time segment. The source data are then combined as specified to create the output channels.
Parameters:
t0 - Segment start time
dT - Length of time segment

void releaseSourceData(const Time& t0)
Release data from all data sources up to the specified time.
Parameters:
t0 - start of data to be retained.

void releaseChannelData(const Time& t0)
Release data from all channels up to the specified time.
Parameters:
t0 - start of data to be retained.

Interval getGenerStride(void) const
Get the basic generation time interval.
Returns:
Generation time stride.

Time getLatest(void) const
Get the latest time for which the defined channel data are complete.
Returns:
LAtest time for whic channel data are complete.

int getNChannel(void) const
Get the number of channels defined.
Returns:
Get number of channels defined.

int getNDetector(void) const
Get the number of detectors currently defined in the detector list.
Returns:
Number of defined detectors.

int getNSource(void) const
Get the number of data sources defined in the generator data source list.
Returns:
Number of data sources defined in the source list.

const GenChan& refChannel(int id) const
Get a constant reference to the specified channel ID
Returns:
Constan reference to a Generator channel class object
Parameters:
id - channel index

GenChan& refChannel(int id)
Get a reference to the specified channel ID
Returns:
Reference to a Generator channel class object
Parameters:
id - channel index

const GenDet& refDetector(int id) const
Get a constant reference to a Detector definition
Returns:
Constant reference to the specified generator detector object.
Parameters:
id - Detector index

GenDet& refDetector(int id)
Get a constant reference to a Detector definition
Returns:
Reference to the specified generator detector object.
Parameters:
id - Detector index

const DataSource& refSource(int id) const
Get a constant referecne to the data cource object with the specified index
Returns:
Constant reference to the specified data source.
Parameters:
id - Data source object index.

DataSource& refSource(int id)
Get a referecne to the data cource object with the specified index
Returns:
Reference to the specified data source.
Parameters:
id - Data source object index.

int getSourceID(const std::string& name) const
Get the data source index for the source with the specified name.
Returns:
Index of named DataSource.
Parameters:
name - DataSource name.

void setDebug(int lvl)
Set the debug verbosity level
Parameters:
lvl - level of debug information to be produced.

void setGenerStride(Interval dt)
Get the basic generation time interval.
Parameters:
dt - Get generation time stride.


This class has no child classes.
Author:
John G. Zweizig
Version:
1.0 ; Modified December 27, 2004

alphabetic index hierarchy of classes


generated by doc++