Changeset 3540 for trunk


Ignore:
Timestamp:
03/17/04 21:06:36 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3539 r3540  
    4444   * mhvstime/MHPixVsTime.cc:
    4545     - fixed missing initialization of fTypeErr in constructor
     46
     47   * mimage/MHillas.[h,cc]:
     48     - implemented member function which returns MeanX/Y as TVector2
     49
     50   * mimage/ImageIncl.h:
     51     - added TVector2
    4652
    4753
  • trunk/MagicSoft/Mars/mimage/ImageIncl.h

    r1940 r3540  
    11#ifndef __CINT__
    22
     3#include <TVector2.h>
     4
    35#endif // __CINT__
  • trunk/MagicSoft/Mars/mimage/MHillas.cc

    r3183 r3540  
    6464#include <TArrayF.h>
    6565#include <TEllipse.h>
     66#include <TVector2.h>
    6667
    6768#include "MGeomPix.h"
     
    8889
    8990    Reset();
    90 }
    91 
    92 // --------------------------------------------------------------------------
    93 //
    94 // Destructor. Deletes the TEllipse if one exists.
    95 //
    96 MHillas::~MHillas()
    97 {
    9891}
    9992
     
    112105    fMeanX  =  0;
    113106    fMeanY  =  0;
     107}
     108
     109// --------------------------------------------------------------------------
     110//
     111//  return the mean position as TVector2(meanx, meany)
     112//
     113TVector2 MHillas::GetMean() const
     114{
     115    return TVector2(fMeanX, fMeanY);
    114116}
    115117
  • trunk/MagicSoft/Mars/mimage/MHillas.h

    r2624 r3540  
    77
    88class TArrayF;
     9class TVector2;
    910
    1011class MGeomCam;
     
    2728public:
    2829    MHillas(const char *name=NULL, const char *title=NULL);
    29     ~MHillas();
    3030
    3131    void Reset();
     
    4444    Float_t GetMeanY() const  { return fMeanY; }
    4545
     46    TVector2 GetMean() const;
     47
    4648    Float_t GetCosDelta() const { return fCosDelta; }
    4749    Float_t GetSinDelta() const { return fSinDelta; }
Note: See TracChangeset for help on using the changeset viewer.