Changeset 7389


Ignore:
Timestamp:
11/10/05 10:12:01 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r7380 r7389  
    421421                line.Remove(i--, 1);
    422422
    423         if (fNameSource!=line(0, fNameSource.Length()))
     423        const Ssiz_t s = line.First(',');
     424        if (s<0 || fNameSource!=line(0, s))
    424425            continue;
    425426
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7349 r7389  
    452452            return kFALSE;
    453453        plist.AddToList(&source);
    454         *fLog << inf << "Using Source Position: " << source.GetTitle() << endl;
     454        *fLog << inf << "Using Source Position: ";
     455        source.Print("RaDec");
    455456    }
    456457    else
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.cc

    r7217 r7389  
    4242#include "MPointingPos.h"
    4343
     44#include "MLog.h"
     45
    4446#include "MTime.h"
     47#include "MAstro.h"
    4548#include "MObservatory.h"
    4649#include "MPointingDev.h"
     
    7881        MAstroSky2Local(t, o).RotationAngle(GetRaRad(), GetDecRad());
    7982}
     83
     84void MPointingPos::Print(Option_t *o) const
     85{
     86    TString opt(o);
     87
     88    if (opt.IsNull())
     89        opt = "radeczdaz";
     90
     91    *fLog << GetDescriptor() << ": ";
     92
     93    if (opt.Contains("ra", TString::kIgnoreCase))
     94        *fLog << " Ra=" << MAstro::GetStringHor(fRa);
     95    if (opt.Contains("ha", TString::kIgnoreCase))
     96        *fLog << " Ha=" << MAstro::GetStringHor(fHa);
     97    if (opt.Contains("dec", TString::kIgnoreCase))
     98        *fLog << " Dec=" << MAstro::GetStringDeg(fDec);
     99    if (opt.Contains("zd", TString::kIgnoreCase))
     100        *fLog << " Zd=" << MAstro::GetStringDeg(fZd);
     101    if (opt.Contains("az", TString::kIgnoreCase))
     102        *fLog << " Az=" << MAstro::GetStringDeg(fAz);
     103    *fLog << endl;
     104}
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.h

    r7217 r7389  
    3636    }
    3737
     38    void Print(Option_t *o="") const;
     39
    3840    void SetLocalPosition(Double_t zd, Double_t az) { fZd=zd; fAz=az; }
    3941    void SetSkyPosition(Double_t ra, Double_t dec, Double_t ha=0) { fRa=ra; fDec=dec; fHa=ha; }
Note: See TracChangeset for help on using the changeset viewer.