Changeset 7726 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 05/22/06 17:51:33 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MHPointing.cc
r7681 r7726 29 29 // Display drive information 30 30 // 31 // Class Version 2: 32 // ---------------- 33 // 34 // + TGraph fNumStarsCor; // Number of correlated stars identified by starguider 35 // 31 36 //////////////////////////////////////////////////////////////////////////// 32 37 #include "MHPointing.h" … … 86 91 87 92 // Init Graphs 88 fDevTimeSG.SetNameTitle("DevSG", "Absolute deviation of drive (black) and starguider (blue)"); 89 fDevTimeCosy.SetNameTitle("DevCosy", "Cosy deviation"); 90 fBrightness.SetNameTitle("Brightness", "Arbitrary Sky Brightness (black), No. of stars identified by starguider (blue)"); 91 fNumStars.SetNameTitle("NumStars", "Number of stars identified by starguider"); 92 fDevZd.SetNameTitle("DevZd", "Starguider deviation Zd (blue), Az (black)"); 93 fDevAz.SetNameTitle("DevAz", "Starguider Deviation Az"); 94 fPosZd.SetNameTitle("PosZd", "Nominal position Zd"); 93 fDevTimeSG.SetNameTitle("DevSG", "Absolute deviation of drive (black) and starguider (blue)"); 94 fDevTimeCosy.SetNameTitle("DevCosy", "Cosy deviation"); 95 fBrightness.SetNameTitle("Brightness", "Arbitrary Sky Brightness (black), No. of stars identified by starguider (blue)"); 96 fNumStars.SetNameTitle("NumStars", "Number of stars identified by starguider"); 97 fNumStarsCor.SetNameTitle("NumStarsCor", "Number of stars correlated by starguider"); 98 fDevZd.SetNameTitle("DevZd", "Starguider deviation Zd (blue), Az (black)"); 99 fDevAz.SetNameTitle("DevAz", "Starguider Deviation Az"); 100 fPosZd.SetNameTitle("PosZd", "Nominal position Zd"); 95 101 //fPosAz.SetNameTitle("PosZd", "Position Az"); 96 102 … … 99 105 InitGraph(fBrightness); 100 106 InitGraph(fNumStars); 107 InitGraph(fNumStarsCor); 101 108 InitGraph(fDevZd); 102 109 InitGraph(fDevAz); … … 108 115 fBrightness.SetMinimum(0); 109 116 fNumStars.SetMinimum(0); 117 fNumStarsCor.SetMinimum(0); 110 118 111 119 fDevTimeSG.SetMarkerColor(kBlue); 112 120 fDevZd.SetMarkerColor(kBlue); 113 121 fNumStars.SetMarkerColor(kBlue); 122 fNumStarsCor.SetMarkerColor(kMagenta); 114 123 //fPosAz.SetMarkerColor(kBlue); 115 124 } … … 170 179 if (fReportSG->GetSkyBrightness()>0) 171 180 { 172 AddPoint(fBrightness, tm, fReportSG->GetSkyBrightness()); 173 AddPoint(fNumStars, tm, fReportSG->GetNumIdentifiedStars()); 181 AddPoint(fBrightness, tm, fReportSG->GetSkyBrightness()); 182 AddPoint(fNumStars, tm, fReportSG->GetNumIdentifiedStars()); 183 AddPoint(fNumStarsCor, tm, fReportSG->GetNumCorrelatedStars()); 174 184 } 175 185 … … 227 237 // Update position of an axis on the right side of the histogram 228 238 // 229 void MHPointing::UpdateRightAxis(TGraph &g) const 230 { 231 TH1 &h = *g.GetHistogram(); 232 233 const Double_t max = h.GetMaximum(); 239 void MHPointing::UpdateRightAxis(TGraph &g1, TGraph &g2) const 240 { 241 TH1 &h1 = *g1.GetHistogram(); 242 TH1 &h2 = *g2.GetHistogram(); 243 244 const Double_t max = TMath::Max(h1.GetMaximum(), h2.GetMaximum()); 234 245 if (max==0) 235 246 return; … … 239 250 return; 240 251 241 axis->SetX1(g .GetXaxis()->GetXmax());242 axis->SetX2(g .GetXaxis()->GetXmax());252 axis->SetX1(g1.GetXaxis()->GetXmax()); 253 axis->SetX2(g1.GetXaxis()->GetXmax()); 243 254 axis->SetY1(gPad->GetUymin()); 244 255 axis->SetY2(gPad->GetUymax()); … … 292 303 fBrightness.Draw("AP"); 293 304 fNumStars.Draw("P"); 305 fNumStarsCor.Draw("P"); 294 306 DrawRightAxis("N"); 295 307 … … 327 339 { 328 340 fNumStars.GetHistogram()->GetYaxis()->SetTitleColor(kBlue); 329 UpdateRightAxis(fNumStars );341 UpdateRightAxis(fNumStars, fNumStarsCor); 330 342 } 331 343 /* -
trunk/MagicSoft/Mars/mpointing/MHPointing.h
r7211 r7726 25 25 26 26 TGraph fNumStars; // Number of stars identified by starguider 27 TGraph fNumStarsCor; // Number of correlated stars identified by starguider 27 28 28 29 TGraph fDevZd; // Starguider deviation Zd … … 36 37 void AddPoint(TGraph &g, Double_t x, Double_t y) const; 37 38 void DrawGraph(TGraph &g, const char *y=0) const; 38 void UpdateRightAxis(TGraph &g ) const;39 void UpdateRightAxis(TGraph &g1, TGraph &g2) const; 39 40 void DrawRightAxis(const char *title) const; 40 41 … … 48 49 void Paint(Option_t *opt=""); 49 50 50 ClassDef(MHPointing, 1) // Histogram to display tracking/pointing information51 ClassDef(MHPointing, 2) // Histogram to display tracking/pointing information 51 52 }; 52 53 -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r7594 r7726 140 140 { 141 141 fDeviation->SetDevZdAz(0, 0); 142 fDeviation->SetDevXY(0, 0); //?!? 142 143 fSkip[1]++; 143 144 return kTRUE; -
trunk/MagicSoft/Mars/mpointing/MPointingPos.cc
r7550 r7726 64 64 // (Zd/Az) coordinates. 65 65 // 66 // Return angle [rad] in the range -pi, pi 67 // 66 68 // For more information see MAstro::RotationAngle 67 69 // … … 76 78 // seen with an Alt/Az telescope calculated from the stored sky 77 79 // (Ra/Dec) coordinates. 80 // 81 // Return angle [rad] in the range -pi, pi 78 82 // 79 83 // For more information see MAstro::RotationAngle
Note:
See TracChangeset
for help on using the changeset viewer.