namespace generator class FrameData : public DataSource

FrameData allows the user to inject pre-recorded data into the generation streams

Inheritance:


Public Methods

FrameData(void)
Frame data constructor
FrameData(const char* files, const char* channel)
Parameter constructor
~FrameData(void)
Pre-recorded data source destructor
FrameData* clone(void) const
Make an identical copy of a frame data source
const char* getDataType(void) const
Return the data source type
void setChannel(const std::string& name)
Specify the name of the channel to be read in
void setFileList(const std::string& name)
Specify the list of files to be searched for appropriate data
virtual void setParameter(const std::string& name, const std::string& val)
Specify the value of a parameter

Inherited from DataSource:

Public Classes

enum RepMode
kContinuous
Continuous data source
kSingle
Generate a single event
kRate
Generate events with poisson statistics
kFixed
Generate events at fixed intervals
class SrcEvent
SrcEvent(void)
Default SrcEvent constructor
SrcEvent(const std::string& name, const std::string& comment, const Time& t0, Interval before, Interval after, const ParamMap& map)
SrcEvent data constructor
const char* getComment(void) const
Get the comment field
const char* getInputs(void) const
Get the input data
const char* getName(void) const
Get the data source name
const Time& getGPSMax(void) const
Get the GPS time of the maximum value
Interval getTimeBefore(void) const
Get the duration of the generated waveform before the maximum time
Interval getTimeAfter(void) const
Get the duration of the generated waveform after the maximum time
double getAmplitude(void) const
Get the waveform amplitude
const ParamList& getParamList(void) const
Get a list of the generated parameters

Public Methods

static DataSource* parse(const std::string& desc)
virtual std::ostream& dump(std::ostream& out) const
bool isContinuous(void) const
void generate(const Time& t0, Interval dt)
int getDebug(void) const
virtual Interval getDuration(void) const
Time getLatest(void) const
const char* getName(void) const
virtual double getNumeric(const std::string& name) const
virtual const char* getParameter(const std::string& name) const
double getRate(void) const
Interval getSample(void) const
virtual Interval getStartOffset(void) const
Time getStartTime(void) const
Time getTrigTime(void) const
TSeries getTimeSeries(const Time& t0, Interval dT) const
const TSeries& getTimeSeries(void) const
virtual std::string getSourceName(void) const
virtual void randomize(void)
void release(const Time& t0)
void setDebug(int lvl)
void setName(const std::string& name)
void setSample(Interval dT)
void setTriggerRate(double rate)
void setTriggerTime(const Time& t0)
bool getWriteFlag(void) const
bool getSaveFlag(void) const
void setWriteFlag(bool yorn=true)
void setSaveFlag(bool yorn=true)
unsigned long getNEvent(void) const
const SrcEvent& refEvent(void) const
const SrcEvent& refEvent(unsigned long i) const
void eraseEvent(unsigned long N)

Documentation

FrameData allows the user to inject pre-recorded data into the generation streams.

<i>Usage note:</i> The data source sample rate must be set to the same rate as the sample rate defined in the frame data.

FrameData(void)
Frame data constructor

FrameData(const char* files, const char* channel)
Parameter constructor
Parameters:
files - A list of files to be searched for data.
channel - name of channel to be fetched.

~FrameData(void)
Pre-recorded data source destructor

FrameData* clone(void) const
Make an identical copy of a frame data source

const char* getDataType(void) const
Return the data source type

void setChannel(const std::string& name)
Specify the name of the channel to be read in

void setFileList(const std::string& name)
Specify the list of files to be searched for appropriate data

virtual void setParameter(const std::string& name, const std::string& val)
Specify the value of a parameter

input(const char* fl=0)
Construct a data input object and optionally set the file list parameter

~input(void)
Destroy the data input object

const char* getFileList(void) const
Get the File list specifier

void setFileList(const std::string& fList)
Set the file list

void getData(const char* ch, const Time& t0, Interval Dt, int N, float* data)
Get the specified data string

Dacc& refDacc(void)
Return a referece to the internal data accessor


This class has no child classes.
Author:
John Zweizig
Version:
1.1; last modified April 13, 2004

alphabetic index hierarchy of classes


generated by doc++