Changeset 9145


Ignore:
Timestamp:
10/29/08 11:41:41 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9144 r9145  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2008/10/29 Thomas Bretz
     22
     23   * mpointing/MSrcPosCalc.cc:
     24     - return kERROR instead of kFALSE if source position is too far
     25       away from the camera center
     26     - DeltaPhi replaced by Angle to take declination into account
     27
     28
    2029
    2130 2008/10/23 Daniel Hoehne-Moench
  • trunk/MagicSoft/Mars/NEWS

    r9143 r9145  
    4444     quite weak. Now sum events pass the calculation if and only if they
    4545     have also a level 1 trigger.
     46
     47 ;ganymed
     48
     49   * If the source position is more than 1deg away from the camera
     50     center an error is raised now.
    4651
    4752
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r9070 r9145  
    439439    // source position given by the user. (Checking every individual
    440440    // event is not the fastest, but the safest)
    441     if (pos.DeltaPhi(pos0)*TMath::RadToDeg()>1)
    442     {
    443         *fLog << err << "ERROR - Defined source position deviates from pointing-ra/dec by more than 1deg!" << endl;
     441    if (pos.Angle(pos0)*TMath::RadToDeg()>1)
     442    {
     443        *fLog << err << "ERROR - Defined source position deviates from pointing-ra/dec by more than 1deg (";
     444        *fLog << pos.Angle(pos0) << ")!" << endl;
    444445        *fLog << "User defined source pos:  ";
    445446        fSourcePos->Print();
     
    447448        fPointPos->Print();
    448449
    449         return kFALSE;
     450        return kERROR;
    450451    }
    451452
Note: See TracChangeset for help on using the changeset viewer.