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

Public Member Functions

 NeighbouringPadHandler ()
 Constructor. The maps with information about neighbours are initialized here.
 
bool areNeighbouringPads (int moduleIndex, int padIndex1, int padIndex2) const
 The test function. It returns true, if.
 
int getSmallestNeighbouringPadIndex (int moduleIndex, int padIndex) const
 Returns the smallest pad index of all the neighbouring pads of the given one. More...
 
int getLargestNeighbouringPadIndex (int moduleIndex, int padIndex) const
 Returns the largest pad index of all the neighbouring pads of the given one. More...
 
std::vector< int > getPrecedingNeighbouringPads (int moduleIndex, int padIndex) const
 Returns a vector with all the neighbouring pads with a smaller pad index.
 
std::vector< int > getSucceedingNeighbouringPads (int moduleIndex, int padIndex) const
 Returns a vector with all the neighbouring pads with a larger pad index.
 
NeighbouringPadsObjectgetNeighbouringPadsObject (int moduleIndex, int padIndex)
 Returns a pointer to the NeighbouringPadsObject of the specified pad- and module index.
 

Protected Attributes

std::map< int, std::map< int,
NeighbouringPadsObject > > 
_endPlateMap
 Map of all pads of the GEAR geometry. First index is for modules, second for pads.
 

Member Function Documentation

int marlintpc::NeighbouringPadHandler::getLargestNeighbouringPadIndex ( int  moduleIndex,
int  padIndex 
) const

Returns the largest pad index of all the neighbouring pads of the given one.

This can be used to break the search early, if objects are sorted by pad index.

Referenced by marlintpc::ElectronCloudFinderProcessor::processEvent().

int marlintpc::NeighbouringPadHandler::getSmallestNeighbouringPadIndex ( int  moduleIndex,
int  padIndex 
) const

Returns the smallest pad index of all the neighbouring pads of the given one.

This can be used to break the search early, if objects are sorted by pad index.

Referenced by marlintpc::ElectronCloudFinderProcessor::processEvent().


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