#include <SiDetectorElementStatus.h>
Definition at line 62 of file SiDetectorElementStatus.h.
◆ SiDetectorElementStatus() [1/3]
◆ SiDetectorElementStatus() [2/3]
◆ SiDetectorElementStatus() [3/3]
◆ ~SiDetectorElementStatus()
virtual InDet::SiDetectorElementStatus::~SiDetectorElementStatus |
( |
| ) |
|
|
inlinevirtual |
◆ copyBadCells()
void InDet::SiDetectorElementStatus::copyBadCells |
( |
| ) |
|
|
inlineprivate |
◆ getBadCells() [1/2]
std::vector<std::vector<unsigned short> >& InDet::SiDetectorElementStatus::getBadCells |
( |
| ) |
|
|
inline |
Get a non-const bad cells container owned by this instance.
Will create a copy of the bad cells container if it is not owned by this instance.
Definition at line 125 of file SiDetectorElementStatus.h.
◆ getBadCells() [2/2]
const std::vector<std::vector<unsigned short> >& InDet::SiDetectorElementStatus::getBadCells |
( |
| ) |
const |
|
inline |
◆ getDetectorElement()
◆ getDetectorElements()
◆ getElementChipStatus() [1/2]
std::vector<ChipFlags_t>& InDet::SiDetectorElementStatus::getElementChipStatus |
( |
| ) |
|
|
inline |
◆ getElementChipStatus() [2/2]
const std::vector<ChipFlags_t>& InDet::SiDetectorElementStatus::getElementChipStatus |
( |
| ) |
const |
|
inline |
◆ getElementStatus() [1/2]
std::vector<bool>& InDet::SiDetectorElementStatus::getElementStatus |
( |
| ) |
|
|
inline |
◆ getElementStatus() [2/2]
const std::vector<bool>& InDet::SiDetectorElementStatus::getElementStatus |
( |
| ) |
const |
|
inline |
◆ isCellGood()
bool InDet::SiDetectorElementStatus::isCellGood |
( |
IdentifierHash |
hash, |
|
|
unsigned short |
cell_i |
|
) |
| const |
|
inline |
Definition at line 107 of file SiDetectorElementStatus.h.
108 const std::vector<unsigned short> &bad_cells= std::as_const(
m_badCells)->at(
hash);
109 return !std::binary_search(bad_cells.begin(),bad_cells.end(),cell_i);
◆ isChipGood()
bool InDet::SiDetectorElementStatus::isChipGood |
( |
IdentifierHash |
hash, |
|
|
unsigned int |
chip |
|
) |
| const |
|
inline |
◆ isGood()
bool InDet::SiDetectorElementStatus::isGood |
( |
IdentifierHash |
hash | ) |
const |
|
inline |
◆ merge()
bitwise AND of module and chip status bits.
Definition at line 28 of file SiDetectorElementStatus.cxx.
31 std::stringstream
msg;
32 msg <<
"Status array sizes do not match:"
35 throw std::runtime_error(
msg.str());
43 else if (!
b.getElementStatus().empty()) {
52 else if (!
b.getElementChipStatus().empty()) {
58 unsigned int element_i=0;
59 for (
const std::vector<unsigned short> &bad_module_strips :
b.getBadCells()) {
60 std::vector<unsigned short> &
dest = (*m_badCells)[element_i];
62 dest=bad_module_strips;
65 for (
unsigned int bad_strip : bad_module_strips) {
66 std::vector<unsigned short>::const_iterator iter = std::lower_bound(
dest.begin(),
dest.end(),bad_strip);
67 if (iter ==
dest.end() || *iter != bad_strip) {
68 dest.insert( iter, bad_strip);
75 else if (!
b.getBadCells().empty()){
◆ notOwningBadCells()
void InDet::SiDetectorElementStatus::notOwningBadCells |
( |
| ) |
|
|
staticprivate |
Definition at line 82 of file SiDetectorElementStatus.cxx.
82 {
throw std::logic_error(
"Bad cells not owned by this instance, cannot return non const bad cell pointer."); }
◆ numberOfChips() [1/2]
unsigned int InDet::SiDetectorElementStatus::numberOfChips |
( |
const IdentifierHash & |
hash | ) |
const |
|
inline |
◆ numberOfChips() [2/2]
◆ operator=()
◆ m_badCells
std::vector<std::vector<unsigned short> >* InDet::SiDetectorElementStatus::m_badCells = nullptr |
|
private |
◆ m_detectorElements
◆ m_elementChipStatus
std::vector<ChipFlags_t> InDet::SiDetectorElementStatus::m_elementChipStatus |
|
private |
◆ m_elementStatus
std::vector<bool> InDet::SiDetectorElementStatus::m_elementStatus |
|
private |
◆ m_owner
bool InDet::SiDetectorElementStatus::m_owner = false |
|
private |
The documentation for this class was generated from the following files: