Project
Loading...
Searching...
No Matches
o2::trkft3::TopologyDictionary< DetID > Class Template Reference

#include <TopologyDictionary.h>

Public Types

using ClusterType = Cluster< DetID >
 

Public Member Functions

int getNumberOfLayers () const noexcept
 
const LayerDictionary & getLayer (int layer) const
 
const DictionaryEntry & getEntry (int layer, int id) const
 
int findID (int layer, const unsigned char *pattern) const
 The pattern's entry on the layer: its own if it is common, else its group's.
 
math_utils::Point3D< float > getFlatCoordinates (const ClusterType &cluster, const unsigned char *pattern, int id) const
 The position in the flat frame: the entry's centre of gravity, plus its offsets if applied, at the layer's depth.
 
math_utils::Point3D< float > getClusterCoordinates (const ClusterType &cluster, const unsigned char *pattern, int id) const
 The same in O2's local frame: curved on the VD.
 
math_utils::Point3D< float > getClusterCoordinates (const ClusterType &cluster, const unsigned char *pattern) const
 
bool getApplyOffsets () const noexcept
 
void setApplyOffsets (bool apply) noexcept
 
void print () const
 

Static Public Member Functions

static constexpr int spanClass (int span) noexcept
 
static constexpr int groupOf (int rowSpan, int colSpan) noexcept
 
static int layerOf (const ClusterType &cluster) noexcept
 A cluster's layer: TRK's VD layers, then ML/OT (GeometryTGeo::getLayerTRK); FT3's discs. -1 for none (a VD disc).
 
