Changeset 4107 for trunk/MagicSoft/Cosy/caos
- Timestamp:
- 05/20/04 05:40:59 (20 years ago)
- Location:
- trunk/MagicSoft/Cosy/caos
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Led.cc
r2278 r4107 7 7 8 8 #include "Ring.h" 9 #include "MString.h" 9 10 10 11 ClassImp(Led); … … 17 18 void Led::Print(Option_t *o=NULL) const 18 19 { 20 MString str; 19 21 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 << ", "; 23 25 cout << "mag=" << fMag << endl; 24 26 } -
trunk/MagicSoft/Cosy/caos/Makefile
r1799 r4107 20 20 # @endcode 21 21 22 INCLUDES = -I. -I.. 22 INCLUDES = -I. -I.. -I../base 23 #base: MString 23 24 24 25 # @code -
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 } -
trunk/MagicSoft/Cosy/caos/Ring.h
r2278 r4107 32 32 33 33 public: 34 Ring( );34 Ring(Double_t x=0, Double_t y=0); 35 35 36 36 Double_t GetX() const { return fX; }
Note:
See TracChangeset
for help on using the changeset viewer.