Ignore:
Timestamp:
05/20/04 05:40:59 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/caos
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/caos/Led.cc

    r2278 r4107  
    77
    88#include "Ring.h"
     9#include "MString.h"
    910
    1011ClassImp(Led);
     
    1718void Led::Print(Option_t *o=NULL) const
    1819{
     20    MString str;
    1921    cout << "Led: ";
    20     cout << "x="   << Form("%5.1f", fX)   << "+-" << fDx   << ", ";
    21     cout << "y="   << Form("%5.1f", fY)   << "+-" << fDy   << ", ";
    22     cout << "phi=" << Form("%6.1f", fPhi) << "+-" << fDphi << ", ";
     22    cout << "x="   << str.Print("%5.1f", fX)   << "+-" << fDx   << ", ";
     23    cout << "y="   << str.Print("%5.1f", fY)   << "+-" << fDy   << ", ";
     24    cout << "phi=" << str.Print("%6.1f", fPhi) << "+-" << fDphi << ", ";
    2325    cout << "mag=" << fMag << endl;
    2426}
  • trunk/MagicSoft/Cosy/caos/Makefile

    r1799 r4107  
    2020# @endcode
    2121
    22 INCLUDES = -I. -I..
     22INCLUDES = -I. -I.. -I../base
     23#base: MString
    2324
    2425# @code
  • trunk/MagicSoft/Cosy/caos/Ring.cc

    r2278 r4107  
    77
    88#include "Rings.h"
     9#include "MString.h"
    910
    1011ClassImp(Ring);
    1112
    12 Ring::Ring() :
    13     fX(0), fY(0), fR(0), fPhi(0), fDx(-1), fDy(-1), fDr(-1), fDphi(-1)
     13Ring::Ring(Double_t x, Double_t y) :
     14    fX(x), fY(y), fR(0), fPhi(0), fDx(-1), fDy(-1), fDr(-1), fDphi(-1)
    1415{
    1516}
     
    114115void Ring::Print(Option_t *o=NULL) const
    115116{
     117    MString str;
    116118    cout << "Ring: ";
    117     cout << "x="   << Form("%5.1f", fX) << "+-" << Form("%.1f", fDx) << ", ";
    118     cout << "y="   << Form("%5.1f", fY) << "+-" << Form("%.1f", fDy) << ", ";
    119     cout << "r="   << Form("%5.1f", fR) << "+-" << Form("%.1f", fDr) << ", ";
     119    cout << "x="   << str.Print("%5.1f", fX) << "+-" << Form("%.1f", fDx) << ", ";
     120    cout << "y="   << str.Print("%5.1f", fY) << "+-" << Form("%.1f", fDy) << ", ";
     121    cout << "r="   << str.Print("%5.1f", fR) << "+-" << Form("%.1f", fDr) << ", ";
    120122    cout << "phi=" << fPhi              << "+-" << fDphi << endl;
    121123}
  • trunk/MagicSoft/Cosy/caos/Ring.h

    r2278 r4107  
    3232
    3333public:
    34     Ring();
     34    Ring(Double_t x=0, Double_t y=0);
    3535
    3636    Double_t GetX() const   { return fX; }
Note: See TracChangeset for help on using the changeset viewer.