Event data to hold the status information for Pixel modules.
More...
#include <PixelDetectorElementStatus.h>
Event data to hold the status information for Pixel modules.
Definition at line 13 of file PixelDetectorElementStatus.h.
◆ PixelDetectorElementStatus() [1/2]
◆ PixelDetectorElementStatus() [2/2]
◆ copyBadCells()
| void InDet::SiDetectorElementStatus::copyBadCells |
( |
| ) |
|
|
inlineprivateinherited |
Definition at line 131 of file SiDetectorElementStatus.h.
131 {
132 m_badCells =
new std::vector<std::vector<unsigned short> > (*m_badCells);
134 }
std::vector< std::vector< unsigned short > > * m_badCells
◆ getBadCells() [1/2]
| std::vector< std::vector< unsigned short > > & InDet::SiDetectorElementStatus::getBadCells |
( |
| ) |
|
|
inlineinherited |
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 |
|
inlineinherited |
◆ getDetectorElement()
◆ getDetectorElements()
◆ getElementChipStatus() [1/2]
| std::vector< ChipFlags_t > & InDet::SiDetectorElementStatus::getElementChipStatus |
( |
| ) |
|
|
inlineinherited |
◆ getElementChipStatus() [2/2]
| const std::vector< ChipFlags_t > & InDet::SiDetectorElementStatus::getElementChipStatus |
( |
| ) |
const |
|
inlineinherited |
◆ getElementStatus() [1/2]
| std::vector< bool > & InDet::SiDetectorElementStatus::getElementStatus |
( |
| ) |
|
|
inlineinherited |
◆ getElementStatus() [2/2]
| const std::vector< bool > & InDet::SiDetectorElementStatus::getElementStatus |
( |
| ) |
const |
|
inlineinherited |
◆ isCellGood()
| bool InDet::SiDetectorElementStatus::isCellGood |
( |
IdentifierHash | hash, |
|
|
unsigned short | cell_i ) const |
|
inlineinherited |
Definition at line 107 of file SiDetectorElementStatus.h.
107 {
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);
110 }
◆ isChipGood()
| bool InDet::SiDetectorElementStatus::isChipGood |
( |
IdentifierHash | hash, |
|
|
unsigned int | chip ) const |
|
inlineinherited |
Definition at line 100 of file SiDetectorElementStatus.h.
100 {
101#ifndef NDEBUG
103#endif
105 }
unsigned int numberOfChips(const IdentifierHash &hash) const
◆ isGood()
| bool InDet::SiDetectorElementStatus::isGood |
( |
IdentifierHash | hash | ) |
const |
|
inlineinherited |
◆ merge()
bitwise AND of module and chip status bits.
Definition at line 28 of file SiDetectorElementStatus.cxx.
28 {
31 std::stringstream
msg;
32 msg <<
"Status array sizes do not match:"
35 throw std::runtime_error(
msg.str());
36 }
37
41 }
42 }
43 else if (!
b.getElementStatus().empty()) {
45 }
46
50 }
51 }
52 else if (!
b.getElementChipStatus().empty()) {
54 }
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;
63 }
64 else {
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);
69 }
70 }
71 }
72 ++element_i;
73 }
74 }
75 else if (!
b.getBadCells().empty()){
77 }
78 }
79 return *this;
80 }
static const Attributes_t empty
const std::vector< bool > & getElementStatus() const
const std::vector< ChipFlags_t > & getElementChipStatus() const
static void notOwningBadCells()
const std::vector< std::vector< unsigned short > > & getBadCells() const
◆ notOwningBadCells()
| void InDet::SiDetectorElementStatus::notOwningBadCells |
( |
| ) |
|
|
staticprivateinherited |
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]
|
|
inlineoverrideprotectedvirtual |
Implements InDet::SiDetectorElementStatus.
Definition at line 20 of file PixelDetectorElementStatus.h.
20 {
21
22 const InDetDD::PixelModuleDesign &pixel_design=dynamic_cast<const InDetDD::PixelModuleDesign &>(design);
23
25 }
PixelReadoutTechnology getReadoutTechnology() const
int numberOfCircuits() const
Total number of circuits:
◆ numberOfChips() [2/2]
| unsigned int InDet::SiDetectorElementStatus::numberOfChips |
( |
const IdentifierHash & | hash | ) |
const |
|
inlineinherited |
Definition at line 88 of file SiDetectorElementStatus.h.
88 {
90 }
const InDetDD::SiDetectorElement * getDetectorElement(const IdentifierHash &hash) const
◆ m_badCells
| std::vector<std::vector<unsigned short> >* InDet::SiDetectorElementStatus::m_badCells = nullptr |
|
privateinherited |
◆ m_detectorElements
◆ m_elementChipStatus
| std::vector<ChipFlags_t> InDet::SiDetectorElementStatus::m_elementChipStatus |
|
privateinherited |
◆ m_elementStatus
| std::vector<bool> InDet::SiDetectorElementStatus::m_elementStatus |
|
privateinherited |
◆ m_owner
| bool InDet::SiDetectorElementStatus::m_owner = false |
|
privateinherited |
The documentation for this class was generated from the following file: