Ignore:
Timestamp:
03/18/04 13:45:41 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/AnalysisIncl.h

    r715 r3544  
    11#ifndef __CINT__
    22
     3#include <TVector2.h>
     4
    35#endif // __CINT__
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.cc

    r2173 r3544  
    3636#include <fstream>
    3737
     38#include <TVector2.h>
     39
    3840#include "MLog.h"
    3941#include "MLogManip.h"
     
    6466    *fLog << " - x [mm] = " << fX << endl;
    6567    *fLog << " - y [mm] = " << fY << endl;
     68}
     69
     70void MSrcPosCam::SetXY(const TVector2 &v)
     71{
     72    fX = v.X();
     73    fY = v.Y();
     74}
     75
     76TVector2 MSrcPosCam::GetXY() const
     77{
     78    return TVector2(fX, fY);
    6679}
    6780
  • trunk/MagicSoft/Mars/manalysis/MSrcPosCam.h

    r1477 r3544  
    55#include "MParContainer.h"
    66#endif
     7
     8class TVector2;
    79
    810class MSrcPosCam : public MParContainer
     
    2224    void SetY(Float_t y)             { fY = y; }
    2325    void SetXY(Float_t x, Float_t y) { fX = x; fY = y; }
     26    void SetXY(const TVector2 &v);
    2427
    2528    Float_t GetX() const             { return fX; }
    2629    Float_t GetY() const             { return fY; }
     30    TVector2 GetXY() const;
    2731
    2832    void Print(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.