Changeset 4107 for trunk/MagicSoft/Cosy/caos/Ring.cc
- Timestamp:
- 05/20/04 05:40:59 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Ring.cc
r2278 r4107 7 7 8 8 #include "Rings.h" 9 #include "MString.h" 9 10 10 11 ClassImp(Ring); 11 12 12 Ring::Ring( ) :13 fX( 0), fY(0), fR(0), fPhi(0), fDx(-1), fDy(-1), fDr(-1), fDphi(-1)13 Ring::Ring(Double_t x, Double_t y) : 14 fX(x), fY(y), fR(0), fPhi(0), fDx(-1), fDy(-1), fDr(-1), fDphi(-1) 14 15 { 15 16 } … … 114 115 void Ring::Print(Option_t *o=NULL) const 115 116 { 117 MString str; 116 118 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) << ", "; 120 122 cout << "phi=" << fPhi << "+-" << fDphi << endl; 121 123 }
Note:
See TracChangeset
for help on using the changeset viewer.