In file trig/SegList.hh:

class TrigBase

Trigger result base class.

Inheritance:


Public Methods

[more] TrigBase (void)
Default constructor.
[more] TrigBase (const TrigBase& trig)
Copy constructor.
[more] TrigBase (const char* ID, const char* SubID=0, const Time& When=Time(0), const Interval& dTime=0.0, double Size=1.0, double Signif=1.0, double Frequency=0.0, const char* ifo=0)
Create a trigger object.
[more]virtual ~TrigBase (void)
Destroy a TrigBase object.
[more]double getBandwidth (void) const
Trigger frequency.
[more]index_type getData (index_type inx, index_type len, char* data) const
Get a substring of the result data.
[more]int getDisposition (void) const
Get the trigger disposition mask.
[more]Interval getDt (void) const
Get trigger duration.
[more]double getFrequency (void) const
Trigger middle frequency.
[more]const char* getID (void) const
Get the trigger ID.
[more]const char* getIFOs (void) const
Get the trigger ID.
[more]double getLowF (void) const
Low trigger frequency.
[more]double getIntensity (void) const
Trigger Intensity.
[more]double getHighF (void) const
High trigger frequency.
[more]TrigPrio getPriority (void) const
Get trigger priority.
[more]const char* getProcess (void) const
Trigger process ID.
[more]const char* getResult (void) const
Get the trigger Result data.
[more]index_type getResultLength (void) const
Get the trigger result data length.
[more]double getSignificance (void) const
Trigger Significance.
[more]const char* getSubID (void) const
Get the trigger sub-ID.
[more]Time getTime (void) const
Get trigger time.
[more]Interval getPeakOffset (void) const
Get the time offset from the start time to the time of the peak sample in the trigger
[more]Interval getAvgOffset (void) const
Get the time offset from the start time to the time of the peak sample in the trigger
[more]Time getPeakTime (void) const
Get the time of the peak sample in the trigger
[more]Time getAvgTime (void) const
Get the time offset from the start time to the time of the peak sample in the trigger
[more]Interval getTimeSigma (void) const
Get the width of the power distribution in time.
[more]double getFreqPeak (void) const
Get the peak frequency of the trigger
[more]double getFreqAvg (void) const
Get the time power weighted average frequency
[more]double getFreqSigma (void) const
Get the sigma of the power distribution in frequency
[more]double getNoisePower (void) const
Get the noise power in the trigger time-frequency interval
[more]double getSignalPower (void) const
Get the signal power in the trigger time-frequency interval
[more]int getPixelCount (void) const
Get the number of time frequency pixels needed to span the trigger
[more]double getConfidence (void) const
Get the confidence limit for the trigger
[more]TrigBase& operator= (const TrigBase& trigger)
Assignment operator.
[more]bool operator== (const TrigBase& trigger) const
Compare operator.
[more]void appData (const char* data, index_type len)
Append data to result data text.
[more]void modData (const char* data, index_type inx, index_type len)
Replace a substring of the result data.
[more]void setBandwidth (double bw)
Set the bandwidth.
[more]void setData (const char* data, index_type len)
Append data to result data text.
[more]void setDisposition (int disp)
Set the trigger disposition.
[more]void setDuration (Interval dT)
Set the trigger duration.
[more]void setFrequency (double F0)
Set the frequency.
[more]void setIfos (const char* IFO)
Set the interferometer ID.
[more]void setIntensity (double Mag)
Set the intensit.
[more]void setSignificance (double sigma)
Set the significance.
[more]void setTime (const Time& T0)
Set the trigger time.
[more]void setPriority (TrigPrio prio)
Set the trigger priority level.
[more]void setProcess (const char* Process)
Set the trigger process ID.
[more]void setPeakOffset (Interval dT)
Set the peak time sample for the trigger
[more]void setAvgOffset (Interval dT)
Set the power weighted time average
[more]void setPeakTime (const Time& t)
Set the peak time sample for the trigger
[more]void setAvgTime (const Time& t)
Set the power weighted time average
[more]void setTimeSigma (Interval s)
Set the sigms of the power distribution in time
[more]void setFreqPeak (double f)
Set the frequency of the peak in the power distribution in frequency
[more]void setFreqAvg (double f)
Set the power weightd average frequency
[more]void setFreqSigma (double s)
Set the sigma of the power distribution in frequency
[more]void setNoisePower (double np)
Set the total noise power in the time-frequency region containing the trigger effect
[more]void setSignalPower (double sp)
Set the total signal power in the tim-frequency region containing the trigger effect
[more]void setPixelCount (int N)
Set the number of time-frequency pixels covering the trigger
[more]void setConfidence (double cl)
Set log of the confidence of the trigger effect
[more]void zeroResult (index_type inx, index_type len)
Zero a substring of the result data.

