#include <NswCalibDbThresholdData.h>
Definition at line 17 of file NswCalibDbThresholdData.h.
◆ ChannelMap
◆ ZeroMap
◆ ThrsldTechType
◆ NswCalibDbThresholdData()
◆ ~NswCalibDbThresholdData()
| virtual NswCalibDbThresholdData::~NswCalibDbThresholdData |
( |
| ) |
|
|
virtualdefault |
◆ getChannelIds()
| std::vector< Identifier > NswCalibDbThresholdData::getChannelIds |
( |
const std::string | tech = "", |
|
|
const std::string | side = "" ) const |
Definition at line 40 of file NswCalibDbThresholdData.cxx.
40 {
41 std::vector<Identifier>
keys;
43 for (
const auto& p :
m_data) {
44 keys.emplace_back(
p.first);
45 }
46
47 if(tech.empty() &&
side.empty())
return keys;
48 std::vector<Identifier> chnls;
49
50 for(
unsigned int i=0;
i<
keys.size(); ++
i){
52 if(!
m_idHelperSvc->issTgc(keys[i]) && tech ==
"STGC")
continue;
54 if(
eta<=0 && side ==
"A")
continue;
55 if(
eta>=0 && side ==
"C")
continue;
56 chnls.push_back(keys[i]);
57 }
58 return chnls;
59}
Scalar eta() const
pseudorapidity method
◆ getThreshold()
| bool NswCalibDbThresholdData::getThreshold |
( |
const Identifier & | chnlId, |
|
|
float & | threshold ) const |
For the moment require that there is only one channel per identifier
Definition at line 63 of file NswCalibDbThresholdData.cxx.
63 {
65 ChannelMap::const_iterator chan_itr =
m_data.find(channelId);
67 if(chan_itr !=
m_data.end() && chan_itr->second.size() == 1) {
69 return true;
70 }
71
73
74 ZeroMap::const_iterator zero_itr =
m_zero.find(tech);
75 if (zero_itr !=
m_zero.end()) {
77 return true;
78 }
80 return false;
81}
value_type get_compact() const
Get the compact id.
◆ setData()
| void NswCalibDbThresholdData::setData |
( |
const Identifier & | chnlId, |
|
|
const float | threshold ) |
◆ setZero()
| void NswCalibDbThresholdData::setZero |
( |
ThrsldTechType | tech, |
|
|
const float | threshold ) |
◆ NswCalibDbAlg
◆ m_data
◆ m_idHelperSvc
◆ m_zero
| ZeroMap NswCalibDbThresholdData::m_zero {} |
|
private |
The documentation for this class was generated from the following files: