Project
Loading...
Searching...
No Matches
o2::mch::mapping::impl4::CathodeSegmentation Class Reference

#include <CathodeSegmentationImpl4.h>

Public Types

using Point = boost::geometry::model::point< double, 2, boost::geometry::cs::cartesian >
 
using Box = boost::geometry::model::box< Point >
 
using Value = std::pair< Box, unsigned >
 

Public Member Functions

 CathodeSegmentation (int segType, bool isBendingPlane, std::vector< PadGroup > padGroups, std::vector< PadGroupType > padGroupTypes, std::vector< std::pair< float, float > > padSizes)
 
std::vector< intgetCatPadIndices (int dualSampaId) const
 Return the list of catPadIndices for the pads of the given dual sampa.
 
std::vector< intgetCatPadIndices (double xmin, double ymin, double xmax, double ymax) const
 
std::vector< intgetNeighbouringCatPadIndices (int catPadIndex) const
 
std::set< intdualSampaIds () const
 
int findPadByPosition (double x, double y) const
 
int findPadByFEE (int dualSampaId, int dualSampaChannel) const
 
bool hasPadByPosition (double x, double y) const
 
bool hasPadByFEE (int dualSampaId, int dualSampaChannel) const
 
double padPositionX (int catPadIndex) const
 
double padPositionY (int catPadIndex) const
 
double padSizeX (int catPadIndex) const
 
double padSizeY (int catPadIndex) const
 
int padDualSampaId (int catPadIndex) const
 
int padDualSampaChannel (int catPadIndex) const
 
bool isValid (int catPadIndex) const
 

Static Public Attributes

static constexpr int InvalidCatPadIndex {-1}
 

Friends

std::ostream & operator<< (std::ostream &os, const CathodeSegmentation &seg)
 

Detailed Description

Definition at line 35 of file CathodeSegmentationImpl4.h.

Member Typedef Documentation

◆ Box

using o2::mch::mapping::impl4::CathodeSegmentation::Box = boost::geometry::model::box<Point>

Definition at line 42 of file CathodeSegmentationImpl4.h.

◆ Point

using o2::mch::mapping::impl4::CathodeSegmentation::Point = boost::geometry::model::point<double, 2, boost::geometry::cs::cartesian>

Definition at line 40 of file CathodeSegmentationImpl4.h.

◆ Value

Definition at line 43 of file CathodeSegmentationImpl4.h.

Constructor & Destructor Documentation

◆ CathodeSegmentation()

o2::mch::mapping::impl4::CathodeSegmentation::CathodeSegmentation ( int  segType,
bool  isBendingPlane,
std::vector< PadGroup padGroups,
std::vector< PadGroupType padGroupTypes,
std::vector< std::pair< float, float > >  padSizes 
)

Definition at line 112 of file CathodeSegmentationImpl4.cxx.

Member Function Documentation

◆ dualSampaIds()

std::set< int > o2::mch::mapping::impl4::CathodeSegmentation::dualSampaIds ( ) const
inline

Definition at line 62 of file CathodeSegmentationImpl4.h.

◆ findPadByFEE()

int o2::mch::mapping::impl4::CathodeSegmentation::findPadByFEE ( int  dualSampaId,
int  dualSampaChannel 
) const

Definition at line 233 of file CathodeSegmentationImpl4.cxx.

◆ findPadByPosition()

int o2::mch::mapping::impl4::CathodeSegmentation::findPadByPosition ( double  x,
double  y 
) const

Definition at line 203 of file CathodeSegmentationImpl4.cxx.

◆ getCatPadIndices() [1/2]

std::vector< int > o2::mch::mapping::impl4::CathodeSegmentation::getCatPadIndices ( double  xmin,
double  ymin,
double  xmax,
double  ymax 
) const

Return the list of catPadIndices for the pads contained in the box {xmin,ymin,xmax,ymax}.

Definition at line 159 of file CathodeSegmentationImpl4.cxx.

◆ getCatPadIndices() [2/2]

std::vector< int > o2::mch::mapping::impl4::CathodeSegmentation::getCatPadIndices ( int  dualSampaId) const

Return the list of catPadIndices for the pads of the given dual sampa.

Definition at line 150 of file CathodeSegmentationImpl4.cxx.

◆ getNeighbouringCatPadIndices()

std::vector< int > o2::mch::mapping::impl4::CathodeSegmentation::getNeighbouringCatPadIndices ( int  catPadIndex) const

Return the list of catPadIndices of the pads which are neighbours to catPadIndex

Definition at line 174 of file CathodeSegmentationImpl4.cxx.

◆ hasPadByFEE()

bool o2::mch::mapping::impl4::CathodeSegmentation::hasPadByFEE ( int  dualSampaId,
int  dualSampaChannel 
) const
inline

Definition at line 73 of file CathodeSegmentationImpl4.h.

◆ hasPadByPosition()

bool o2::mch::mapping::impl4::CathodeSegmentation::hasPadByPosition ( double  x,
double  y 
) const
inline

Definition at line 68 of file CathodeSegmentationImpl4.h.

◆ isValid()

bool o2::mch::mapping::impl4::CathodeSegmentation::isValid ( int  catPadIndex) const

Definition at line 190 of file CathodeSegmentationImpl4.cxx.

◆ padDualSampaChannel()

int o2::mch::mapping::impl4::CathodeSegmentation::padDualSampaChannel ( int  catPadIndex) const

Definition at line 284 of file CathodeSegmentationImpl4.cxx.

◆ padDualSampaId()

int o2::mch::mapping::impl4::CathodeSegmentation::padDualSampaId ( int  catPadIndex) const

Definition at line 279 of file CathodeSegmentationImpl4.cxx.

◆ padPositionX()

double o2::mch::mapping::impl4::CathodeSegmentation::padPositionX ( int  catPadIndex) const

Definition at line 251 of file CathodeSegmentationImpl4.cxx.

◆ padPositionY()

double o2::mch::mapping::impl4::CathodeSegmentation::padPositionY ( int  catPadIndex) const

Definition at line 260 of file CathodeSegmentationImpl4.cxx.

◆ padSizeX()

double o2::mch::mapping::impl4::CathodeSegmentation::padSizeX ( int  catPadIndex) const

Definition at line 269 of file CathodeSegmentationImpl4.cxx.

◆ padSizeY()

double o2::mch::mapping::impl4::CathodeSegmentation::padSizeY ( int  catPadIndex) const

Definition at line 274 of file CathodeSegmentationImpl4.cxx.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const CathodeSegmentation seg 
)
friend

Definition at line 309 of file CathodeSegmentationImpl4.cxx.

Member Data Documentation

◆ InvalidCatPadIndex

constexpr int o2::mch::mapping::impl4::CathodeSegmentation::InvalidCatPadIndex {-1}
staticconstexpr

Definition at line 38 of file CathodeSegmentationImpl4.h.


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