Protected Methods

[more]char* getResult (void)
Get the trigger Result data.


Documentation

The trigger base class contains the information needed from all triggers. It may be used as a base for a specific trigger object. Data contained in the trigger base provide all the information needed to select triggers for cross correlation studies, etc. A 1kB space is allocated for additional, trigger specific (result) data to be provided by the concrete trigger method.
o TrigBase(void)
Construct an empty trigger object.

o TrigBase(const TrigBase& trig)
Copy a trigger.

o TrigBase(const char* ID, const char* SubID=0, const Time& When=Time(0), const Interval& dTime=0.0, double Size=1.0, double Signif=1.0, double Frequency=0.0, const char* ifo=0)
A trigger object is created and initialized as specified by the constructor arguments.
Parameters:
ID - Primary trigger identifier
SubID - Secondary trigger i dentifier.
When - Trigger time
dTime - Trigger duration
- Size Trigger Peak amplitude
Signif - Trigger significance (S/N)
Frequency - Trigger center frequency.
ifo - Trigger ifo name.

ovirtual ~TrigBase(void)
Release the data after recording the trigger.

odouble getBandwidth(void) const
Get the triggered frequency bandwidth.
Returns:
Trigger effect low fequency.

oindex_type getData(index_type inx, index_type len, char* data) const
Copy the specified substring of the trigger result data. Only data in the interval (0, mLength) will be copied.
Parameters:
inx - Offset into the result data of text to be replaced.
len - Length of result data increment in bytes.
data - Pointer to result data increment.
Returns:
Number of bytes actually copied.

oint getDisposition(void) const
Get the trigger disposition mask.
Returns:
Trigger disposition mask.

oInterval getDt(void) const
The trigger time offset from the start of the data epoch is returned.
Returns:
The interval corresponding to the duration of the effect being trigger on.

odouble getFrequency(void) const
Get the midpoint of triggered frequency band.
Returns:
Trigger effect middle fequency.

oconst char* getID(void) const
Get the trigger ID.
Returns:
Trigger ID.

oconst char* getIFOs(void) const
Get the trigger ID.
Returns:
Trigger ID.

odouble getLowF(void) const
Get the lower edge of the triggered frequency band.
Returns:
Trigger effect low fequency.

odouble getIntensity(void) const
Get the trigger effect intensity in units of the trigger threshold.
Returns:
Trigger effect intensity.

odouble getHighF(void) const
Get the upper edge of the triggered frequency band.
Returns:
Trigger effect high fequency.

oTrigPrio getPriority(void) const
Get the priority level for this trigger.
Returns:
Trigger priority level.

oconst char* getProcess(void) const
Get the process ID for this trigger.
Returns:
Unique process ID.

oconst char* getResult(void) const
Get a pointer to the trigger result data. The result data are in general binary numbers and are specific to the trigger type.
Returns:
Pointer to the trigger result data.

oindex_type getResultLength(void) const
The trigger result data length is returned.
Returns:
Length of trigger result data in bytes.

odouble getSignificance(void) const
Get the trigger effect significance in units of the error on the trigger amplitude.
Returns:
Trigger effect significance.

oconst char* getSubID(void) const
The trigger sub-ID is returned. The sub-ID is defined by the trigger program to indicate more prcisely the reason for the trigger.
Returns:
trigger sub-ID.

oTime getTime(void) const
Get the time at which the effect being triggered on starts.
Returns:
GPS start time of effect.

oInterval getPeakOffset(void) const
Get the time offset from the start time to the time of the peak sample in the trigger
Returns:
Peak time offset.

oInterval getAvgOffset(void) const
Get the time offset from the start time to the time of the peak sample in the trigger
Returns:
Average time offset.

oTime getPeakTime(void) const
Get the time of the peak sample in the trigger
Returns:
Trigger peak time.

oTime getAvgTime(void) const
Get the time offset from the start time to the time of the peak sample in the trigger
Returns:
Trigger average time.

oInterval getTimeSigma(void) const
Get the width of the power distribution in time.
Returns:
Width of the time distribution.

odouble getFreqPeak(void) const
Get the peak frequency of the trigger

odouble getFreqAvg(void) const
Get the time power weighted average frequency

odouble getFreqSigma(void) const
Get the sigma of the power distribution in frequency