static math_utils::Point3D< float > localToFlat (const ClusterType &cluster, const math_utils::Point3D< float > &local) noexcept
 A point from O2's local frame to the layer's flat frame (the VD's unrolled; elsewhere the same).
 
static math_utils::Point3D< float > centreOfGravity (const ClusterType &cluster, const unsigned char *pattern) noexcept
 The cluster's centre of gravity in the flat frame at y = 0. pattern: row span, column span, pixel bits.
 
static TopologyDictionary * loadFrom (const std::string &fileName, const std::string &objName="ccdb_object")
 

Static Public Attributes

static constexpr int NSpanClasses = 6
 spans 1 to 5, 6 or more
 
static constexpr int NGroups = NSpanClasses * NSpanClasses
 one group per pair of span classes, row class major
 

Friends

class BuildTopologyDictionary< DetID >
 

Detailed Description

template<int DetID>
class o2::trkft3::TopologyDictionary< DetID >

Definition at line 66 of file TopologyDictionary.h.

Member Typedef Documentation

◆ ClusterType

template<int DetID>
using o2::trkft3::TopologyDictionary< DetID >::ClusterType = Cluster<DetID>

Definition at line 71 of file TopologyDictionary.h.

Member Function Documentation

◆ centreOfGravity()

template<int DetID>
math_utils::Point3D< float > o2::trkft3::TopologyDictionary< DetID >::centreOfGravity ( const ClusterType &  cluster,
const unsigned char *  pattern 
)
staticnoexcept

The cluster's centre of gravity in the flat frame at y = 0. pattern: row span, column span, pixel bits.

Definition at line 60 of file TopologyDictionary.cxx.

◆ findID()

template<int DetID>
int o2::trkft3::TopologyDictionary< DetID >::findID ( int  layer,
const unsigned char *  pattern 
) const

The pattern's entry on the layer: its own if it is common, else its group's.

Definition at line 73 of file TopologyDictionary.cxx.

◆ getApplyOffsets()

template<int DetID>
bool o2::trkft3::TopologyDictionary< DetID >::getApplyOffsets ( ) const
inlinenoexcept

Definition at line 102 of file TopologyDictionary.h.

◆ getClusterCoordinates() [1/2]

template<int DetID>
math_utils::Point3D< float > o2::trkft3::TopologyDictionary< DetID >::getClusterCoordinates ( const ClusterType &  cluster,
const unsigned char *  pattern 
) const
inline

Definition at line 97 of file TopologyDictionary.h.

◆ getClusterCoordinates() [2/2]

template<int DetID>
math_utils::Point3D< float > o2::trkft3::TopologyDictionary< DetID >::getClusterCoordinates ( const ClusterType &  cluster,
const unsigned char *  pattern,
int  id 
) const

The same in O2's local frame: curved on the VD.

Definition at line 114 of file TopologyDictionary.cxx.

◆ getEntry()

template<int DetID>
const DictionaryEntry & o2::trkft3::TopologyDictionary< DetID >::getEntry ( int  layer,
int  id 
) const
inline

Definition at line 88 of file TopologyDictionary.h.

◆ getFlatCoordinates()

template<int DetID>
math_utils::Point3D< float > o2::trkft3::TopologyDictionary< DetID >::getFlatCoordinates ( const ClusterType &  cluster,
const unsigned char *  pattern,
int  id 
) const

The position in the flat frame: the entry's centre of gravity, plus its offsets if applied, at the layer's depth.

Definition at line 90 of file TopologyDictionary.cxx.

◆ getLayer()

template<int DetID>
const LayerDictionary & o2::trkft3::TopologyDictionary< DetID >::getLayer ( int  layer) const
inline

Definition at line 87 of file TopologyDictionary.h.

◆ getNumberOfLayers()

template<int DetID>
int o2::trkft3::TopologyDictionary< DetID >::getNumberOfLayers ( ) const
inlinenoexcept

Definition at line 86 of file TopologyDictionary.h.

◆ groupOf()

template<int DetID>
static constexpr int o2::trkft3::TopologyDictionary< DetID >::groupOf ( int  rowSpan,
int  colSpan 
)
inlinestaticconstexprnoexcept

Definition at line 77 of file TopologyDictionary.h.

◆ layerOf()

template<int DetID>
int o2::trkft3::TopologyDictionary< DetID >::layerOf ( const ClusterType &  cluster)
staticnoexcept

A cluster's layer: TRK's VD layers, then ML/OT (GeometryTGeo::getLayerTRK); FT3's discs. -1 for none (a VD disc).

Definition at line 31 of file TopologyDictionary.cxx.

◆ loadFrom()

template<int DetID>
TopologyDictionary< DetID > * o2::trkft3::TopologyDictionary< DetID >::loadFrom ( const std::string &  fileName,
const std::string &  objName = "ccdb_object" 
)
static

Definition at line 135 of file TopologyDictionary.cxx.

◆ localToFlat()

template<int DetID>
math_utils::Point3D< float > o2::trkft3::TopologyDictionary< DetID >::localToFlat ( const ClusterType &  cluster,
const math_utils::Point3D< float > &  local 
)
staticnoexcept

A point from O2's local frame to the layer's flat frame (the VD's unrolled; elsewhere the same).

Definition at line 50 of file TopologyDictionary.cxx.

◆ print()

template<int DetID>
void o2::trkft3::TopologyDictionary< DetID >::print ( ) const

Definition at line 126 of file TopologyDictionary.cxx.

◆ setApplyOffsets()

template<int DetID>
void o2::trkft3::TopologyDictionary< DetID >::setApplyOffsets ( bool  apply)
inlinenoexcept

Definition at line 103 of file TopologyDictionary.h.

◆ spanClass()

template<int DetID>
static constexpr int o2::trkft3::TopologyDictionary< DetID >::spanClass ( int  span)
inlinestaticconstexprnoexcept

Definition at line 76 of file TopologyDictionary.h.

Friends And Related Symbol Documentation

◆ BuildTopologyDictionary< DetID >

template<int DetID>
friend class BuildTopologyDictionary< DetID >
friend

Definition at line 107 of file TopologyDictionary.h.

Member Data Documentation

◆ NGroups

template<int DetID>
constexpr int o2::trkft3::TopologyDictionary< DetID >::NGroups = NSpanClasses * NSpanClasses
staticconstexpr

one group per pair of span classes, row class major

Definition at line 74 of file TopologyDictionary.h.

◆ NSpanClasses

template<int DetID>
constexpr int o2::trkft3::TopologyDictionary< DetID >::NSpanClasses = 6
staticconstexpr

spans 1 to 5, 6 or more

Definition at line 73 of file TopologyDictionary.h.


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