Changeset 7355


Ignore:
Timestamp:
09/16/05 14:57:22 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7354 r7355  
    4646     - removed some obsolete comments
    4747     - added Copy() member function
     48
     49   * mgeom/MGeomCam.[h,cc], mgeom/MGeomPix.h:
     50     - new member function GetAngle
    4851
    4952
  • trunk/MagicSoft/Mars/NEWS

    r7354 r7355  
    2020   - callisto: The status "unmapped" (for pixel which cannot be interpolated)
    2121     got lost when the events were stored by the calibration... fixed.
     22     (This was no problem for normal image cleaning because the pixel
     23      content was artificially set to 0 not surviving standard cleaning
     24      algorithm)
    2225
    2326   - callisto: Fixed a bug which caused the random and peak-search pedestal
     
    4851 *** Version 0.9.4 (2005/08/05)
    4952
    50    - general: Fixed the ZA binning. It didn't correctyl fit the
     53   - general: Fixed the ZA binning. It did not correctly fit the
    5154     MC binning
    5255
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.cc

    r7346 r7355  
    237237// --------------------------------------------------------------------------
    238238//
     239// Returns the angle between of pixels i wrt pixel j (default=0). The angle
     240// is returned in the range between -pi and pi (atan2) and 2*pi if i or j
     241// is out of range.
     242//
     243Float_t MGeomCam::GetAngle(UShort_t i, UShort_t j) const
     244{
     245    if (i>=fNumPixels || j>=fNumPixels)
     246        return TMath::TwoPi();
     247
     248    return (*this)[i].GetAngle((*this)[j]);
     249}
     250
     251// --------------------------------------------------------------------------
     252//
    239253// Have to call the radii of the subcameras starting to count from 1
    240254//
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.h

    r7346 r7355  
    6767
    6868    Float_t GetDist(UShort_t i, UShort_t j=0) const;
     69    Float_t GetAngle(UShort_t i, UShort_t j=0) const;
    6970
    7071    UInt_t  GetNumSectors()                const  { return fNumSectors; }
  • trunk/MagicSoft/Mars/mgeom/MGeomPix.h

    r7342 r7355  
    6363    UInt_t  GetSector() const { return fSector; }
    6464
    65     Float_t GetDist(const MGeomPix & pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
     65    Float_t GetDist(const MGeomPix &pix) const  { return TMath::Hypot(fX-pix.fX, fY-pix.fY); }
     66    Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); }
     67
    6668
    6769    Float_t GetA() const    { return fA; /*fD*fD*gsTan60/2;*/ }
  • trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc

    r7349 r7355  
    6363//     // Task to fill the histogram
    6464//     MFillH fill1(&hist1, "MCameraDC");
    65 //
     65//
     66//
     67// Class Version 2:
     68// ----------------
     69//  + Double_t fMinimum;      // User defined minimum
     70//  + Double_t fMaximum;      // User defined maximum
     71//
    6672//
    6773/////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/msignal/MSignalPix.cc

    r6856 r7355  
    1717!
    1818!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !   Author(s): Harald Kornmayer 1/2001
    2019!
    21 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2005
    2221!
    2322!
     
    5958//    the container for calibrated data will change soon.
    6059//
     60// Version 7:
     61// ----------
     62//  - removed '!' from fRing to allow the status 'Unmapped' to be stored
     63//    after calibration (bad pixel treatment). This increases the file
     64//    size of the calibrated data by roughly 0.5%
     65//
    6166////////////////////////////////////////////////////////////////////////////
    6267#include "MSignalPix.h"
     
    97102{
    98103    gLog << GetDescriptor();// << " Pixel: "<< fPixId;
    99     gLog << (fRing>0?"   Used ":" Unused ");
     104    switch (fRing)
     105    {
     106    case -1:
     107        gLog << "Unampped";
     108        break;
     109    case 0:
     110        gLog << " Unused ";
     111        break;
     112    default:
     113        gLog << "  Used  ";
     114        break;
     115    }
    100116    gLog << (fIsCore?" Core ":"      ");
    101117    gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
Note: See TracChangeset for help on using the changeset viewer.