#include <SCT_FlaggedConditionTool.h>
Definition at line 33 of file SCT_FlaggedConditionTool.h.
◆ SCT_FlaggedConditionTool()
| SCT_FlaggedConditionTool::SCT_FlaggedConditionTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~SCT_FlaggedConditionTool()
| virtual SCT_FlaggedConditionTool::~SCT_FlaggedConditionTool |
( |
| ) |
|
|
virtualdefault |
◆ canReportAbout()
◆ details() [1/2]
◆ details() [2/2]
Get the reason why the wafer is bad (by IdentifierHash).
Definition at line 99 of file SCT_FlaggedConditionTool.cxx.
99 {
100 static const std::string nullString;
101
102 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
103 if (badIds==nullptr) {
109 }
110 }
111 return nullString;
112 }
113
116 if (value>0) {
119 }
120 }
121 }
122 return nullString;
123}
#define ATH_MSG_WARNING(x)
bool present(size_t i) const
Is the value for this has set and also accepted in the mask.
T retrieve(size_t i) const
Retrieve the value of the hash, if accessible according to the mask.
static const std::vector< std::string > ErrorTypeDescription
◆ finalize()
| StatusCode SCT_FlaggedConditionTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getBadIds()
◆ getCondData()
Definition at line 152 of file SCT_FlaggedConditionTool.cxx.
152 {
153 SG::ReadHandle<IDCInDetBSErrContainer> condData{
m_badIds, ctx};
160 }
161 }
162 return nullptr;
163 }
164 return condData.
cptr();
165}
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
◆ getDetectorElementStatus()
Definition at line 68 of file SCT_FlaggedConditionTool.cxx.
69 {
70 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
71 if (whandle) {
72 ATH_MSG_ERROR(
"SCT_FlaggedConditionTool is not for conditions objects");
74 }
76 if (badIds==nullptr) {
82 }
83 }
86 return;
87 }
90 }
91
92 for (
size_t hash : badIds->
getMask()) {
94 }
95}
const std::set< size_t > & getMask() const
const std::vector< bool > & getElementStatus() const
void addDependency(const EventIDRange &range)
◆ initialize()
| StatusCode SCT_FlaggedConditionTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 20 of file SCT_FlaggedConditionTool.cxx.
20 {
22
23
24 if (detStore()->retrieve(
m_sctID,
"SCT_ID").isFailure()) {
26 return StatusCode::FAILURE;
27 }
28
30
31 return StatusCode::SUCCESS;
32}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ isGood() [1/2]
◆ isGood() [2/2]
◆ numBadIds()
| int SCT_FlaggedConditionTool::numBadIds |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Get number flagged as bad (per event).
Definition at line 132 of file SCT_FlaggedConditionTool.cxx.
132 {
133 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
134 if (badIds==nullptr) {
140 }
141 }
142 return -1;
143 }
144
145 return static_cast<int>(badIds->
numberSet());
146}
size_t numberSet() const
Return the number of entries set and accessible according to the mask.
◆ m_badIds
Definition at line 67 of file SCT_FlaggedConditionTool.h.
67{this, "SCT_FlaggedCondData", "SCT_FlaggedCondData", "SCT flagged conditions data"};
◆ m_maxNumWarnForFailures
| UnsignedIntegerProperty SCT_FlaggedConditionTool::m_maxNumWarnForFailures {this, "MaxNumWarnForFailures", 5} |
|
private |
◆ m_numWarnForFailures
| std::atomic_uint SCT_FlaggedConditionTool::m_numWarnForFailures {0} |
|
mutableprivate |
◆ m_sctID
| const SCT_ID* SCT_FlaggedConditionTool::m_sctID {nullptr} |
|
private |
The documentation for this class was generated from the following files: