Changeset 4685


Ignore:
Timestamp:
08/19/04 10:27:35 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4682 r4685  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/08/19: Robert Wagner
     23   * mtemp/MFindStars.[cc,h], mastro/MAstroCamera.cc,
     24     mtemp/MSourceDirections.[cc,h]
     25     - Changes to reflect the change of name of
     26       MStarPos, MStarCam
     27
    2128
    2229
  • trunk/MagicSoft/Mars/mtemp/MFindStars.cc

    r4546 r4685  
    5757#include "MTime.h"
    5858#include "MReportDrive.h"
    59 #include "MStarLocalCam.h"
    60 #include "MStarLocalPos.h"
     59#include "MStarCam.h"
     60#include "MStarPos.h"
    6161
    6262#include "MParList.h"
     
    107107  MTaskList*     tlist = (MTaskList*)plist->FindObject("MTaskList");
    108108  MFindStars*    find  = (MFindStars*)tlist->FindObject("MFindStars");
    109   MStarLocalCam* stars =
    110           (MStarLocalCam*)plist->FindObject("MStarLocalCam","MStarLocalCam");
     109  MStarCam* stars =
     110          (MStarCam*)plist->FindObject("MStarCam","MStarCam");
    111111  MGeomCam*      geom  = (MGeomCam*)plist->FindObject("MGeomCam");
    112112
     
    373373   
    374374
    375     fStars = (MStarLocalCam*)pList->FindCreateObj(AddSerialNumber("MStarLocalCam"),"MStarLocalCam");
     375    fStars = (MStarCam*)pList->FindCreateObj(AddSerialNumber("MStarCam"),"MStarCam");
    376376    if (!fStars)
    377377    {
    378       *fLog << err << AddSerialNumber("MStarLocalCam") << " cannot be created ... aborting" << endl;
     378      *fLog << err << AddSerialNumber("MStarCam") << " cannot be created ... aborting" << endl;
    379379      return kFALSE;
    380380    }
     
    442442      cout << "Number of Stars added by astrocamera is " <<fStars->GetList()->GetSize() << endl;
    443443     
    444       MStarLocalPos* starpos;
     444      MStarPos* starpos;
    445445      TIter Next(fStars->GetList());
    446       while ((starpos=(MStarLocalPos*)Next())) {
     446      while ((starpos=(MStarPos*)Next())) {
    447447        starpos->SetCalcValues(40,40,starpos->GetXExp(),starpos->GetYExp(),fRingInterest/2,fRingInterest/2);
    448448        starpos->SetFitValues (40,40,starpos->GetXExp(),starpos->GetYExp(),fRingInterest/2,fRingInterest/2,0.,-1);
     
    484484        while(FindPixelWithMaxDC(maxPixelDC, maxPixel)) {
    485485         
    486           MStarLocalPos *starpos = new MStarLocalPos;
     486          MStarPos *starpos = new MStarPos;
    487487          starpos->SetExpValues(maxPixelDC,maxPixel.GetX(),maxPixel.GetY());
    488488          starpos->SetCalcValues(maxPixelDC,maxPixelDC,maxPixel.GetX(),maxPixel.GetY(),fRingInterest/2,fRingInterest/2);
     
    515515
    516516    TIter Next(fStars->GetList());
    517     MStarLocalPos* star;
    518     while ((star=(MStarLocalPos*)Next())) {
     517    MStarPos* star;
     518    while ((star=(MStarPos*)Next())) {
    519519       FindStar(star);
    520520       ShadowStar(star);
     
    772772//
    773773
    774 Bool_t MFindStars::FindStar(MStarLocalPos* star)
     774Bool_t MFindStars::FindStar(MStarPos* star)
    775775{   
    776776  UInt_t numPixels = fGeomCam->GetNumPixels();
     
    12351235}
    12361236
    1237 Bool_t MFindStars::ShadowStar(MStarLocalPos* star)
     1237Bool_t MFindStars::ShadowStar(MStarPos* star)
    12381238{
    12391239    UInt_t numPixels = fGeomCam->GetNumPixels();
  • trunk/MagicSoft/Mars/mtemp/MFindStars.h

    r4546 r4685  
    2727class MTime;
    2828class MReportDrive;
    29 class MStarLocalCam;
    30 class MStarLocalPos;
     29class MStarCam;
     30class MStarPos;
    3131
    3232class MFindStars : public MTask
     
    3939    MTime         *fTimeCurr;
    4040    MReportDrive  *fDrive;
    41     MStarLocalCam *fStars;
     41    MStarCam *fStars;
    4242
    4343    MAstroCamera fAstro;
     
    7474    Bool_t DCPedestalCalc();
    7575    Bool_t FindPixelWithMaxDC(Float_t &maxDC, MGeomPix &maxPix);
    76     Bool_t FindStar(MStarLocalPos* star);
    77     Bool_t ShadowStar(MStarLocalPos* star);
     76    Bool_t FindStar(MStarPos* star);
     77    Bool_t ShadowStar(MStarPos* star);
    7878
    7979    TString fGeometryFile;
  • trunk/MagicSoft/Mars/mtemp/MSourceDirections.cc

    r4558 r4685  
    5353#include "MTime.h"
    5454#include "MReportDrive.h"
    55 #include "MStarLocalCam.h"
    56 #include "MStarLocalPos.h"
     55#include "MStarCam.h"
     56#include "MStarPos.h"
    5757
    5858#include "MParList.h"
     
    9090  }
    9191
    92   fStars = (MStarLocalCam*)pList->FindCreateObj(AddSerialNumber("MStarLocalCam"),"MSourceLocalCam");
     92  fStars = (MStarCam*)pList->FindCreateObj(AddSerialNumber("MStarCam"),"MSourceCam");
    9393  if (!fStars) {
    94     *fLog << err << AddSerialNumber("MStarLocalCam") << " cannot be created ... aborting" << endl;
     94    *fLog << err << AddSerialNumber("MStarCam") << " cannot be created ... aborting" << endl;
    9595    return kFALSE;
    9696  }
     
    128128  fAstro.FillStarList(fStars->GetList());     
    129129     
    130   MStarLocalPos* starpos;
     130  MStarPos* starpos;
    131131  TIter Next(fStars->GetList());
    132   while ((starpos=(MStarLocalPos*)Next())) {
     132  while ((starpos=(MStarPos*)Next())) {
    133133    starpos->SetCalcValues(40,40,starpos->GetXExp(),starpos->GetYExp(),0.,0.);
    134134    starpos->SetFitValues (40,40,starpos->GetXExp(),starpos->GetYExp(),0.,0.,0.,1);
  • trunk/MagicSoft/Mars/mtemp/MSourceDirections.h

    r4558 r4685  
    1212class MTime;
    1313class MReportDrive;
    14 class MStarLocalCam;
    15 class MStarLocalPos;
     14class MStarCam;
     15class MStarPos;
    1616
    1717class MSourceDirections : public MTask
     
    2323    MTime         *fTimeCurr;
    2424    MReportDrive  *fDrive;
    25     MStarLocalCam *fStars;
     25    MStarCam *fStars;
    2626
    2727    MAstroCamera fAstro;
Note: See TracChangeset for help on using the changeset viewer.