Ignore:
Timestamp:
06/10/05 13:10:09 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCam.cc

    r7109 r7142  
    6262// Copy constructor, set default name and title
    6363//
    64 MSrcPosCam::MSrcPosCam(const MSrcPosCam &p) : fX(p.fX), fY(p,fY)
     64MSrcPosCam::MSrcPosCam(const MSrcPosCam &p) : fX(p.fX), fY(p.fY)
    6565{
    6666    fName  = gsDefName.Data();
     
    6969
    7070// -----------------------------------------------------------------------
     71//
     72// Print contents
    7173//
    7274void MSrcPosCam::Print(Option_t *) const
     
    7880}
    7981
     82// -----------------------------------------------------------------------
     83//
     84// Set fX to v.X() and fY to v.Y()
     85//
    8086void MSrcPosCam::SetXY(const TVector2 &v)
    8187{
     
    8490}
    8591
     92// -----------------------------------------------------------------------
     93//
     94// Add v.X() to fX and v.Y() to fY
     95//
     96void MSrcPosCam::Add(const TVector2 &v)
     97{
     98    fX+=v.X();
     99    fY+=v.Y();
     100}
     101
     102// -----------------------------------------------------------------------
     103//
     104// Get TVector2(fX, fY)
     105//
    86106TVector2 MSrcPosCam::GetXY() const
    87107{
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCam.h

    r7109 r7142  
    2525    void SetXY(const TVector2 &v);
    2626
     27    void Add(const TVector2 &v);
     28
    2729    Float_t GetX() const             { return fX; }
    2830    Float_t GetY() const             { return fY; }
    2931    TVector2 GetXY() const;
     32
    3033
    3134    void Print(Option_t *opt=NULL) const;
  • trunk/MagicSoft/Mars/mpointing/Makefile

    r6048 r7142  
    2828           MSrcPosCam.cc \
    2929           MSrcPosCalc.cc \
     30           MSrcPosCorrect.cc \
    3031           MSrcPosFromModel.cc
    3132
Note: See TracChangeset for help on using the changeset viewer.