39 std::cout <<
"create DTHVCheckByAbsoluteValues" << std::endl;
73 const std::map<int, timedMeasurement>& snapshotValues,
74 const std::map<int, int>& aliasMap,
75 const std::map<int, int>& layerMap) {
117 flag.
a = flag.
c = flag.
s = 0;
119 if (valueA <
minHV[part])
121 if (valueA >
maxHV[part])
123 if (valueS <
minHV[2])
125 if (valueS >
maxHV[2])
127 if (valueC <
minHV[3])
129 if (valueC >
maxHV[3])
137 int l_p = chlId.
wire();
141 std::map<int, int>::const_iterator layerIter;
142 std::map<int, int>::const_iterator layerIend = layerMap.end();
143 std::map<int, timedMeasurement>::const_iterator snapIter;
144 std::map<int, timedMeasurement>::const_iterator snapIend = snapshotValues.end();
146 if ((layerIter = layerMap.find(chA.
rawId())) != layerIend) {
147 chan = (layerIter->second * 10) + l_p;
148 if ((snapIter = snapshotValues.find(chan)) != snapIend) {
149 voltA = snapIter->second.second;
152 if ((layerIter = layerMap.find(chS.
rawId())) != layerIend) {
153 chan = (layerIter->second * 10) + 2;
154 if ((snapIter = snapshotValues.find(chan)) != snapIend) {
155 voltS = snapIter->second.second;
158 if ((layerIter = layerMap.find(chC.
rawId())) != layerIend) {
159 chan = (layerIter->second * 10) + 3;
160 if ((snapIter = snapshotValues.find(chan)) != snapIend) {
161 voltC = snapIter->second.second;
~DTHVCheckByAbsoluteValues() override
DTHVAbstractCheck::flag checkCurrentStatus(int rawId, int type, float valueA, float valueC, float valueS, const std::map< int, timedMeasurement > &snapshotValues, const std::map< int, int > &aliasMap, const std::map< int, int > &layerMap) override
check HV status
tuple chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
constexpr uint32_t rawId() const
get the raw id
int wire() const
Return the wire number.
static DTHVAbstractCheck * instance
#define DEFINE_FWK_SERVICE(type)
DTLayerId layerId() const
Return the corresponding LayerId.
DTHVCheckByAbsoluteValues()