Tool that keeps track of Tdaq enabling/disabling of SCT Rods.
More...
#include <SCT_TdaqEnabledTool.h>
Tool that keeps track of Tdaq enabling/disabling of SCT Rods.
Definition at line 32 of file SCT_TdaqEnabledTool.h.
◆ SCT_TdaqEnabledTool()
| SCT_TdaqEnabledTool::SCT_TdaqEnabledTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~SCT_TdaqEnabledTool()
| virtual SCT_TdaqEnabledTool::~SCT_TdaqEnabledTool |
( |
| ) |
|
|
virtualdefault |
◆ canReportAbout()
Can the service report about the given component? (TdaqEnabledSvc can answer questions about a module or module side).
Definition at line 45 of file SCT_TdaqEnabledTool.cxx.
◆ finalize()
| StatusCode SCT_TdaqEnabledTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getCondData()
◆ getDetectorElementStatus()
Definition at line 65 of file SCT_TdaqEnabledTool.cxx.
66 {
67 SG::ReadCondHandle<SCT_TdaqEnabledCondData> condDataHandle{
m_condKey, ctx};
68 if (not condDataHandle.
isValid()) {
70 return;
71 }
72 if (whandle) {
74 }
75 const SCT_TdaqEnabledCondData* condData{condDataHandle.
cptr()};
76 if (condData==nullptr) {
78 return ;
79 }
83 }
85 std::vector<bool> tdaq_enabled;
86 tdaq_enabled.resize(
m_pHelper->wafer_hash_max(),
false);
87 for (
const IdentifierHash &id_hash : condData->
goodIdHashes() ) {
88 tdaq_enabled.at(id_hash.value())=true;
89 }
90 for (
unsigned int status_i=0; status_i<
status.size(); ++status_i) {
91 status[status_i] =
status[status_i] && tdaq_enabled.at(status_i);
92 }
93 }
94
95}
const std::vector< bool > & getElementStatus() const
bool isNoneBad() const
Get noneBad value.
const std::set< IdentifierHash > & goodIdHashes() const
const_pointer_type cptr()
void addDependency(const EventIDRange &range)
◆ initialize()
| StatusCode SCT_TdaqEnabledTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 27 of file SCT_TdaqEnabledTool.cxx.
27 {
29 ATH_MSG_INFO(
" Database will "<<databaseUseString<<
"be used.");
30
32
34
35 return StatusCode::SUCCESS;
36}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ isGood() [1/2]
◆ isGood() [2/2]
is it good?, using wafer hash
Definition at line 58 of file SCT_TdaqEnabledTool.cxx.
58 {
59 const SCT_TdaqEnabledCondData* condData{
getCondData(ctx)};
60 if (condData==nullptr) return false;
61 return condData->
isGood(hashId);
62}
bool isGood(const IdentifierHash &hashId) const
Check if a module is good.
◆ m_condKey
Definition at line 58 of file SCT_TdaqEnabledTool.h.
58{this, "CondKey", "SCT_TdaqEnabledCondData", "Active SCT RODs"};
◆ m_pHelper
◆ m_useDatabase
| bool SCT_TdaqEnabledTool::m_useDatabase {true} |
|
private |
The documentation for this class was generated from the following files: