Changeset 7200
- Timestamp:
- 07/19/05 15:53:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7199 r7200 40 40 - replaced Rate historams by new histogram MHRate 41 41 - added new histogram MHPointing 42 - gave a new name to writem 42 43 43 44 * mpointing/MSrcPosCorrect.cc: 44 45 - write new optical axis to parameter list 46 - print a message if a correction is introduced for this run 45 47 46 48 * mreport/MReportStarguider.[h,cc]: … … 58 60 * mpointing/Makefile, mpointing/PointingLinkDef.h: 59 61 - added MHPointing 62 63 * mcalib/MCalibrationCam.[h,cc]: 64 - moved code of static function GetPulserColorStr into source file. 65 Hopefully this 'repairs' a strange message some people got linking 66 mars: `.gnu.linkonce.t._ZN15MCalibrationCam17GetPulserColorStrENS_13PulserColor_tE' referenced in section `.rodata' of mcalib/CalibCint.o: defined in discarded section `.gnu.linkonce.t._ZN15MCalibrationCam17GetPulserColorStrENS_13PulserColor_tE' of mcalib/CalibCint.o 67 which was mainly annoying. 68 69 * mfbase/MF.cc: 70 - changed order and handling in ReadEnv. This allows to overwrite 71 already set resources in sponde (eg. MFMagicCuts.ThetaCut) 72 73 * mhbase/MH.cc: 74 - first draft of a new palette introduced by Pepe (I got it from 75 Hendrik) 60 76 61 77 -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r6963 r7200 592 592 fNumUnreliable[aidx] = i; 593 593 } 594 595 TString MCalibrationCam::GetPulserColorStr(PulserColor_t col) 596 { 597 TString str; 598 switch (col) 599 { 600 case kCT1: str += "CT1"; break; 601 case kGREEN: str += "Green"; break; 602 case kBLUE: str += "Blue"; break; 603 case kUV: str += "UV"; break; 604 case kNONE: str += "None"; break; 605 default: str += "Unknown"; break; 606 } 607 str += " ("; 608 str += (int)col; 609 str += ")"; 610 return str; 611 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.h
r7194 r7200 94 94 const MCalibrationPix &operator[] ( UInt_t i ) const; 95 95 96 static TString GetPulserColorStr(PulserColor_t col) { 97 TString str; 98 switch (col) 99 { 100 case kCT1: str += "CT1"; break; 101 case kGREEN: str += "Green"; break; 102 case kBLUE: str += "Blue"; break; 103 case kUV: str += "UV"; break; 104 case kNONE: str += "None"; break; 105 default: str += "Unknown"; break; 106 } 107 str += " ("; 108 str += (int)col; 109 str += ")"; 110 return str; 111 } 96 static TString GetPulserColorStr(PulserColor_t col); 112 97 113 98 // Inits -
trunk/MagicSoft/Mars/mfbase/MF.cc
r6932 r7200 477 477 Int_t MF::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 478 478 { 479 Bool_t rc = MFilter::ReadEnv(env, prefix, print); 480 if (rc==kERROR) 481 return kERROR; 482 483 if (!IsEnvDefined(env, prefix, "Condition", print)) 484 { 485 if (rc) 479 480 /* 481 Bool_t rc = MFilter::ReadEnv(env, prefix, print); 482 if (rc==kERROR) 483 return kERROR; 484 */ 485 if (IsEnvDefined(env, prefix, "Condition", print)) 486 { 487 TString rule = GetEnvValue(env, prefix, "Condition", ""); 488 rule.ReplaceAll(" ", ""); 489 490 Int_t idx=0; 491 while (1) 492 { 493 TString cond; 494 if (IsEnvDefined(env, prefix, Form("%d", idx), print)) 495 { 496 cond += "("; 497 cond += GetEnvValue(env, prefix, Form("%d", idx), ""); 498 cond += ")"; 499 } 500 501 if (cond.IsNull()) 502 break; 503 504 rule.ReplaceAll(Form("{%d}", idx), cond); 505 idx++; 506 } 507 508 if (fF) 509 { 510 delete fF; 511 fF = 0; 512 } 513 514 if (rule.IsNull()) 515 { 516 *fLog << warn << GetDescriptor() << " ::ReadEnv - WARNING: Empty condition found." << endl; 517 SetAllowEmpty(); 518 return kTRUE; 519 } 520 521 SetAllowEmpty(kFALSE); 522 523 if (!(fF=ParseString(rule, 1))) 524 { 525 *fLog << err << "MF::ReadEnv - ERROR: Parsing '" << rule << "' failed." << endl; 526 return kERROR; 527 } 528 529 if (print) 530 { 531 *fLog << inf << "found: "; 532 fF->Print(); 533 *fLog << endl; 534 } 535 } 536 else 537 { 538 if (!fF) 486 539 { 487 540 *fLog << warn << GetDescriptor() << " ::ReadEnv - WARNING: No condition found." << endl; 488 541 SetAllowEmpty(); 489 } 490 return rc; 491 } 492 493 TString rule = GetEnvValue(env, prefix, "Condition", ""); 494 rule.ReplaceAll(" ", ""); 495 496 Int_t idx=0; 497 while (1) 498 { 499 TString cond; 500 if (IsEnvDefined(env, prefix, Form("%d", idx), print)) 501 { 502 cond += "("; 503 cond += GetEnvValue(env, prefix, Form("%d", idx), ""); 504 cond += ")"; 505 } 506 507 if (cond.IsNull()) 508 break; 509 510 rule.ReplaceAll(Form("{%d}", idx), cond); 511 idx++; 512 } 513 514 if (fF) 515 { 516 delete fF; 517 fF = 0; 518 } 519 520 if (rule.IsNull()) 521 { 522 *fLog << warn << GetDescriptor() << " ::ReadEnv - WARNING: Empty condition found." << endl; 523 SetAllowEmpty(); 524 return kTRUE; 525 } 526 527 SetAllowEmpty(kFALSE); 528 529 if (!(fF=ParseString(rule, 1))) 530 { 531 *fLog << err << "MF::ReadEnv - ERROR: Parsing '" << rule << "' failed." << endl; 532 return kERROR; 533 } 534 535 if (print) 536 { 537 *fLog << inf << "found: "; 538 fF->Print(); 539 *fLog << endl; 542 return kFALSE; 543 } 540 544 } 541 545 … … 546 550 // might check for "Inverted" in this case both gets inverted 547 551 // and double-inversion is no inversion 552 /* 548 553 if (IsEnvDefined(env, prefix, "Inverted", print)) 549 554 if (GetEnvValue(env, prefix, "Inverted", kFALSE)==kTRUE) 550 SetInverted(kFALSE); 555 SetInverted(kFALSE);*/ 551 556 552 557 return kTRUE; -
trunk/MagicSoft/Mars/mhbase/MH.cc
r7173 r7200 1451 1451 found=kTRUE; 1452 1452 } 1453 if (paletteName.Contains("pepe")) 1454 { 1455 double s[5] = {0.0, 0.6, 0.7, 0.9, 1.0 }; 1456 double r[5] = {0.1, 0.1, 1.0, 1.0, 1.0 }; 1457 double g[5] = {0.1, 0.1, 0.0, 1.0, 1.0 }; 1458 double b[5] = {0.2, 0.7, 0.0, 0.3, 0.9 }; 1459 gStyle->CreateGradientColorTable(5, s, r, g, b, ncol); 1460 found=kTRUE; 1461 } 1453 1462 1454 1463 if (inverse) -
trunk/MagicSoft/Mars/mpointing/MHPointing.cc
r7198 r7200 87 87 fDevTimeSG.SetNameTitle("DevSG", "Drive (black) and starguider (blue) deviation"); 88 88 fDevTimeCosy.SetNameTitle("DevCosy", "Cosy deviation"); 89 fBrightness.SetNameTitle("Brigtness", "Arbitrary Sky Brightness ");89 fBrightness.SetNameTitle("Brigtness", "Arbitrary Sky Brightness (black), No. of stars identified by starguider (blue)"); 90 90 fNumStars.SetNameTitle("NumStars", "Number of stars identified by starguider"); 91 91 fDevZd.SetNameTitle("DevZd", "Starguider Deviation Zd (blue), Az(black)"); 92 92 fDevAz.SetNameTitle("DevAz", "Starguider Deviation Az"); 93 fPosZd.SetNameTitle("PosZd", "Nominal position Zd (black), Az (blue)"); 94 fPosAz.SetNameTitle("PosZd", "Position Az"); 93 95 94 96 InitGraph(fDevTimeSG); … … 98 100 InitGraph(fDevZd); 99 101 InitGraph(fDevAz); 102 InitGraph(fPosZd); 103 InitGraph(fPosAz); 100 104 101 105 fDevTimeSG.SetMinimum(0); … … 106 110 fDevTimeSG.SetMarkerColor(kBlue); 107 111 fDevZd.SetMarkerColor(kBlue); 112 fNumStars.SetMarkerColor(kBlue); 113 fPosAz.SetMarkerColor(kBlue); 108 114 } 109 115 … … 170 176 { 171 177 AddPoint(fDevTimeCosy, tm, fReportCosy->GetAbsError()*60); 178 AddPoint(fPosZd, tm, fReportCosy->GetNominalZd()); 179 AddPoint(fPosAz, tm, fReportCosy->GetNominalAz()); 172 180 return kTRUE; 173 181 } … … 190 198 } 191 199 } 192 /* 200 193 201 // -------------------------------------------------------------------------- 194 202 // … … 227 235 axis->SetTitle(title); 228 236 axis->SetTitleOffset(0.9); 229 axis->SetTextColor(k Red);237 axis->SetTextColor(kBlue); 230 238 axis->SetBit(kCanDelete); 231 239 axis->Draw(); 232 240 } 233 */ 241 234 242 // -------------------------------------------------------------------------- 235 243 // … … 259 267 gPad->SetGridy(); 260 268 fBrightness.Draw("AP"); 269 fNumStars.Draw("P"); 270 DrawRightAxis("N"); 261 271 262 272 pad->cd(3); … … 271 281 gPad->SetGridx(); 272 282 gPad->SetGridy(); 273 fNumStars.Draw("AP"); 283 fPosZd.Draw("AP"); 284 fPosAz.Draw("P"); 285 DrawRightAxis("Az [\\circ]"); 274 286 } 275 287 … … 282 294 DrawGraph(fDevZd, "\\Delta [arcmin]"); 283 295 DrawGraph(fDevAz, "\\Delta [arcmin]"); 284 /* 285 gPad->cd(1); 286 296 DrawGraph(fPosZd, "Zd [\\circ]"); 297 DrawGraph(fPosAz, "Az [\\circ]"); 298 299 TVirtualPad *pad = gPad; 300 301 pad->cd(2); 287 302 if (gPad) 288 303 { 289 fHumidity.GetHistogram()->GetYaxis()->SetTitleColor(kBlue); 290 UpdateRightAxis(fTemperature); 291 }*/ 292 } 304 fNumStars.GetHistogram()->GetYaxis()->SetTitleColor(kBlue); 305 UpdateRightAxis(fBrightness); 306 } 307 308 pad->cd(4); 309 if (gPad) 310 { 311 fPosAz.GetHistogram()->GetYaxis()->SetTitleColor(kBlue); 312 UpdateRightAxis(fPosZd); 313 } 314 } -
trunk/MagicSoft/Mars/mpointing/MHPointing.h
r7198 r7200 29 29 TGraph fDevAz; // Starguider deviation Az 30 30 31 TGraph fPosZd; // Position Zd 32 TGraph fPosAz; // Position Az 33 31 34 void ResetGraph(TGraph &g) const; 32 35 void InitGraph(TGraph &g) const; 33 36 void AddPoint(TGraph &g, Double_t x, Double_t y) const; 34 37 void DrawGraph(TGraph &g, const char *y=0) const; 35 //void UpdateRightAxis(TGraph &g) const;36 //void DrawRightAxis(const char *title) const;38 void UpdateRightAxis(TGraph &g) const; 39 void DrawRightAxis(const char *title) const; 37 40 38 41 public: -
trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc
r7196 r7200 100 100 fRunNumber = run->GetRunNumber(); 101 101 102 if (fRunNumber<56161 && fRunNumber>53832) 103 { 104 *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl; 105 *fLog << "A missfocussing correction (-0.048deg/0.034deg) will be applied." << endl; 106 } 107 102 108 return kTRUE; 103 109 }
Note:
See TracChangeset
for help on using the changeset viewer.