Changeset 4651 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/17/04 14:09:30 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Makefile

    r4591 r4651  
    6565          mhistmc \
    6666          mjobs \
    67           mtools
     67          mtools \
     68          mstarcam
    6869
    6970#LIBRARIES = $(SUBDIRS:%=lib/lib%.a)
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r4434 r4651  
    1717!
    1818!   Author(s): Thomas Bretz, 3/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!   Author(s): Robert Wagner, 7/2004 <mailto:rwagner@mppmu.mpg.de>
    1920!
    2021!   Copyright: MAGIC Software Development, 2000-2004
     
    9293                      // HOW TO GET RID OF IT? Move MHCamera to mgeom?
    9394
    94 // FIXME: remove comments as soon as MStarLocalPos official part of MARS
    95 //#include "MStarLocalPos.h"
    96 // FIXME: remove comments as soon as MStarLocalPos official part of MARS
     95#include "MStarPos.h"
    9796
    9897ClassImp(MAstroCamera);
     
    382381        while ((mirror=(MGeomMirror*)NextM()))
    383382        {
    384             const TVector3 spot = mirror->GetReflection(star, fGeom->GetCameraDist())*1000;
    385 
     383            const TVector3 spot = mirror->GetReflection(star, fGeom->GetCameraDist())*1000;
     384           
    386385            // calculate mean of all 'stars' hitting the camera plane
    387386            // by taking the sum of the intersection points between
     
    392391            {
    393392                TMarker *m=new TMarker(spot(0), spot(1), 1);
    394                 m->SetMarkerColor(kMagenta);
     393                TVector3 pos=mirror->GetMirrorCenter();
     394                Float_t r=pos.Mag();
     395
     396                m->SetMarkerColor((Int_t)(6*r)+51);
    395397                m->SetMarkerStyle(kDot);
    396398                fMapG.Add(m);
     
    462464      }
    463465      mean *= 1./num;
    464 // FIXME: remove comments as soon as MStarLocalPos official part of MARS
    465 //      MStarLocalPos *starpos = new MStarLocalPos;
    466 //      starpos->SetExpValues(mag,mean(0),mean(1));
    467      
    468 //      TString name = radec->GetName();
    469 //      if (name.Length()==0) {
    470 //      starpos->SetName("unknown");
    471 //      } else {
    472 //      starpos->SetName(radec->GetName());
    473 //      }       
    474 //      list->Add(starpos);   
    475 // FIXME: remove comments as soon as MStarLocalPos official part of MARS
     466      MStarPos *starpos = new MStarPos;
     467      starpos->SetExpValues(mag,mean(0),mean(1));
     468
     469      const TVector3 spot = fMirror0->GetReflection(star, fGeom->GetCameraDist())*1000;
     470      starpos->SetIdealValues(mag,spot(0),spot(1));
    476471    }
    477472}
Note: See TracChangeset for help on using the changeset viewer.