Tool allowing one to manually get Vdep, crystal orientation and Mfr for a sensor(s)
More...
#include <SCT_SensorsTool.h>
Tool allowing one to manually get Vdep, crystal orientation and Mfr for a sensor(s)
Definition at line 29 of file SCT_SensorsTool.h.
◆ SCT_SensorsTool()
| SCT_SensorsTool::SCT_SensorsTool |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~SCT_SensorsTool()
| virtual SCT_SensorsTool::~SCT_SensorsTool |
( |
| ) |
|
|
virtualdefault |
◆ finalize()
| StatusCode SCT_SensorsTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ getCondData()
Definition at line 86 of file SCT_SensorsTool.cxx.
86 {
87 SG::ReadCondHandle<SCT_SensorsCondData> condData{
m_condKey, ctx};
89}
const_pointer_type retrieve()
◆ getManufacturer() [1/2]
| std::string SCT_SensorsTool::getManufacturer |
( |
unsigned int | truncatedSerialNumber | ) |
const |
|
overridevirtual |
Definition at line 66 of file SCT_SensorsTool.cxx.
66 {
67 const EventContext& ctx{Gaudi::Hive::currentContext()};
69}
◆ getManufacturer() [2/2]
| std::string SCT_SensorsTool::getManufacturer |
( |
unsigned int | truncatedSerialNumber, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 53 of file SCT_SensorsTool.cxx.
53 {
54 std::string manufacturer{""};
55
57 if (condData==nullptr) return manufacturer;
58
59 SCT_SensorsCondData::const_iterator
it{condData->find(truncatedSerialNumber)};
60 if (it!=condData->end()) {
61 manufacturer = (*it).second.getManufacturer();
62 }
63 return manufacturer;
64}
std::map< CondAttrListCollection::ChanNum, SCT_SensorCondData > SCT_SensorsCondData
Class for data object for SCT_SensorsCondAlg and SCT_SensorsTool.
◆ getSensorsData() [1/4]
| const SCT_SensorCondData * SCT_SensorsTool::getSensorsData |
( |
const unsigned int | truncatedSerialNumber | ) |
const |
|
overridevirtual |
Definition at line 39 of file SCT_SensorsTool.cxx.
39 {
40 const EventContext& ctx{Gaudi::Hive::currentContext()};
42}
◆ getSensorsData() [2/4]
| const SCT_SensorCondData * SCT_SensorsTool::getSensorsData |
( |
const unsigned int | truncatedSerialNumber, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 30 of file SCT_SensorsTool.cxx.
30 {
32 if (condData==nullptr) return nullptr;
33
34 SCT_SensorsCondData::const_iterator
it{condData->find(truncatedSerialNumber)};
35 if (it!=condData->end()) return &((*it).second);
36 return nullptr;
37}
◆ getSensorsData() [3/4]
| void SCT_SensorsTool::getSensorsData |
( |
std::vector< std::string > & | userVector | ) |
const |
|
overridevirtual |
Definition at line 48 of file SCT_SensorsTool.cxx.
48 {
49 const EventContext& ctx{Gaudi::Hive::currentContext()};
51}
◆ getSensorsData() [4/4]
| void SCT_SensorsTool::getSensorsData |
( |
std::vector< std::string > & | userVector, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 44 of file SCT_SensorsTool.cxx.
44 {
45 ATH_MSG_WARNING(
"This void SCT_SensorsTool::getSensorsData(std::vector<std::string>& userVector) method is not implemented.");
46}
#define ATH_MSG_WARNING(x)
◆ initialize()
| StatusCode SCT_SensorsTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 17 of file SCT_SensorsTool.cxx.
17 {
18
20
21 return StatusCode::SUCCESS;
22}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ printManufacturers() [1/2]
| void SCT_SensorsTool::printManufacturers |
( |
| ) |
const |
|
overridevirtual |
Definition at line 80 of file SCT_SensorsTool.cxx.
80 {
81 const EventContext& ctx{Gaudi::Hive::currentContext()};
83}
◆ printManufacturers() [2/2]
| void SCT_SensorsTool::printManufacturers |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Definition at line 71 of file SCT_SensorsTool.cxx.
71 {
73 if (condData==nullptr) return;
74
75 for (const std::pair<const CondAttrListCollection::ChanNum, SCT_SensorCondData>& it: *condData) {
76 ATH_MSG_ALWAYS(
"channel " <<
it.first <<
" manufacturer " << (
it.second).getManufacturer());
77 }
78}
#define ATH_MSG_ALWAYS(x)
◆ m_condKey
Definition at line 51 of file SCT_SensorsTool.h.
51{this, "CondKey", "SCT_SensorsCondData", "SCT sensor conditions"};
The documentation for this class was generated from the following files: