Changeset 4517


Ignore:
Timestamp:
08/05/04 17:24:51 (20 years ago)
Author:
rwagner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4515 r4517  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/08/05: Robert Wagner
     23
     24   * mtemp/mmpi/MAstroCatalog.[h,cc]
     25     - Added MAstroCatalog::AddObject, functionality to insert single
     26       objects manually; needed for mtemp/mmpi/MSourceDirections
     27
     28
    2129 2004/08/05: Thomas Bretz
    2230
     
    143151       the pedestal RMS does not scale with the inverse square root of
    144152       the pixel area for the calculation of the cleaning levels.
    145      - Added new function CalcCleaningLevelDemocratic. If calculates
     153     - Added new function CalcCleaningLevelDemocratic. It calculates
    146154       the cleaning levels for the democratic image cleaning directly
    147155       from the average values of MPedPhotCam instead of using
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc

    r4358 r4517  
    1111! * provided that the above copyright notice appear in all copies and
    1212! * that both that copyright notice and this permission notice appear
    13 ! * in supporting documentation. It is provided "as is" without express
     13! * in supporting documentation. It is provided "as is" without expressed
    1414! * or implied warranty.
    1515! *
     
    1717!
    1818!   Author(s): Thomas Bretz, 03/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!   Author(s): Robert Wagner, 08/2004 <mailto:rwagner@mppmu.mpg.de>
    1920!
    2021!   Copyright: MAGIC Software Development, 2002-2004
     
    225226// --------------------------------------------------------------------------
    226227//
    227 // Snippet to for reading ctalog files.
     228// Snippet to for reading catalog files.
    228229//
    229230TString MAstroCatalog::FindToken(TString &line, Char_t tok)
     
    356357        star->SetRaDec(ra0, dec0, mag);
    357358        star->SetName(name);
     359
    358360        if (star->Angle(fRaDec)*TMath::RadToDeg()>fRadiusFOV)
    359361        {
     
    692694
    693695    return add;
     696}
     697
     698// --------------------------------------------------------------------------
     699//
     700// Add an object to the star catalog manually.
     701//
     702Int_t MAstroCatalog::AddObject(Float_t ra, Float_t dec, Float_t mag, TString name)
     703{
     704    SetBit(kHasChanged);
     705
     706    MVector3 *star = new MVector3();
     707    star->SetRaDec(ra, dec, mag);
     708    star->SetName(name);
     709
     710    if (star->Angle(fRaDec)*TMath::RadToDeg()<=fRadiusFOV) {
     711      fList.Add(star);
     712    } else {
     713      delete(star);
     714    }
     715   
     716    return 1;
    694717}
    695718
Note: See TracChangeset for help on using the changeset viewer.