Interface class for tool providing summary of status of an SCT detector element.
More...
#include <SCT_ConditionsSummaryTool.h>
|
| | SCT_ConditionsSummaryTool (const std::string &type, const std::string &name, const IInterface *parent) |
| | Tool constructor.
|
| virtual | ~SCT_ConditionsSummaryTool ()=default |
| virtual StatusCode | initialize () override |
| | Tool init.
|
| virtual bool | isActive (const Identifier &elementId, const InDetConditions::Hierarchy h, const EventContext &ctx) const override |
| virtual bool | isActive (const IdentifierHash &elementHash, const EventContext &ctx) const override |
| virtual bool | isActive (const IdentifierHash &elementHash, const Identifier &elementId, const EventContext &ctx) const override |
| virtual double | activeFraction (const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd, const EventContext &ctx) const override |
| virtual bool | isGood (const Identifier &elementId, const InDetConditions::Hierarchy h, const EventContext &ctx) const override |
| virtual bool | isGood (const IdentifierHash &elementHash, const EventContext &ctx) const override |
| virtual bool | isGood (const IdentifierHash &elementHash, const Identifier &elementId, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override |
| virtual double | goodFraction (const IdentifierHash &elementHash, const Identifier &idStart, const Identifier &idEnd, const EventContext &ctx) const override |
| virtual std::unique_ptr< InDet::SiDetectorElementStatus > | getDetectorElementStatus (const EventContext &ctx, SG::WriteCondHandle< InDet::SiDetectorElementStatus > *whandle) const override |
| virtual bool | hasBSError (const IdentifierHash &elementHash, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override |
| virtual bool | hasBSError (const IdentifierHash &elementHash, Identifier elementId, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override |
| virtual uint64_t | getBSErrorWord (const IdentifierHash &moduleHash, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override |
| virtual uint64_t | getBSErrorWord (const IdentifierHash &moduleHash, const int index, const EventContext &ctx, const IDCCacheEntry *cacheEntry=nullptr) const override |
| virtual IDCCacheEntry * | getCacheEntryOut (const EventContext &ctx) const override |
|
| ToolHandleArray< ISCT_ConditionsTool > | m_toolHandles {this, "ConditionsTools", {},""} |
| SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > | m_SCTDetEleCollKey {this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"} |
| SG::ReadHandleKey< InDet::SiDetectorElementStatus > | m_SCTDetElStatusEventKey {this, "SCTDetElStatusEventDataBaseKey", "", "Optional event data key of an input SiDetectorElementStatus on which the newly created object will be based."} |
| SG::ReadCondHandleKey< InDet::SiDetectorElementStatus > | m_SCTDetElStatusCondKey {this, "SCTDetElStatusCondDataBaseKey", "" , "Optional conditions data key of an input SiDetectorElementStatus on which the newly created object will be based."} |
| const SCT_ID * | m_id_sct {nullptr} |
| | Handle to SCT ID helper.
|
| bool | m_noReports {true} |
Interface class for tool providing summary of status of an SCT detector element.
Definition at line 38 of file SCT_ConditionsSummaryTool.h.
◆ SCT_ConditionsSummaryTool()
| SCT_ConditionsSummaryTool::SCT_ConditionsSummaryTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~SCT_ConditionsSummaryTool()
| virtual SCT_ConditionsSummaryTool::~SCT_ConditionsSummaryTool |
( |
| ) |
|
|
virtualdefault |
◆ activeFraction()
◆ createDetectorElementStatus()
Definition at line 98 of file SCT_ConditionsSummaryTool.cxx.
99 {
100 std::string tool_name (
name());
101 (void) tool_name;
104 if (whandle) {
106 }
107 return std::make_unique<InDet::SCT_DetectorElementStatus>(*castToDerived(input_element_status.
cptr()));
108 }
112 (void) key;
113 return std::make_unique<InDet::SCT_DetectorElementStatus>(*castToDerived(input_element_status.
cptr()));
114 }
115 else {
116 SG::ReadCondHandle<InDetDD::SiDetectorElementCollection> sctDetEleHandle(
m_SCTDetEleCollKey, ctx);
117 if (whandle) {
119 }
120 const InDetDD::SiDetectorElementCollection* elements(*sctDetEleHandle);
121 return std::make_unique<InDet::SCT_DetectorElementStatus>(*elements);
122 }
123}
const_pointer_type cptr()
const_pointer_type cptr()
Dereference the pointer.
void addDependency(const EventIDRange &range)
◆ getBSErrorWord() [1/2]
| virtual uint64_t SCT_ConditionsSummaryTool::getBSErrorWord |
( |
const IdentifierHash & | moduleHash, |
|
|
const EventContext & | ctx, |
|
|
const IDCCacheEntry * | cacheEntry = nullptr ) const |
|
overridevirtual |
◆ getBSErrorWord() [2/2]
| virtual uint64_t SCT_ConditionsSummaryTool::getBSErrorWord |
( |
const IdentifierHash & | moduleHash, |
|
|
const int | index, |
|
|
const EventContext & | ctx, |
|
|
const IDCCacheEntry * | cacheEntry = nullptr ) const |
|
overridevirtual |
◆ getCacheEntryOut()
◆ getDetectorElementStatus()
Definition at line 126 of file SCT_ConditionsSummaryTool.cxx.
127 {
128 std::unique_ptr<InDet::SiDetectorElementStatus>
131 for (
const ToolHandle<ISCT_ConditionsTool>& tool:
m_toolHandles) {
132
136 tool->getDetectorElementStatus(ctx,*element_status,whandle);
137 }
138 }
139 }
140 if (element_status->getElementStatus().empty()) {
141 element_status->getElementStatus().resize( element_status->getDetectorElements().size(), true);
142 }
143 if (element_status->getElementChipStatus().empty()) {
144 element_status->getElementChipStatus().resize( element_status->getDetectorElements().size(), 0xffff);
145 }
146 if (element_status->getBadCells().empty()) {
147 element_status->getBadCells().resize( element_status->getDetectorElements().size());
148 }
149 return element_status;
150}
◆ goodFraction()
◆ hasBSError() [1/2]
| virtual bool SCT_ConditionsSummaryTool::hasBSError |
( |
const IdentifierHash & | elementHash, |
|
|
const EventContext & | ctx, |
|
|
const IDCCacheEntry * | cacheEntry = nullptr ) const |
|
overridevirtual |
◆ hasBSError() [2/2]
◆ initialize()
| StatusCode SCT_ConditionsSummaryTool::initialize |
( |
| ) |
|
|
overridevirtual |
Tool init.
Definition at line 26 of file SCT_ConditionsSummaryTool.cxx.
26 {
29 ATH_MSG_ERROR(
"Retrieval of ToolHandleArray<ISCT_ConditionsTool> failed.");
31 }
34 ATH_MSG_FATAL(
"The event data (SCTDetElStatusEventDataBaseKey) and cond data (SCTDetElStatusCondDataBaseKey) keys cannot be set at the same time.");
35 }
38
42}
#define ATH_CHECK
Evaluate an expression and check for errors.
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ isActive() [1/3]
◆ isActive() [2/3]
◆ isActive() [3/3]
◆ isGood() [1/3]
◆ isGood() [2/3]
◆ isGood() [3/3]
◆ m_id_sct
| const SCT_ID* SCT_ConditionsSummaryTool::m_id_sct {nullptr} |
|
private |
◆ m_noReports
| bool SCT_ConditionsSummaryTool::m_noReports {true} |
|
private |
◆ m_SCTDetEleCollKey
Definition at line 77 of file SCT_ConditionsSummaryTool.h.
78{this, "SCTDetEleCollKey", "SCT_DetectorElementCollection", "Key of SiDetectorElementCollection for SCT"};
◆ m_SCTDetElStatusCondKey
Definition at line 81 of file SCT_ConditionsSummaryTool.h.
82{this, "SCTDetElStatusCondDataBaseKey", "" , "Optional conditions data key of an input SiDetectorElementStatus on which the newly created object will be based."};
◆ m_SCTDetElStatusEventKey
| SG::ReadHandleKey<InDet::SiDetectorElementStatus> SCT_ConditionsSummaryTool::m_SCTDetElStatusEventKey {this, "SCTDetElStatusEventDataBaseKey", "", "Optional event data key of an input SiDetectorElementStatus on which the newly created object will be based."} |
|
private |
Definition at line 79 of file SCT_ConditionsSummaryTool.h.
80{this, "SCTDetElStatusEventDataBaseKey", "", "Optional event data key of an input SiDetectorElementStatus on which the newly created object will be based."};
◆ m_toolHandles
| ToolHandleArray<ISCT_ConditionsTool> SCT_ConditionsSummaryTool::m_toolHandles {this, "ConditionsTools", {},""} |
|
private |
The documentation for this class was generated from the following files: