Ignore:
Timestamp:
05/20/04 05:40:59 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.