CbmRoot
Loading...
Searching...
No Matches
cbm::algo::ca::SearchWindowMapContainer Class Reference

A container for search window maps. More...

#include <CaSearchWindowMapContainer.h>

Public Types

using DoubletSwContainer_t = std::array<DoubletSearchWindowMap, kNofDoubletSw>
 Container of doublet SWs.
 
using TripletSwContainer_t = std::array<TripletSearchWindowMap, kNofTripletSw>
 Container of triplet SWs.
 

Public Member Functions

DoubletSearchWindowMapDoubletSw (int iIter, int iSta, int iGap)
 Mutable accessor to doublet search window map.
 
const DoubletSearchWindowMapDoubletSw (int iIter, int iSta, int iGap) const
 Constant accessor to doublet search window map.
 
TripletSearchWindowMapTripletSw (int iIter, int iSta, int iGapL, int iGapM)
 Mutual accessor to triplet search window map.
 
const TripletSearchWindowMapTripletSw (int iIter, int iSta, int iGapL, int iGapM) const
 Constant accessor to triplet search window map.
 

Static Public Attributes

static constexpr int kMaxNofIterations = constants::size::MaxNiterations
 Max number of iterations.
 
static constexpr int kMaxNofStations = constants::size::MaxNstations
 Max number of stations.
 
static constexpr int kMaxNofTripletGaps = constants::size::MaxTripletGap + 1
 Max number of gaps in triplets.
 
static constexpr size_t kNofDoubletSw {kMaxNofIterations * kMaxNofStations * kMaxNofTripletGaps}
 
static constexpr size_t kNofTripletSw {kNofDoubletSw * kMaxNofTripletGaps}
 

Private Member Functions

template<class Archive>
void serialize (Archive &ar, const unsigned int)
 Serialization function.
 

Static Private Member Functions

static size_t DoubletSwIndex (int iIter, int iSta, int iGap)
 Maps iteration, station and gap indices to a global doublet SW index.
 
static size_t TripletSwIndex (int iIter, int iSta, int iGapL, int iGapM)
 Maps iteration, station and gap indices to a global triplet SW index.
 

Private Attributes

DoubletSwContainer_t fDoubletSwMaps = {}
 Doublet search windows.
 
TripletSwContainer_t fTripletSwMaps = {}
 Triplet search windows.
 

Friends

class boost::serialization::access
 

Detailed Description

A container for search window maps.

Definition at line 24 of file CaSearchWindowMapContainer.h.

Member Typedef Documentation

◆ DoubletSwContainer_t

◆ TripletSwContainer_t

Member Function Documentation

◆ DoubletSw() [1/2]

DoubletSearchWindowMap & cbm::algo::ca::SearchWindowMapContainer::DoubletSw ( int iIter,
int iSta,
int iGap )
inline

Mutable accessor to doublet search window map.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapIndex of gap

Definition at line 42 of file CaSearchWindowMapContainer.h.

References DoubletSwIndex(), and fDoubletSwMaps.

Referenced by cbm::algo::ca::SearchWindowMapContainerFactory::Create().

◆ DoubletSw() [2/2]

const DoubletSearchWindowMap & cbm::algo::ca::SearchWindowMapContainer::DoubletSw ( int iIter,
int iSta,
int iGap ) const
inline

Constant accessor to doublet search window map.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapIndex of gap

Definition at line 51 of file CaSearchWindowMapContainer.h.

References DoubletSwIndex(), and fDoubletSwMaps.

◆ DoubletSwIndex()

static size_t cbm::algo::ca::SearchWindowMapContainer::DoubletSwIndex ( int iIter,
int iSta,
int iGap )
inlinestaticprivate

Maps iteration, station and gap indices to a global doublet SW index.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapIndex of gap

Definition at line 84 of file CaSearchWindowMapContainer.h.

References kMaxNofIterations, kMaxNofStations, and kMaxNofTripletGaps.

Referenced by DoubletSw(), and DoubletSw().

◆ serialize()

template<class Archive>
void cbm::algo::ca::SearchWindowMapContainer::serialize ( Archive & ar,
const unsigned int  )
inlineprivate

Serialization function.

Definition at line 108 of file CaSearchWindowMapContainer.h.

References fDoubletSwMaps, and fTripletSwMaps.

◆ TripletSw() [1/2]

TripletSearchWindowMap & cbm::algo::ca::SearchWindowMapContainer::TripletSw ( int iIter,
int iSta,
int iGapL,
int iGapM )
inline

Mutual accessor to triplet search window map.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapLIndex of left gap
iGapMIndex of middle gap

Definition at line 61 of file CaSearchWindowMapContainer.h.

References fTripletSwMaps, and TripletSwIndex().

Referenced by cbm::algo::ca::SearchWindowMapContainerFactory::Create().

◆ TripletSw() [2/2]

const TripletSearchWindowMap & cbm::algo::ca::SearchWindowMapContainer::TripletSw ( int iIter,
int iSta,
int iGapL,
int iGapM ) const
inline

Constant accessor to triplet search window map.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapLIndex of left gap
iGapMIndex of middle gap

Definition at line 71 of file CaSearchWindowMapContainer.h.

References fTripletSwMaps, and TripletSwIndex().

◆ TripletSwIndex()

static size_t cbm::algo::ca::SearchWindowMapContainer::TripletSwIndex ( int iIter,
int iSta,
int iGapL,
int iGapM )
inlinestaticprivate

Maps iteration, station and gap indices to a global triplet SW index.

Parameters
iIterIndex of iteration
iStaIndex of active station
iGapLIndex of left gap
iGapMIndex of middle gap

Definition at line 97 of file CaSearchWindowMapContainer.h.

References kMaxNofIterations, kMaxNofStations, and kMaxNofTripletGaps.

Referenced by TripletSw(), and TripletSw().

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 25 of file CaSearchWindowMapContainer.h.

References boost::serialization::access.

Referenced by boost::serialization::access.

Member Data Documentation

◆ fDoubletSwMaps

DoubletSwContainer_t cbm::algo::ca::SearchWindowMapContainer::fDoubletSwMaps = {}
private

Doublet search windows.

Definition at line 77 of file CaSearchWindowMapContainer.h.

Referenced by DoubletSw(), DoubletSw(), and serialize().

◆ fTripletSwMaps

TripletSwContainer_t cbm::algo::ca::SearchWindowMapContainer::fTripletSwMaps = {}
private

Triplet search windows.

Definition at line 78 of file CaSearchWindowMapContainer.h.

Referenced by serialize(), TripletSw(), and TripletSw().

◆ kMaxNofIterations

int cbm::algo::ca::SearchWindowMapContainer::kMaxNofIterations = constants::size::MaxNiterations
staticconstexpr

Max number of iterations.

Definition at line 28 of file CaSearchWindowMapContainer.h.

Referenced by DoubletSwIndex(), and TripletSwIndex().

◆ kMaxNofStations

int cbm::algo::ca::SearchWindowMapContainer::kMaxNofStations = constants::size::MaxNstations
staticconstexpr

Max number of stations.

Definition at line 29 of file CaSearchWindowMapContainer.h.

Referenced by DoubletSwIndex(), and TripletSwIndex().

◆ kMaxNofTripletGaps

int cbm::algo::ca::SearchWindowMapContainer::kMaxNofTripletGaps = constants::size::MaxTripletGap + 1
staticconstexpr

Max number of gaps in triplets.

Definition at line 30 of file CaSearchWindowMapContainer.h.

Referenced by cbm::algo::ca::SearchWindowMapContainerFactory::Create(), DoubletSwIndex(), and TripletSwIndex().

◆ kNofDoubletSw

size_t cbm::algo::ca::SearchWindowMapContainer::kNofDoubletSw {kMaxNofIterations * kMaxNofStations * kMaxNofTripletGaps}
staticconstexpr

Definition at line 32 of file CaSearchWindowMapContainer.h.

◆ kNofTripletSw

size_t cbm::algo::ca::SearchWindowMapContainer::kNofTripletSw {kNofDoubletSw * kMaxNofTripletGaps}
staticconstexpr

Definition at line 33 of file CaSearchWindowMapContainer.h.


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