Changeset 18414 for trunk/FACT++/src
- Timestamp:
- 01/21/16 17:23:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r18408 r18414 1194 1194 for (int i=0; i<320; i++) 1195 1195 { 1196 // Exclude crazy pixels 1197 if (i==66 || i==191 || i==193) 1198 continue; 1199 1196 1200 // Group index (0 or 1) of the of the pixel (4 or 5 pixel patch) 1197 1201 const int N = fPixelMap.hv(i).count(); … … 1222 1226 1223 1227 // Divide by number of summed channels, convert to mW 1224 power_apd /= 320e-3; // [mW]1228 power_apd /= (320-3)*1e-3; // [mW] 1225 1229 1226 1230 if (power_tot<1e-3) … … 1246 1250 // -------------------------------------------------------- 1247 1251 1248 const Statistics stat(vector<float>(ptr, ptr+320)); 1252 // After being displayed, exclude the patches with 1253 // the crazy pixels from the statsitics 1254 1255 vector<float> cpy(ptr, ptr+320); 1256 cpy[66] = 0; 1257 cpy[191] = 0; 1258 cpy[193] = 0; 1259 const Statistics stat(cpy); 1249 1260 1250 1261 // Exclude the three crazy channels … … 2621 2632 const uint32_t cnt = res[0][0]; 2622 2633 2623 reqscript = cnt>0 && fSun.state>=2 && fSun.state<=6;2634 reqscript = cnt>0 && (fSun.state==3 || fSun.state==4); 2624 2635 } 2625 2636 catch (const exception &e) … … 2684 2695 "BIAS voltage not at reference"); 2685 2696 2686 2687 newerr |= SetError(bias_on && calibrated && fBiasControlCurrentMed>90, 2688 "Median current exceeds 90µA/pix"); 2689 newerr |= SetError(bias_on && calibrated && fBiasControlCurrentMax>110, 2690 "Maximum current exceeds 110µA/pix"); 2697 newerr |= SetError(fDimFeedback.state()==Feedback::State::kOnStandby, 2698 "Feedback in standby due to high currents"); 2699 2700 2701 newerr |= SetError(bias_on && calibrated && fBiasControlCurrentMed>115, 2702 "Median current (excl. crazy) exceeds 115µA/pix"); 2703 newerr |= SetError(bias_on && calibrated && fBiasControlCurrentMax>160, 2704 "Maximum current (excl. crazy) exceeds 160µA/pix"); 2691 2705 2692 2706 newerr |= SetError(fFscControlHumidityAvg>60, 2693 2707 "Average camera humidity exceed 60%"); 2694 2708 2695 newerr |= SetError(!fPfMiniHumidityHist.empty() && fPfMiniHumidityHist.back()> 40,2696 "Camera humidity inside camera exceeds 40% (PFmini)");2709 newerr |= SetError(!fPfMiniHumidityHist.empty() && fPfMiniHumidityHist.back()>50, 2710 "Camera humidity inside camera exceeds 50% (PFmini)"); 2697 2711 newerr |= SetError(!fTemperatureControlHist.empty() && (fTemperatureControlHist.back()<26.5 || fTemperatureControlHist.back()>29), 2698 2712 "Container temperature outside [26.5;29]°C"); … … 2725 2739 "Last run finshed, but contained zero events."); 2726 2740 2727 newerr |= SetError(fFreeSpace< 50000000000,2741 newerr |= SetError(fFreeSpace<uint64_t(50000000000), 2728 2742 "Less than 50GB disk space left on newdaq."); 2729 2743 2730 newerr |= SetError(freedaq< 80000000000,2731 "Less than 80 GB disk space left on daq.");2744 newerr |= SetError(freedaq<uint64_t(800000000000), 2745 "Less than 800GB disk space left on daq."); 2732 2746 2733 2747 newerr |= SetError(fDimPwrControl.state()==Power::State::kCoolingFailure, … … 3055 3069 if (bias_on) 3056 3070 { 3057 if (fBiasControlCurrentMed> 70 || fBiasControlCurrentMax>90)3071 if (fBiasControlCurrentMed>95 || fBiasControlCurrentMax>135) 3058 3072 col = HTML::kYellow; 3059 if (fBiasControlCurrentMed> 90 || fBiasControlCurrentMax>110)3073 if (fBiasControlCurrentMed>100 || fBiasControlCurrentMax>140) 3060 3074 col = HTML::kRed; 3061 3075 } … … 3161 3175 3162 3176 col = HTML::kRed; 3163 if (freedaq>uint64_t( 199999999999))3177 if (freedaq>uint64_t(999999999999)) 3164 3178 col = HTML::kYellow; 3165 if (freedaq>uint64_t( 999999999999))3179 if (freedaq>uint64_t(149999999999)) 3166 3180 col = HTML::kGreen; 3167 3181 if (freedaq==UINT64_MAX)
Note:
See TracChangeset
for help on using the changeset viewer.