Ignore:
Timestamp:
05/12/04 20:22:24 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r3957 r4058  
    9090
    9191#include "../mhist/MHCamera.h" // FIXME: This dependancy is very bad!
    92                                // HOW TO GET RID OF IT? Move MHCamera to mgeom?
     92                      // HOW TO GET RID OF IT? Move MHCamera to mgeom?
    9393
    9494//#include "MStarLocalPos.h"
     
    292292//  'c' Use the underlaying MHCamera as histogram
    293293//  '0' Draw the reflection on a virtual perfect mirror
     294//  '=' Draw '0' or '*' propotional to the star magnitude
    294295//
    295296// If the Pad contains an object MHCamera of type MHCamera it is used.
     
    312313    const Bool_t hasdot  = o.Contains(".", TString::kIgnoreCase);
    313314    const Bool_t usecam  = o.Contains("c", TString::kIgnoreCase);
     315    const Bool_t resize  = o.Contains("=", TString::kIgnoreCase);
    314316
    315317    // Get camera
     
    389391                m->SetMarkerColor(kMagenta);
    390392                m->SetMarkerStyle(kDot);
    391                 AddMap(m);
     393                fMapG.Add(m);
    392394            }
    393395            if (h)
     
    402404        // transform meters into millimeters (camera display works with mm)
    403405        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);
    405407
    406408        if (hasnull)
     
    409411            star *= rot;
    410412            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...
    412415            //cout << TMath::Hypot(spot(0), spot(1)) << " " << TMath::Hypot(mean(0)-spot(0), mean(1)-spot(1)) << endl;
    413416        }
     
    481484// x [mm]: x coordinate in the camera plane (assuming a perfect mirror)
    482485// 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
    483488//
    484489// dzd [deg]: Delta Zd
Note: See TracChangeset for help on using the changeset viewer.