odouble getNoisePower(void) const
Get the noise power in the trigger time-frequency interval

odouble getSignalPower(void) const
Get the signal power in the trigger time-frequency interval

oint getPixelCount(void) const
Get the number of time frequency pixels needed to span the trigger

odouble getConfidence(void) const
Get the confidence limit for the trigger

oTrigBase& operator=(const TrigBase& trigger)
Copy a trigger.

obool operator==(const TrigBase& trigger) const
Compare two triggers.

ovoid appData(const char* data, index_type len)
The specified data are appended to the trigger result data. The result data are assumed to be binary numbers, meaning that no content checking is performed and any number of embedded null characters are allowed. The total result data length must not exceed maxDataLength bytes.
Parameters:
data - Pointer to result data increment.
len - Length of result data increment in bytes.

ovoid modData(const char* data, index_type inx, index_type len)
The specified data replace a substring of the trigger result data. The result data are treated as a binary string in that no content checking is performed and any number of embedded null characters are allowed. The result data length must not exceed 1024 bytes.
Parameters:
data - Pointer to result data increment.
len - Length of result data increment in bytes.
inx - Offset into the result data of text to be replaced.

ovoid setBandwidth(double bw)
The bandwidth field of the trigger is replaced with the argument value.
Parameters:
bw - Bandwidth in Hz.

ovoid setData(const char* data, index_type len)
The specified data replace the trigger result data. The result data are assumed to be binary numbers, meaning that no content checking is performed and any number of embedded null characters are allowed. The result data length must not exceed 1024 bytes.
Parameters:
data - Pointer to replacement data.
len - Length of result data increment in bytes.

ovoid setDisposition(int disp)
Set the disposition for this trigger.
Parameters:
Trigger - disposition.

ovoid setDuration(Interval dT)
Set the duration for this trigger.
Parameters:
Trigger - duration.

ovoid setFrequency(double F0)
Set the typical frequency (ie. the midpoint of the frequency band) of the effect being triggered on.
Parameters:
F0 - Trigger effect frequency in Hz.

ovoid setIfos(const char* IFO)
Set the interferometer ID for this trigger.
Parameters:
IFO - interferometer ID.

ovoid setIntensity(double Mag)
Set the intensity for this trigger.
Parameters:
Mag - trigger intensity.

ovoid setSignificance(double sigma)
Set the significance for this trigger.
Parameters:
Trigger - significance.

ovoid setTime(const Time& T0)
Set the trigger time stamp. The time stamp can be any time that best defines the particular type of trigger, e.g. start time peak time, critical time, etc.
Parameters:
T0 - Time to be recorded in the trigger object.

ovoid setPriority(TrigPrio prio)
Set the priority level for this trigger.
Parameters:
prio - Trigger priority level.

ovoid setProcess(const char* Process)
Set the process ID for this trigger.
Parameters:
Process - Unique process ID.

ovoid setPeakOffset(Interval dT)
Set the peak time sample for the trigger

ovoid setAvgOffset(Interval dT)
Set the power weighted time average

ovoid setPeakTime(const Time& t)
Set the peak time sample for the trigger

ovoid setAvgTime(const Time& t)
Set the power weighted time average

ovoid setTimeSigma(Interval s)
Set the sigms of the power distribution in time

ovoid setFreqPeak(double f)
Set the frequency of the peak in the power distribution in frequency

ovoid setFreqAvg(double f)
Set the power weightd average frequency

ovoid setFreqSigma(double s)
Set the sigma of the power distribution in frequency

ovoid setNoisePower(double np)
Set the total noise power in the time-frequency region containing the trigger effect

ovoid setSignalPower(double sp)
Set the total signal power in the tim-frequency region containing the trigger effect

ovoid setPixelCount(int N)
Set the number of time-frequency pixels covering the trigger

ovoid setConfidence(double cl)
Set log of the confidence of the trigger effect

ovoid zeroResult(index_type inx, index_type len)
A substring of the trigger result data is zeroed.
Parameters:
len - Length of result data increment in bytes.
inx - Offset into the result data of text to be replaced.

ochar* getResult(void)
Get a pointer to the trigger result data. The result data are in general binary numbers and are specific to the trigger type.
Returns:
Pointer to the trigger result data.


Direct child classes:
TrigRslt
Author:
J. Zweizig
Version:
1.3; Modified July 14, 2004

Alphabetic index HTML hierarchy of classes or Java


Please send questions and comments to zweizig_j@ligo-wa.caltech.edu