Changeset 7220 for trunk/MagicSoft


Ignore:
Timestamp:
07/25/05 18:44:24 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7218 r7220  
    4242   * mpointing/MPointingPos.[h,cc]:
    4343     - added option to calculate Rotation angle using MPointingDev
     44
     45   * ganymed_onoff.rc, ganymed_wobble.rc:
     46     - added example for MPointingDevCalc
     47
     48   * mjobs/MDataSet.cc:
     49     - fixed an endless loop when a sequence is added twice
     50
     51   * mjobs/MSequence.cc:
     52     - fixed an endless loop when a run is added twice
     53
     54   * mjobs/MJPedestal.cc:
     55     - CheckEnv doesn't return kERROR, test for kFALSE instead
     56
     57   * mpointing/MPointingDev.h:
     58     - added fDevX
     59     - added fDevY
     60
     61   * mpointing/MPointingDevCalc.cc:
     62     - call SetDevXY instead of the starguider calibration in zd/az
     63
     64   * mpointing/MSrcPosCalc.cc:
     65     - added the DevXY to the source position if fDeviation!=NULL
    4466
    4567
  • trunk/MagicSoft/Mars/NEWS

    r7216 r7220  
    155155     when calculating the source position. This is especially important
    156156     for wobble data at high zenith angles and culmination data.
     157
     158   - ganymed: If available the starguider data is taken into account as
     159     good as it is possible without a starguider calibration. To switch
     160     it off add
     161        MPointingDevCalc.MaxAbsDev: -1
     162     to your ganymed.rc
    157163
    158164   - sponde: the zenith angle distribution is now weighted instead of
  • trunk/MagicSoft/Mars/ganymed_onoff.rc

    r7204 r7220  
    3939BinningDist.Raw:         25    0    2
    4040BinningMaxDist.Raw:      25    0    2
     41
     42# -------------------------------------------------------------------------
     43# Using the starguider for pointing correction.
     44# To switch it off use "MPointingDevCalc.MaxAbsDev: -1"
     45# -------------------------------------------------------------------------
     46#MPointingDevCalc.MaxAbsDev:   15
     47#MPointingDevCalc.NumMinStars: 8
     48#MPointingDevCalc.NsbLevel:    3.0
     49#MPointingDevCalc.NsbMin:      30
     50#MPointingDevCalc.NsbMax:      60
     51#MPointingDevCalc.MaxAbsDev:   15
    4152
    4253# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/ganymed_wobble.rc

    r7216 r7220  
    3939BinningDist.Raw:         25    0    2
    4040BinningMaxDist.Raw:      25    0    2
     41
     42# -------------------------------------------------------------------------
     43# Using the starguider for pointing correction.
     44# To switch it off use "MPointingDevCalc.MaxAbsDev: -1"
     45# -------------------------------------------------------------------------
     46#MPointingDevCalc.MaxAbsDev:   15
     47#MPointingDevCalc.NumMinStars: 8
     48#MPointingDevCalc.NsbLevel:    3.0
     49#MPointingDevCalc.NsbMin:      30
     50#MPointingDevCalc.NsbMax:      60
     51#MPointingDevCalc.MaxAbsDev:   15
    4152
    4253# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mjobs/MDataSet.cc

    r7179 r7220  
    122122
    123123        if (i<n)
     124            *fLog << warn << "WARNING - Sequence #" << seq << " alraedy in list... skipped." << endl;
     125        else
    124126        {
    125             *fLog << warn << "WARNING - Sequence #" << seq << " alraedy in list... skipped." << endl;
    126             continue;
     127            // set new entry
     128            data.Set(n+1);
     129            data[n] = seq;
    127130        }
    128 
    129         // set new entry
    130         data.Set(n+1);
    131         data[n] = seq;
    132131
    133132        // remove entry from string
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r7189 r7220  
    800800
    801801    // check the resource file for it
    802     if (CheckEnv(tenv)==kERROR)
     802    if (!CheckEnv(tenv))
    803803        return kFALSE;
    804804
     
    11051105
    11061106        // The requested setup might have been overwritten
    1107         if (CheckEnv(*fExtractor)==kERROR)
     1107        if (!CheckEnv(*fExtractor))
    11081108            return kFALSE;
    11091109
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r7179 r7220  
    178178
    179179        if (i<n)
     180            *fLog << warn << "WARNING - Run #" << run << " alraedy in list... skipped." << endl;
     181        else
    180182        {
    181             *fLog << warn << "WARNING - Run #" << run << " alraedy in list... skipped." << endl;
    182             continue;
     183            // set new entry
     184            data.Set(n+1);
     185            data[n] = run;
    183186        }
    184 
    185         // set new entry
    186         data.Set(n+1);
    187         data[n] = run;
    188187
    189188        runs.Remove(0, runs.First(num)+num.Length());
  • trunk/MagicSoft/Mars/mpointing/MPointingDev.h

    r7203 r7220  
    44#ifndef MARS_MParContainer
    55#include "MParContainer.h"
     6#endif
     7#ifndef ROOT_TVector2
     8#include <TVector2.h>
    69#endif
    710
     
    1114    Double_t fDevZd;  // [deg] Pointing offset zenith distance as calculated from starguider data
    1215    Double_t fDevAz;  // [deg] Pointing offset azimuth as calculated from starguider dat
     16
     17    Double_t fDevX;   // [mm]
     18    Double_t fDevY;   // [mm]
    1319
    1420public:
     
    2026
    2127    void SetDevZdAz(Double_t devzd, Double_t devaz) { fDevZd=devzd; fDevAz=devaz; }
     28    void SetDevXY(Double_t dx, Double_t dy) { fDevX=dx; fDevY=dy; }
    2229
    2330    Double_t GetDevZd() const  { return fDevZd; }
    2431    Double_t GetDevAz() const  { return fDevAz; }
     32
     33    Double_t GetDevX() const  { return fDevX; }
     34    Double_t GetDevY() const  { return fDevY; }
     35
     36    TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); }
    2537
    2638    Double_t GetDevZdRad() const  { return fDevZd*TMath::DegToRad(); }
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r7214 r7220  
    176176    }
    177177
     178    // Calculate absolute deviation
     179    const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz);
     180
     181    // Sanity check... larger deviation are strange and ignored
     182    if (dev*60>fMaxAbsDev)
     183    {
     184        fSkip[4]++;
     185        return kTRUE;
     186    }
     187
     188    fDeviation->SetDevZdAz(devzd, devaz);
     189
    178190    // Linear starguider calibration taken from April/May data
    179191    // For calibration add MDriveReport::GetErrorZd/Az !
    180     devzd -= 2.686/60;   // 1arcmin ~ 5mm
    181     devaz -= 2.840/60;
    182 
    183     // Calculate absolute deviation
    184     const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz);
    185 
    186     // Sanity check... larger deviation are strange and ignored
    187     if (dev*60>fMaxAbsDev)
    188     {
    189         fSkip[4]++;
    190         return kTRUE;
    191     }
    192 
    193     fDeviation->SetDevZdAz(devzd, devaz);
     192    fDeviation->SetDevXY(-7.0, 16);
     193    //devzd -= 2.686/60;   // 1arcmin ~ 5mm
     194    //devaz -= 2.840/60;
     195
    194196    fSkip[0]++;
    195197
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r7216 r7220  
    371371    if (fDeviation)
    372372    {
    373         vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
     373        //vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
    374374        pos0.SetZdAz(pos0.Theta()-fDeviation->GetDevZdRad(),
    375375                     pos0.Phi()  -fDeviation->GetDevAzRad());
     
    378378    // Calculate source position in camera, and convert to mm:
    379379    TVector2 v = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
     380
     381    if (fDeviation)
     382        v -= fDeviation->GetDevXY();
     383
    380384    SetSrcPos(v);
    381385
Note: See TracChangeset for help on using the changeset viewer.