In file trig/TrigRslt.hh:

class Segment

Trigger result base class.

Inheritance:


Public Methods

[more] Segment (void)
Default constructor.
[more] Segment (const std::string& group, int version=1, const Time& start=Time(0), const Time& end=Time(0))
Create a trigger object.
[more]virtual ~Segment (void)
Result destructor.
[more]int getActivity (void) const
Get the segment activity code.
[more]const char* getComment (void) const
Get the comment.
[more]Time getEndTime (void) const
Get end time.
[more]const char* getGroup (void) const
Get the segment name.
[more]const char* getIfos (void) const
Get the trigger ID.
[more]int getMinor (void) const
Get the mnor version number.
[more]int getPlusMinus (void) const
Get the segment plus/minus code.
[more]const char* getProcess (void) const
Process ID.
[more]const char* getSegID (void) const
Segment ID.
[more]Time getStartTime (void) const
Get start time.
[more]int getVersion (void) const
Segment version number.
[more]bool operator== (const Segment& trigger) const
Compare operator.
[more]void setActivity (int act)
Set the activity flag, on=1, off=0, remove=-1.
[more]void setComment (const std::string& com)
Set the segment end time.
[more]void setEndTime (const Time& t0)
Set the segment end time.
[more]void setGroup (const char* group)
Set the segment group ID.
[more]void setIfos (const char* ifos)
Set the segment IFO list.
[more]void setProcess (const char* Process)
Set the trigger process ID.
[more]void setSegID (const std::string& SegID)
Set the segment ID.
[more]void setStartTime (const Time& t0)
Set the segment start time.
[more]void setVersion (int version)
Set the version.


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 Segment(void)
Constructor an empty trigger object.

o Segment(const std::string& group, int version=1, const Time& start=Time(0), const Time& end=Time(0))
A trigger object is created.
Parameters:
ID - Primary trigger identifier
SubID - Secondary trigger i dentifier.

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

oint getActivity(void) const
Get the segment activity code. On=1, Off=0.
Returns:
Activity code.

oconst char* getComment(void) const
Get the segment comment.
Returns:
segment name string.

oTime getEndTime(void) const
Get the segment end time.
Returns:
GPS segment end time.

oconst char* getGroup(void) const
Get the segment name.
Returns:
segment name.

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

oint getMinor(void) const
Get the minor version number.
Returns:
Minor version ID.

oint getPlusMinus(void) const
Get the segment plus/minus code. Add=1, Remove=0.
Returns:
Plus/Minus code.

oconst char* getProcess(void) const
Get process table key for the generating process.
Returns:
Process table key.

oconst char* getSegID(void) const
Get the internal segment id.
Returns:
Segment table key.

oTime getStartTime(void) const
Get the segment start time.
Returns:
GPS segment start time.

oint getVersion(void) const
Get the segment version number.
Returns:
Segment version number.

obool operator==(const Segment& trigger) const
Compare two segments.

ovoid setActivity(int act)
Set the activity flag.
Parameters:
act - Activity value.

ovoid setComment(const std::string& com)
Set the ending time of this segment.
Parameters:
- Segment end Time.

ovoid setEndTime(const Time& t0)
Set the ending time of this segment.
Parameters:
- Segment end Time.

ovoid setGroup(const char* group)
Set the group ID for this segment.
Parameters:
- Segment group ID.

ovoid setIfos(const char* ifos)
Set the interferometer ID(s) for this segment.
Parameters:
ifos - Segment IFO list.

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

ovoid setSegID(const std::string& SegID)
Set the segment ID.
Parameters:
Process - Unique segment ID.

ovoid setStartTime(const Time& t0)
Set the start time of this segment.
Parameters:
- Segment start Time.

ovoid setVersion(int version)
Set the version for this segment.
Parameters:
version - Segment version number.


This class has no child classes.
Author:
J. Zweizig
Version:
1.2; Modified December 29, 1999

Alphabetic index HTML hierarchy of classes or Java


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