Ignore:
Timestamp:
08/16/04 12:28:05 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/Changelog

    r4558 r4625  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/08/16: Robert Wagner
     22   * mtemp/MStarLocalPos.[h,cc]
     23     - added member variables, setters and getters for ideal position,
     24       i.e. position without aberration effects
     25
     26   * mtemp/mmpi/MAstroCamera.cc
     27     - Ideal position of star is filled in MLocalStarPos container 
     28
     29
    2030
    2131 2004/08/09: Robert Wagner
  • trunk/MagicSoft/Mars/mtemp/MStarLocalPos.cc

    r4545 r4625  
    9696}
    9797
     98void MStarLocalPos::SetIdealValues(Float_t mag, Float_t x, Float_t y)
     99{
     100     fMagIdeal = mag;
     101     fXIdeal = x;
     102     fYIdeal = y;
     103}
     104
    98105void MStarLocalPos::SetCalcValues(Float_t mag, Float_t max,
    99106        Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis)
     
    225232      *fLog << inf << "Star Name: \"" << this->GetName() << "\"" << endl;
    226233    }
    227    
     234     
     235  if (o.Contains("mag", TString::kIgnoreCase) || opt == NULL)
     236    {
    228237 
    229   if (o.Contains("mag", TString::kIgnoreCase) || opt == NULL)
    230     {
    231  
    232       *fLog << inf << "Star maginitude:" << endl;
     238      *fLog << inf << "Star magnitude:" << endl;
    233239      *fLog << inf << " Expected \t" << setw(4) << fMagExp << endl;
    234240      *fLog << inf << " Calcultated \t " << setw(4) << fMagCalc << endl;
  • trunk/MagicSoft/Mars/mtemp/MStarLocalPos.h

    r4545 r4625  
    1414    Float_t fXExp;    //[mm]
    1515    Float_t fYExp;    //[mm]
     16
     17    //Ideal position on camera
     18    Float_t fMagIdeal;
     19    Float_t fXIdeal;    //[mm]
     20    Float_t fYIdeal;    //[mm]
    1621
    1722    //Info from calculation
     
    6267    Float_t GetYExp() {return fYExp;}
    6368
     69    Float_t GetMagIdeal() {return fMagIdeal;}
     70    Float_t GetXIdeal() {return fXIdeal;}
     71    Float_t GetYIdeal() {return fYIdeal;}
     72
    6473    Float_t GetMagCalc() {return fMagCalc;}
    6574    Float_t GetMaxCalc() {return fMaxCalc;}
     
    104113    void SetExpValues(Float_t mag, Float_t x, Float_t y);
    105114
     115    void SetIdealValues(Float_t mag, Float_t x, Float_t y);
     116
    106117    void SetCalcValues(Float_t mag, Float_t max, Float_t x, Float_t y,
    107118                       Float_t sigmaMinorAxis, Float_t sigmaMajorAxis);
  • trunk/MagicSoft/Mars/mtemp/mmpi/MAstroCamera.cc

    r4440 r4625  
    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
     
    390391            {
    391392                TMarker *m=new TMarker(spot(0), spot(1), 1);
    392                 m->SetMarkerColor(kMagenta);
     393                TVector3 pos=mirror->GetMirrorCenter();
     394                Float_t r=pos.Mag();
     395
     396                m->SetMarkerColor((Int_t)(6*r)+51);
    393397                m->SetMarkerStyle(kDot);
    394398                fMapG.Add(m);
     
    462466      MStarLocalPos *starpos = new MStarLocalPos;
    463467      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));
    464471     
    465472      TString name = radec->GetName();
Note: See TracChangeset for help on using the changeset viewer.