#include <SCT_FlaggedConditionTool.h>
|
| | SCT_FlaggedConditionTool (const std::string &type, const std::string &name, const IInterface *parent) |
| virtual | ~SCT_FlaggedConditionTool ()=default |
| virtual StatusCode | initialize () override |
| virtual StatusCode | finalize () override |
| virtual bool | canReportAbout (InDetConditions::Hierarchy h) const override |
| | Can the tool report about the given component?
|
| virtual bool | isGood (const Identifier &elementId, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
| | Is the detector element good?
|
| virtual bool | isGood (const Identifier &elementId, const EventContext &ctx, InDetConditions::Hierarchy h=InDetConditions::DEFAULT) const override |
| virtual bool | isGood (const IdentifierHash &hashId) const override |
| virtual bool | isGood (const IdentifierHash &hashId, const EventContext &ctx) const override |
| virtual void | getDetectorElementStatus (const EventContext &ctx, InDet::SiDetectorElementStatus &element_status, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override |
| virtual const std::string & | details (const Identifier &id) const override |
| | Get the reason why the wafer is bad (by Identifier).
|
| virtual const std::string & | details (const Identifier &id, const EventContext &ctx) const override |
| virtual const std::string & | details (const IdentifierHash &id) const override |
| | Get the reason why the wafer is bad (by IdentifierHash).
|
| virtual const std::string & | details (const IdentifierHash &id, const EventContext &ctx) const override |
| virtual int | numBadIds () const override |
| | Get number flagged as bad (per event).
|
| virtual int | numBadIds (const EventContext &ctx) const override |
| virtual const IDCInDetBSErrContainer * | getBadIds () const override |
| | Get IdentifierHashs ofwafers flagged as bad + reason (per event).
|
| virtual const IDCInDetBSErrContainer * | getBadIds (const EventContext &ctx) const override |
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/4]
◆ details() [2/4]
◆ details() [3/4]
◆ details() [4/4]
Definition at line 112 of file SCT_FlaggedConditionTool.cxx.
112 {
113 static const std::string nullString;
114
115 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
116 if (badIds==nullptr) {
122 }
123 }
124 return nullString;
125 }
126
129 if (value>0) {
132 }
133 }
134 }
135 return nullString;
136}
#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() [1/2]
Get IdentifierHashs ofwafers flagged as bad + reason (per event).
Definition at line 180 of file SCT_FlaggedConditionTool.cxx.
180 {
181 const EventContext& ctx{Gaudi::Hive::currentContext()};
183}
◆ getBadIds() [2/2]
◆ getCondData()
Definition at line 185 of file SCT_FlaggedConditionTool.cxx.
185 {
186 SG::ReadHandle<IDCInDetBSErrContainer> condData{
m_badIds, ctx};
193 }
194 }
195 return nullptr;
196 }
197 return condData.
cptr();
198}
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
◆ getDetectorElementStatus()
Definition at line 74 of file SCT_FlaggedConditionTool.cxx.
75 {
76 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
77 if (whandle) {
78 ATH_MSG_ERROR(
"SCT_FlaggedConditionTool is not for conditions objects");
80 }
82 if (badIds==nullptr) {
88 }
89 }
92 return;
93 }
96 }
97
98 for (
size_t hash : badIds->
getMask()) {
100 }
101}
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/4]
◆ isGood() [2/4]
Is the detector element good?
Definition at line 51 of file SCT_FlaggedConditionTool.cxx.
51 {
52 const EventContext& ctx{Gaudi::Hive::currentContext()};
53
54 return isGood(elementId, ctx, h);
55}
◆ isGood() [3/4]
◆ isGood() [4/4]
◆ numBadIds() [1/2]
| int SCT_FlaggedConditionTool::numBadIds |
( |
| ) |
const |
|
overridevirtual |
Get number flagged as bad (per event).
Definition at line 171 of file SCT_FlaggedConditionTool.cxx.
171 {
172 const EventContext& ctx{Gaudi::Hive::currentContext()};
174}
◆ numBadIds() [2/2]
| int SCT_FlaggedConditionTool::numBadIds |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Definition at line 155 of file SCT_FlaggedConditionTool.cxx.
155 {
156 const IDCInDetBSErrContainer* badIds{
getCondData(ctx)};
157 if (badIds==nullptr) {
163 }
164 }
165 return -1;
166 }
167
168 return static_cast<int>(badIds->
numberSet());
169}
size_t numberSet() const
Return the number of entries set and accessible according to the mask.
◆ m_badIds
Definition at line 73 of file SCT_FlaggedConditionTool.h.
73{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: