![]() |
Project
|
#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< MpStripIndex > | getNeighbours (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 |
Mapping::Mapping | ( | ) |
Default constructor
Definition at line 28 of file Mapping.cxx.
|
virtualdefault |
Gets the ID of boards in column
line | The local board line in the column |
column | The column id in the detection element |
deId | The detection element ID |
warn | Set 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.
Gets the line number of the first board in the column
column | The column id in the detection element |
deId | The detection element ID |
Definition at line 178 of file Mapping.cxx.
Gets the first column in the DE
deId | The detection element ID |
Definition at line 169 of file Mapping.cxx.
Gets the number of boards in the column
column | The column id in the detection element |
deId | The detection element ID |
Definition at line 188 of file Mapping.cxx.
std::vector< Mapping::MpStripIndex > Mapping::getNeighbours | ( | const Mapping::MpStripIndex & | stripIndex, |
int | cathode, | ||
int | deId | ||
) | const |
Gets the list of neighbour strips
stripIndex | The indexes to identify the strip |
cathode | Bending plane (0) or Non-Bending plane (1) |
deId | The detection element ID |
Definition at line 227 of file Mapping.cxx.
Gets the number of strips in the NBP
column | The column id in the detection element |
deId | The detection element ID |
Definition at line 159 of file Mapping.cxx.
Gets the strip size
strip | The strip number |
cathode | Bending plane (0) or Non-Bending plane (1) |
column | The column id in the detection element |
deId | The detection element ID |
Definition at line 140 of file Mapping.cxx.
Checks if required element is valid
deId | The detection element ID |
column | The column id in the detection element |
cathode | Bending plane (0) or Non-Bending plane (1) |
line | The local board line in the column |
strip | The strip number |
Definition at line 361 of file Mapping.cxx.
Mapping::MpStripIndex Mapping::nextStrip | ( | const MpStripIndex & | stripIndex, |
int | cathode, | ||
int | deId, | ||
bool | descending = false |
||
) | const |
Gets the next strip in the non bending plane
stripIndex | The indexes to identify the strip |
cathode | Bending plane (0) or Non-Bending plane (1) |
deId | The detection element ID |
descending | Move from inner to outer |
Definition at line 323 of file Mapping.cxx.
MpArea Mapping::stripByLocation | ( | int | strip, |
int | cathode, | ||
int | line, | ||
int | column, | ||
int | deId, | ||
bool | warn = true |
||
) | const |
Gets the strip area from its location
strip | The strip number |
cathode | Bending plane (0) or Non-Bending plane (1) |
line | The local board line in the column |
column | The column id in the detection element |
deId | The detection element ID |
warn | Set 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.
MpArea Mapping::stripByLocationInBoard | ( | int | strip, |
int | cathode, | ||
int | boardId, | ||
int | chamber, | ||
bool | warn = true |
||
) | const |
Gets the strip area from its location
strip | The strip number |
cathode | Bending plane (0) or Non-Bending plane (1) |
boardId | The id of the local board |
chamber | The chamber number (0-3) |
warn | Set 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.
Mapping::MpStripIndex Mapping::stripByPosition | ( | double | xPos, |
double | yPos, | ||
int | cathode, | ||
int | deId, | ||
bool | warn = true |
||
) | const |
Gets the strip containing the coordinate xPos, yPos
xPos | x coordinate in the detection element |
yPos | y coordinate in the detection element |
cathode | Bending plane (0) or Non-Bending plane (1) |
deId | The detection element ID |
warn | Set 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.