PandaRoot
PndFtsTrackFinder::GeomUtil Namespace Reference

Functions

bool IsSkewedLayer (const uint8_t layerId)
 
bool IsOutermostLayer (const uint8_t layerId)
 
float GetSlope (const uint8_t layerId)
 
PndFtsStation GetStationFromLayer (const uint8_t layerId) noexcept
 
PndFtsStation GetStationFromStraw (const uint16_t strawId) noexcept
 

Function Documentation

◆ GetSlope()

float PndFtsTrackFinder::GeomUtil::GetSlope ( const uint8_t  layerId)

Auxiliary function to get a slope of the given layer in degrees. Possible slope values are: 0, 11.43 or -11.43 deg. Layers 3, 4, 11, 12, 19, 20, 27, 28, 35, 36, 43, 44 have negative slope. Other fSkewed layers have positive slope. Vertical layers have no slope.

Parameters
layerIdid (number) of the layer
Returns
slope of the straws in the given layer

◆ GetStationFromLayer()

PndFtsStation PndFtsTrackFinder::GeomUtil::GetStationFromLayer ( const uint8_t  layerId)
noexcept

Auxiliary function to get a station containing the given layer. Each FtsStation contains 16 layers.

Parameters
layerIdid (number) of the layer
Returns
FtsStation containing the given layer

◆ GetStationFromStraw()

PndFtsStation PndFtsTrackFinder::GeomUtil::GetStationFromStraw ( const uint16_t  strawId)
noexcept

Auxiliary function to get a station containing the given Straw.

Parameters
strawIdid (number) of the straw
Returns
FtsStation containing the given Straw

◆ IsOutermostLayer()

bool PndFtsTrackFinder::GeomUtil::IsOutermostLayer ( const uint8_t  layerId)

Auxiliary function to check whether the given layer is fOutermost layer. Outermost layers are: 1, 2, 3, 4, 13, 14, 15, 16, 17, 18, 19, 20, 29, 30, 31, 32, 33, 34, 35, 36, 45, 46, 47, 48.

Parameters
layerIdid (number) of the layer
Returns
true if the given layer is fOutermost, false otherwise

◆ IsSkewedLayer()

bool PndFtsTrackFinder::GeomUtil::IsSkewedLayer ( const uint8_t  layerId)

Auxiliary function to check whether the given layer contains fSkewed (layer is fSkewed) or vertical straws. Skewed layers are: 3, 4, 5, 6, 11, 12, 13, 14, 19, 20, 21, 22, 27, 28, 29, 30, 35, 36, 37, 38, 43, 44, 45, 46.

Parameters
layerIdid (number) of the layer
Returns
true if straws in the given layer are fSkewed, false if vertical