LALInference  4.1.6.1-89842e6
lalinference.tiger.make_injtimes.segmentData Class Reference

Detailed Description

Data that holds segments for one or more IFOs.

Definition at line 244 of file make_injtimes.py.

Public Member Functions

def __init__ (self, seglist, gpsstart=None, gpsend=None)
 
def length (self)
 
def fits (self, minlen)
 Returns the list of segments that fit a minimum required length. More...
 
def intersectSegments (self, other)
 Returns the intersection with another list of segments. More...
 
def notSegments (self, start, end)
 Get the complement of the (non-overlapping) segments in this data. More...
 
def getUnvetoed (self, vetodata)
 Returns a segmentData object with unvetoed segments. More...
 
def unionSegments (self, other)
 Take the union of segment lists. More...
 
def hasTime (self, time)
 Checks whether time is in the segments. More...
 
def timeIn (self, time)
 If t is in a segment returns the distance to the edges, otherwise returns False. More...
 
def printToFile (self, outfile)
 
def plotSegments (self, outfile=None, lenperline=200000, segcolor='b', title=None)
 Plot segments in rows of lenperline seconds. More...
 
def plotCumulativeDurations (self, outfile, maxdur=None)
 

Constructor & Destructor Documentation

◆ __init__()

def lalinference.tiger.make_injtimes.segmentData.__init__ (   self,
  seglist,
  gpsstart = None,
  gpsend = None 
)

Definition at line 246 of file make_injtimes.py.

Member Function Documentation

◆ length()

def lalinference.tiger.make_injtimes.segmentData.length (   self)

Definition at line 256 of file make_injtimes.py.

◆ fits()

def lalinference.tiger.make_injtimes.segmentData.fits (   self,
  minlen 
)

Returns the list of segments that fit a minimum required length.

Definition at line 260 of file make_injtimes.py.

◆ intersectSegments()

def lalinference.tiger.make_injtimes.segmentData.intersectSegments (   self,
  other 
)

Returns the intersection with another list of segments.

Definition at line 267 of file make_injtimes.py.

◆ notSegments()

def lalinference.tiger.make_injtimes.segmentData.notSegments (   self,
  start,
  end 
)

Get the complement of the (non-overlapping) segments in this data.

Definition at line 285 of file make_injtimes.py.

◆ getUnvetoed()

def lalinference.tiger.make_injtimes.segmentData.getUnvetoed (   self,
  vetodata 
)

Returns a segmentData object with unvetoed segments.

Definition at line 305 of file make_injtimes.py.

◆ unionSegments()

def lalinference.tiger.make_injtimes.segmentData.unionSegments (   self,
  other 
)

Take the union of segment lists.

This is used for combining veto segments of different detectors.

Here I use AUB = not(notA^notB)

Definition at line 311 of file make_injtimes.py.

◆ hasTime()

def lalinference.tiger.make_injtimes.segmentData.hasTime (   self,
  time 
)

Checks whether time is in the segments.

Gives 0 if true and the distance of time to the segment list otherwise.

Definition at line 319 of file make_injtimes.py.

◆ timeIn()

def lalinference.tiger.make_injtimes.segmentData.timeIn (   self,
  time 
)

If t is in a segment returns the distance to the edges, otherwise returns False.

Definition at line 326 of file make_injtimes.py.

◆ printToFile()

def lalinference.tiger.make_injtimes.segmentData.printToFile (   self,
  outfile 
)

Definition at line 340 of file make_injtimes.py.

◆ plotSegments()

def lalinference.tiger.make_injtimes.segmentData.plotSegments (   self,
  outfile = None,
  lenperline = 200000,
  segcolor = 'b',
  title = None 
)

Plot segments in rows of lenperline seconds.

Definition at line 345 of file make_injtimes.py.

◆ plotCumulativeDurations()

def lalinference.tiger.make_injtimes.segmentData.plotCumulativeDurations (   self,
  outfile,
  maxdur = None 
)

Definition at line 371 of file make_injtimes.py.