MarlinTPC  1.2.0
Public Member Functions | Protected Attributes | List of all members
marlintpc::NeighbouringPadsObject Class Reference

A helper class which stores information about the neighbouring pads of a specific pad. More...

#include <NeighbouringPadHandler.h>

Public Member Functions

 NeighbouringPadsObject ()
 Default Constructor, needed for pointers.
 
 NeighbouringPadsObject (const NeighbouringPadsObject &originalObject)
 Copy Constructor, needed for copy of vectors? Maybe not. More...
 
 NeighbouringPadsObject (const int padIndex)
 Constructor. The maps with information about neighbours are initialized here.
 
std::vector< int > getPrecedingPads () const
 Returns a vector with all the neighbouring pads with a smaller pad index.
 
std::vector< int > getSucceedingPads () const
 Returns a vector with all the neighbouring pads with a larger pad index.
 
void addNeighbouringPad (const int padIndex)
 Adds a Pad Index to either the vector of preceding or successing pads.
 
void setPadSideRowCoordinates (double cLeft, double cRight)
 Set the x- or phi-coordinates of the corners of the pad.
 
double getLeftSide () const
 Returns the x- or phi-coordinate of the left side of the pad.
 
double getRightSide () const
 Returns the x- or phi-coordinate of the right side of the pad.
 
int getPadIndex () const
 Returns the pad index of the pad.
 

Protected Attributes

int _thisPadsPadIndex
 
double _leftRowCoordinate
 x or phi-coordinate of the left corner of the pad
 
double _rightRowCoordinate
 x or phi-coordinate of the right corner of the pad
 
std::vector< int > _precedingPads
 
std::vector< int > _succeedingPads
 

Detailed Description

A helper class which stores information about the neighbouring pads of a specific pad.

It allows to obtain the preceding and successing pad indices separately which adjoin the given pad.

Author
Oliver Sch&aumlfer

Constructor & Destructor Documentation

marlintpc::NeighbouringPadsObject::NeighbouringPadsObject ( const NeighbouringPadsObject originalObject)

Copy Constructor, needed for copy of vectors? Maybe not.

< x or phi-coordinate of the left corner of the pad

< x or phi-coordinate of the right corner of the pad

References getLeftSide(), getPadIndex(), getPrecedingPads(), getRightSide(), and getSucceedingPads().


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