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 66 of file SCT_SensorsTool.cxx.
66 {
67 SG::ReadCondHandle<SCT_SensorsCondData> condData{
m_condKey, ctx};
69}
const_pointer_type retrieve()
◆ getManufacturer()
| std::string SCT_SensorsTool::getManufacturer |
( |
unsigned int | truncatedSerialNumber, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 43 of file SCT_SensorsTool.cxx.
43 {
44 std::string manufacturer{""};
45
47 if (condData==nullptr) return manufacturer;
48
49 SCT_SensorsCondData::const_iterator
it{condData->find(truncatedSerialNumber)};
50 if (it!=condData->end()) {
51 manufacturer = (*it).second.getManufacturer();
52 }
53 return manufacturer;
54}
std::map< CondAttrListCollection::ChanNum, SCT_SensorCondData > SCT_SensorsCondData
Class for data object for SCT_SensorsCondAlg and SCT_SensorsTool.
◆ getSensorsData() [1/2]
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() [2/2]
| void SCT_SensorsTool::getSensorsData |
( |
std::vector< std::string > & | userVector, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Definition at line 39 of file SCT_SensorsTool.cxx.
39 {
40 ATH_MSG_WARNING(
"This void SCT_SensorsTool::getSensorsData(std::vector<std::string>& userVector) method is not implemented.");
41}
#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()
| void SCT_SensorsTool::printManufacturers |
( |
const EventContext & | ctx | ) |
const |
|
overridevirtual |
Definition at line 56 of file SCT_SensorsTool.cxx.
56 {
58 if (condData==nullptr) return;
59
60 for (const std::pair<const CondAttrListCollection::ChanNum, SCT_SensorCondData>& it: *condData) {
61 ATH_MSG_ALWAYS(
"channel " <<
it.first <<
" manufacturer " << (
it.second).getManufacturer());
62 }
63}
#define ATH_MSG_ALWAYS(x)
◆ m_condKey
Definition at line 47 of file SCT_SensorsTool.h.
47{this, "CondKey", "SCT_SensorsCondData", "SCT sensor conditions"};
The documentation for this class was generated from the following files: