Project
Loading...
Searching...
No Matches
o2::mid::Mapping Class Reference

#include <Mapping.h>

Classes

struct  MpStripIndex
 Indexes required to define a strip in the detection element. More...
 

Public Member Functions

 Mapping ()
 
virtual ~Mapping ()=default
 
MpArea stripByLocation (int strip, int cathode, int line, int column, int deId, bool warn=true) const
 
MpArea stripByLocationInBoard (int strip, int cathode, int boardId, int chamber, bool warn=true) const
 
MpStripIndex stripByPosition (double xPos, double yPos, int cathode, int deId, bool warn=true) const
 
double getStripSize (int strip, int cathode, int column, int deId) const
 
int getNStripsNBP (int column, int deId) const
 
int getFirstColumn (int deId) const
 
int getFirstBoardBP (int column, int deId) const
 
int getLastBoardBP (int column, int deId) const
 
int getBoardId (int line, int column, int deId, bool warn=true) const
 
std::vector< MpStripIndexgetNeighbours (const Mapping::MpStripIndex &stripIndex, int cathode, int deId) const
 
bool isValid (int deId, int column, int cathode=0, int line=0, int strip=0) const
 
MpStripIndex nextStrip (const MpStripIndex &stripIndex, int cathode, int deId, bool descending=false) const
 

Detailed Description

Definition at line 27 of file Mapping.h.

Constructor & Destructor Documentation

◆ Mapping()

Mapping::Mapping ( )

Default constructor

Definition at line 28 of file Mapping.cxx.

◆ ~Mapping()

virtual o2::mid::Mapping::~Mapping ( )
virtualdefault

Member Function Documentation

◆ getBoardId()

int Mapping::getBoardId ( int  line,
int  column,
int  deId,
bool  warn = true 
) const

Gets the ID of boards in column

Parameters
lineThe local board line in the column
columnThe column id in the detection element
deIdThe detection element ID
warnSet to false to avoid printing an error message in case the strip is not found (default: true)

Definition at line 202 of file Mapping.cxx.

◆ getFirstBoardBP()

int Mapping::getFirstBoardBP ( int  column,
int  deId 
) const

Gets the line number of the first board in the column

Parameters
columnThe column id in the detection element
deIdThe detection element ID

Definition at line 178 of file Mapping.cxx.

◆ getFirstColumn()

int Mapping::getFirstColumn ( int  deId) const

Gets the first column in the DE

Parameters
deIdThe detection element ID

Definition at line 169 of file Mapping.cxx.

◆ getLastBoardBP()

int Mapping::getLastBoardBP ( int  column,
int  deId 
) const

Gets the number of boards in the column

Parameters
columnThe column id in the detection element
deIdThe detection element ID

Definition at line 188 of file Mapping.cxx.

◆ getNeighbours()

std::vector< Mapping::MpStripIndex > Mapping::getNeighbours ( const Mapping::MpStripIndex stripIndex,
int  cathode,
int  deId 
) const

Gets the list of neighbour strips

Parameters
stripIndexThe indexes to identify the strip
cathodeBending plane (0) or Non-Bending plane (1)
deIdThe detection element ID

Definition at line 227 of file Mapping.cxx.

◆ getNStripsNBP()

int Mapping::getNStripsNBP ( int  column,
int  deId 
) const

Gets the number of strips in the NBP

Parameters
columnThe column id in the detection element
deIdThe detection element ID

Definition at line 159 of file Mapping.cxx.

◆ getStripSize()

double Mapping::getStripSize ( int  strip,
int  cathode,
int  column,
int  deId 
) const

Gets the strip size

Parameters
stripThe strip number
cathodeBending plane (0) or Non-Bending plane (1)
columnThe column id in the detection element
deIdThe detection element ID

Definition at line 140 of file Mapping.cxx.

◆ isValid()

bool Mapping::isValid ( int  deId,
int  column,
int  cathode = 0,
int  line = 0,
int  strip = 0 
) const

Checks if required element is valid

Parameters
deIdThe detection element ID
columnThe column id in the detection element
cathodeBending plane (0) or Non-Bending plane (1)
lineThe local board line in the column
stripThe strip number

Definition at line 361 of file Mapping.cxx.

◆ nextStrip()

Mapping::MpStripIndex Mapping::nextStrip ( const MpStripIndex stripIndex,
int  cathode,
int  deId,
bool  descending = false 
) const

Gets the next strip in the non bending plane

Parameters
stripIndexThe indexes to identify the strip
cathodeBending plane (0) or Non-Bending plane (1)
deIdThe detection element ID
descendingMove from inner to outer

Definition at line 323 of file Mapping.cxx.

◆ stripByLocation()

MpArea Mapping::stripByLocation ( int  strip,
int  cathode,
int  line,
int  column,
int  deId,
bool  warn = true 
) const

Gets the strip area from its location

Parameters
stripThe strip number
cathodeBending plane (0) or Non-Bending plane (1)
lineThe local board line in the column
columnThe column id in the detection element
deIdThe detection element ID
warnSet to false to avoid printing an error message in case the strip is not found (default: true)

Definition at line 487 of file Mapping.cxx.

◆ stripByLocationInBoard()

MpArea Mapping::stripByLocationInBoard ( int  strip,
int  cathode,
int  boardId,
int  chamber,
bool  warn = true 
) const

Gets the strip area from its location

Parameters
stripThe strip number
cathodeBending plane (0) or Non-Bending plane (1)
boardIdThe id of the local board
chamberThe chamber number (0-3)
warnSet to false to avoid printing an error message in case the strip is not found (default: true)

Definition at line 526 of file Mapping.cxx.

◆ stripByPosition()

Mapping::MpStripIndex Mapping::stripByPosition ( double  xPos,
double  yPos,
int  cathode,
int  deId,
bool  warn = true 
) const

Gets the strip containing the coordinate xPos, yPos

Parameters
xPosx coordinate in the detection element
yPosy coordinate in the detection element
cathodeBending plane (0) or Non-Bending plane (1)
deIdThe detection element ID
warnSet to false to avoid printing an error message in case the strip is not found (default: true)

Definition at line 592 of file Mapping.cxx.


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