41 std::cout <<
"create DTHVCheckByAbsoluteValues" << std::endl;
72 float valueA,
float valueC,
float valueS,
73 const std::map<int,timedMeasurement>& snapshotValues,
74 const std::map<int,int>& aliasMap,
75 const std::map<int,int>& layerMap ) {
118 flag.
a = flag.
c = flag.
s = 0;
120 if ( valueA <
minHV[part] ) flag.
a = 1;
121 if ( valueA >
maxHV[part] ) flag.
a = 2;
122 if ( valueS <
minHV[ 2] ) flag.
s = 1;
123 if ( valueS >
maxHV[ 2] ) flag.
s = 2;
124 if ( valueC <
minHV[ 3] ) flag.
c = 1;
125 if ( valueC >
maxHV[ 3] ) flag.
c = 2;
132 int l_p = chlId.
wire();
136 std::map<int,int>::const_iterator layerIter;
137 std::map<int,int>::const_iterator layerIend = layerMap.end();
138 std::map<int,timedMeasurement>::const_iterator snapIter;
139 std::map<int,timedMeasurement>::const_iterator snapIend =
140 snapshotValues.end();
142 if ( ( layerIter = layerMap.find( chA.
rawId() ) ) != layerIend ) {
143 chan = ( layerIter->second * 10 ) + l_p;
144 if ( ( snapIter = snapshotValues.find( chan ) ) != snapIend ) {
145 voltA = snapIter->second.second;
148 if ( ( layerIter = layerMap.find( chS.
rawId() ) ) != layerIend ) {
149 chan = ( layerIter->second * 10 ) + 2;
150 if ( ( snapIter = snapshotValues.find( chan ) ) != snapIend ) {
151 voltS = snapIter->second.second;
154 if ( ( layerIter = layerMap.find( chC.
rawId() ) ) != layerIend ) {
155 chan = ( layerIter->second * 10 ) + 3;
156 if ( ( snapIter = snapshotValues.find( chan ) ) != snapIend ) {
157 voltC = snapIter->second.second;
163 ( voltS >=
minHV[ 2] ) ) flag.
s = 4;
165 ( voltC >=
minHV[ 3] ) ) flag.
c = 4;
~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
uint32_t rawId() const
get the raw id
int wire() const
Return the wire number.
static DTHVAbstractCheck * instance
#define DEFINE_FWK_SERVICE(type)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
DTLayerId layerId() const
Return the corresponding LayerId.
DTHVCheckByAbsoluteValues()