Changeset 4058 for trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
- Timestamp:
- 05/12/04 20:22:24 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
r3957 r4058 90 90 91 91 #include "../mhist/MHCamera.h" // FIXME: This dependancy is very bad! 92 92 // HOW TO GET RID OF IT? Move MHCamera to mgeom? 93 93 94 94 //#include "MStarLocalPos.h" … … 292 292 // 'c' Use the underlaying MHCamera as histogram 293 293 // '0' Draw the reflection on a virtual perfect mirror 294 // '=' Draw '0' or '*' propotional to the star magnitude 294 295 // 295 296 // If the Pad contains an object MHCamera of type MHCamera it is used. … … 312 313 const Bool_t hasdot = o.Contains(".", TString::kIgnoreCase); 313 314 const Bool_t usecam = o.Contains("c", TString::kIgnoreCase); 315 const Bool_t resize = o.Contains("=", TString::kIgnoreCase); 314 316 315 317 // Get camera … … 389 391 m->SetMarkerColor(kMagenta); 390 392 m->SetMarkerStyle(kDot); 391 AddMap(m);393 fMapG.Add(m); 392 394 } 393 395 if (h) … … 402 404 // transform meters into millimeters (camera display works with mm) 403 405 mean *= 1./num; 404 DrawStar(mean(0), mean(1), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1)));406 DrawStar(mean(0), mean(1), *radec, hasmean?kBlack:-1, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1)), resize); 405 407 406 408 if (hasnull) … … 409 411 star *= rot; 410 412 const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000; 411 DrawStar(spot(0), spot(1), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1))); 413 DrawStar(spot(0), spot(1), *radec, hasmean?kBlack:-1, Form("x=%.1fmm y=%.1fmm", mean(0), mean(1)), resize); 414 // This can be used to get the abberation... 412 415 //cout << TMath::Hypot(spot(0), spot(1)) << " " << TMath::Hypot(mean(0)-spot(0), mean(1)-spot(1)) << endl; 413 416 } … … 481 484 // x [mm]: x coordinate in the camera plane (assuming a perfect mirror) 482 485 // y [mm]: y coordinate in the camera plane (assuming a perfect mirror) 486 // 487 // We assume (0, 0) to be the center of the FOV 483 488 // 484 489 // dzd [deg]: Delta Zd
Note:
See TracChangeset
for help on using the changeset viewer.