Changeset 8477
- Timestamp:
- 05/08/07 14:34:24 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8475 r8477 19 19 -*-*- END OF LINE -*-*- 20 20 21 2007/05/08 Daniel Hoehne 22 23 * datacenter/macros/fillsignal.C: 24 - implemented new variables fUnsuitable50 and fUnsuitable01 25 26 * datacenter/db/menu.php, magicdefs.php, querycal.php: 27 - implemented new columns fUnsuitable50 and fUnsuitable01 28 29 30 21 31 2007/05/04 Thomas Bretz 22 32 -
trunk/MagicSoft/Mars/datacenter/db/magicdefs.php
r8467 r8477 218 218 "fUnreliableInner" => "Un<br>rel.<br>In", 219 219 "fUnsuitableInner" => "Un<br>suit.<br>In", 220 "fUnsuitable50" => "Un<br>suit.<br>50", 221 "fUnsuitable01" => "Un<br>suit.<br>01", 220 222 "fIsolatedOuter" => "Isol.<br>Out", 221 223 "fIsolatedInner" => "Isol.<br>In", … … 363 365 $alias["fUnsuitableInner"] => "1", 364 366 $alias["fUnreliableInner"] => "1", 367 $alias["fUnsuitable50"] => "1", 368 $alias["fUnsuitable01"] => "1", 365 369 $alias["fIsolatedOuter"] => "1", 366 370 $alias["fIsolatedInner"] => "1", … … 519 523 "fUnsuitableInner" => "Calibration.fUnsuitableInner", 520 524 "fUnsuitableOuter" => "Calibration.fUnsuitableOuter", 525 "fUnsuitable50" => "Calibration.fUnsuitable50", 526 "fUnsuitable01" => "Calibration.fUnsuitable01", 521 527 "fUnreliableInner" => "Calibration.fUnreliableInner", 522 528 "fUnreliableOuter" => "Calibration.fUnreliableOuter", -
trunk/MagicSoft/Mars/datacenter/db/menu.php
r8334 r8477 280 280 printf(" </tr><tr>\n"); 281 281 282 CheckBox("fUnsuitable50", "Unsuitable (50%)"); 283 CheckBox("fUnsuitable01", "Unsuitable (1%)"); 284 285 printf(" </tr><tr>\n"); 286 282 287 CheckBox("fIsolatedInner", "Isolated inner"); 283 288 CheckBox("fIsolatedOuter", "Isolated outer"); … … 829 834 $_GET["fUnsuitableInner"]="Off"; 830 835 836 if (empty($_GET["fUnsuitable50"])) 837 $_GET["fUnsuitable50"]="Off"; 838 839 if (empty($_GET["fUnsuitable01"])) 840 $_GET["fUnsuitable01"]="Off"; 841 831 842 if (empty($_GET["fIsolatedInner"])) 832 843 $_GET["fIsolatedInner"]="Off"; -
trunk/MagicSoft/Mars/datacenter/db/querycal.php
r8180 r8477 52 52 $_GET["fUnsuitableOuter"]=$first?"On":""; 53 53 54 if (empty($_GET["fUnsuitable50"])) 55 $_GET["fUnsuitable50"]=$first?"On":""; 56 57 if (empty($_GET["fUnsuitable01"])) 58 $_GET["fUnsuitable01"]=$first?"On":""; 59 54 60 if (empty($_GET["fUnreliableOuter"])) 55 61 $_GET["fUnreliableOuter"]=$first?"On":""; … … 113 119 CheckBox("fUnreliableInner", "Unreliable inner"); 114 120 CheckBox("fUnreliableOuter", "Unreliable outer"); 121 122 printf(" </tr><tr>\n"); 123 124 CheckBox("fUnsuitable50", "Unsuitable (50%)"); 125 CheckBox("fUnsuitable01", "Unsuitable (1%)"); 115 126 CheckBox("fIsolatedInner", "Isolated inner"); 116 127 CheckBox("fIsolatedOuter", "Isolated outer"); -
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r8475 r8477 57 57 ///////////////////////////////////////////////////////////////////////////// 58 58 #include <iostream> 59 #include <iomanip> 59 60 60 61 #include <TEnv.h> … … 73 74 74 75 using namespace std; 76 77 Int_t CalcUnsuitable(const MHCamera &cam, Float_t f) 78 { 79 Int_t n = 0; 80 for (int i=0; i<cam.GetNbinsX(); i++) 81 if (cam.GetBinContent(i+1)>f) 82 n++; 83 84 return n; 85 } 75 86 76 87 int Process(MSQLServer &serv, TString fname, Bool_t dummy) … … 238 249 meanpul = TMath::Nint(meanpul*100)/100.; 239 250 rmspul = TMath::Nint(rmspul *100)/100.; 251 252 cam = (MHCamera*)arr.FindObjectInCanvas("Unsuitable;avg", "MHCamera", "Unsuitable"); 253 if (!cam) 254 { 255 cout << "WARNING - Reading of Unsuitable;avg failed." << endl; 256 return 2; 257 } 258 259 Int_t unsuitable50 = CalcUnsuitable(*cam, 0.50); 260 Int_t unsuitable01 = CalcUnsuitable(*cam, 0.01); 240 261 241 262 /* … … 293 314 cout << " Lo-Hi gain offset: " << medpuloff << " +- " << devpuloff << endl; 294 315 cout << " Hi/Lo gain ratio: " << medhilocal << " +- " << devhilocal << endl; 316 cout << " Unsuitable > 50%: " << setw(6) << unsuitable50 << endl; 317 cout << " Unsuitable > 1%: " << setw(6) << unsuitable01 << endl; 295 318 cout << endl; 296 319 … … 307 330 //" fPulsePosLoMean=%s, fPulsePosLoRms=%s, " 308 331 " fPulsePosOffMed=%s, fPulsePosOffDev=%s, " 309 " fHiLoGainRatioMed=%s, fHiLoGainRatioDev=%s " 332 " fHiLoGainRatioMed=%s, fHiLoGainRatioDev=%s, " 333 " fUnsuitable50=%d, fUnsuitable01=%d " 310 334 " WHERE fSequenceFirst='%d' ", 311 335 meanrmsinner.Data(), meanrmsouter.Data(), … … 317 341 medpuloff.Data(), devpuloff.Data(), 318 342 medhilocal.Data(), devhilocal.Data(), 343 unsuitable50, unsuitable01, 319 344 seq); 320 345
Note:
See TracChangeset
for help on using the changeset viewer.