MyMarlinTPC  170316
Public Member Functions | Private Attributes | List of all members
marlintpc::rb_SegmentMatch Class Reference

Row based segment match. More...

#include <RowBasedPadPulseRoadSearchProcessor.h>

Public Member Functions

 rb_SegmentMatch (const rb_Segment *segment1, const rb_Segment *segment2)
 Construct row based segment match. More...
 
void print () const
 Print. More...
 
int getSegId1 () const
 Get ID of first segment. More...
 
int getSegId2 () const
 Get ID of second segment. More...
 
int getFirstRow1 () const
 Get first row of first segment. More...
 
int getFirstRow2 () const
 Get first row of second segment. More...
 
int getLastRow1 () const
 Get last row of first segment. More...
 
int getLastRow2 () const
 Get last row of second segment. More...
 
bool getValid () const
 Get validity flag. More...
 
bool overlap (rb_SegmentMatch *) const
 Check for (row) overlap. More...
 
void setInvalid ()
 Set invalid. More...
 

Private Attributes

const int _segId1
 first segment ID More...
 
const int _segId2
 second segment ID More...
 
const int _firstRow1
 first row of first segment More...
 
const int _firstRow2
 first row of second segment More...
 
const int _lastRow1
 last row of first segment More...
 
const int _lastRow2
 last row of second segment More...
 
bool _valid
 validity flag More...
 

Detailed Description

Row based segment match.

Has segment ID pair and row ranges.

Definition at line 282 of file RowBasedPadPulseRoadSearchProcessor.h.

Constructor & Destructor Documentation

◆ rb_SegmentMatch()

marlintpc::rb_SegmentMatch::rb_SegmentMatch ( const rb_Segment segment1,
const rb_Segment segment2 
)

Construct row based segment match.

Parameters
[in]segment1first segment
[in]segment2second segment

Definition at line 1344 of file RowBasedPadPulseRoadSearchProcessor.cc.

Member Function Documentation

◆ getFirstRow1()

int marlintpc::rb_SegmentMatch::getFirstRow1 ( ) const

Get first row of first segment.

Definition at line 1366 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _firstRow1.

Referenced by overlap().

◆ getFirstRow2()

int marlintpc::rb_SegmentMatch::getFirstRow2 ( ) const

Get first row of second segment.

Definition at line 1371 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _firstRow2.

Referenced by overlap().

◆ getLastRow1()

int marlintpc::rb_SegmentMatch::getLastRow1 ( ) const

Get last row of first segment.

Definition at line 1376 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _lastRow1.

Referenced by overlap().

◆ getLastRow2()

int marlintpc::rb_SegmentMatch::getLastRow2 ( ) const

Get last row of second segment.

Definition at line 1381 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _lastRow2.

Referenced by overlap().

◆ getSegId1()

int marlintpc::rb_SegmentMatch::getSegId1 ( ) const

Get ID of first segment.

Definition at line 1356 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _segId1.

◆ getSegId2()

int marlintpc::rb_SegmentMatch::getSegId2 ( ) const

Get ID of second segment.

Definition at line 1361 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _segId2.

◆ getValid()

bool marlintpc::rb_SegmentMatch::getValid ( ) const

Get validity flag.

Definition at line 1386 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _valid.

◆ overlap()

bool marlintpc::rb_SegmentMatch::overlap ( rb_SegmentMatch aMatch) const

◆ print()

void marlintpc::rb_SegmentMatch::print ( ) const

Print.

Definition at line 1350 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _firstRow1, _firstRow2, _lastRow1, _lastRow2, _segId1, _segId2, and _valid.

◆ setInvalid()

void marlintpc::rb_SegmentMatch::setInvalid ( )

Set invalid.

Definition at line 1400 of file RowBasedPadPulseRoadSearchProcessor.cc.

References _valid.

Member Data Documentation

◆ _firstRow1

const int marlintpc::rb_SegmentMatch::_firstRow1
private

first row of first segment

Definition at line 299 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getFirstRow1(), overlap(), and print().

◆ _firstRow2

const int marlintpc::rb_SegmentMatch::_firstRow2
private

first row of second segment

Definition at line 300 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getFirstRow2(), overlap(), and print().

◆ _lastRow1

const int marlintpc::rb_SegmentMatch::_lastRow1
private

last row of first segment

Definition at line 301 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getLastRow1(), overlap(), and print().

◆ _lastRow2

const int marlintpc::rb_SegmentMatch::_lastRow2
private

last row of second segment

Definition at line 302 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getLastRow2(), overlap(), and print().

◆ _segId1

const int marlintpc::rb_SegmentMatch::_segId1
private

first segment ID

Definition at line 297 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getSegId1(), and print().

◆ _segId2

const int marlintpc::rb_SegmentMatch::_segId2
private

second segment ID

Definition at line 298 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getSegId2(), and print().

◆ _valid

bool marlintpc::rb_SegmentMatch::_valid
private

validity flag

Definition at line 303 of file RowBasedPadPulseRoadSearchProcessor.h.

Referenced by getValid(), print(), and setInvalid().


The documentation for this class was generated from the following files: