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 79 of file SCT_TdaqEnabledTool.cxx.
80 {
81 SG::ReadCondHandle<SCT_TdaqEnabledCondData> condDataHandle{
m_condKey, ctx};
82 if (not condDataHandle.
isValid()) {
84 return;
85 }
86 if (whandle) {
88 }
89 const SCT_TdaqEnabledCondData* condData{condDataHandle.
cptr()};
90 if (condData==nullptr) {
92 return ;
93 }
97 }
99 std::vector<bool> tdaq_enabled;
100 tdaq_enabled.resize(
m_pHelper->wafer_hash_max(),
false);
101 for (
const IdentifierHash &id_hash : condData->
goodIdHashes() ) {
102 tdaq_enabled.at(id_hash.value())=true;
103 }
104 for (
unsigned int status_i=0; status_i<
status.size(); ++status_i) {
105 status[status_i] =
status[status_i] && tdaq_enabled.at(status_i);
106 }
107 }
108
109}
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.
retrieve(aClass, aKey=None)
◆ isGood() [1/4]
◆ isGood() [2/4]
Is the detector element good?
Definition at line 58 of file SCT_TdaqEnabledTool.cxx.
58 {
59 const EventContext& ctx{Gaudi::Hive::currentContext()};
60
61 return isGood(elementId, ctx, h);
62}
◆ isGood() [3/4]
| bool SCT_TdaqEnabledTool::isGood |
( |
const IdentifierHash & | hashId | ) |
const |
|
overridevirtual |
is it good?, using wafer hash
Definition at line 72 of file SCT_TdaqEnabledTool.cxx.
72 {
73 const EventContext& ctx{Gaudi::Hive::currentContext()};
74
75 return isGood(hashId, ctx);
76}
◆ isGood() [4/4]
| bool SCT_TdaqEnabledTool::isGood |
( |
const IdentifierHash & | hashId, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 65 of file SCT_TdaqEnabledTool.cxx.
65 {
66 const SCT_TdaqEnabledCondData* condData{
getCondData(ctx)};
67 if (condData==nullptr) return false;
68 return condData->
isGood(hashId);
69}
bool isGood(const IdentifierHash &hashId) const
Check if a module is good.
◆ m_condKey
Definition at line 60 of file SCT_TdaqEnabledTool.h.
60{this, "CondKey", "SCT_TdaqEnabledCondData", "Active SCT RODs"};
◆ m_pHelper
| const SCT_ID* SCT_TdaqEnabledTool::m_pHelper {nullptr} |
|
private |
◆ m_useDatabase
| bool SCT_TdaqEnabledTool::m_useDatabase {true} |
|
private |
The documentation for this class was generated from the following files: