Changeset 7296 for trunk/MagicSoft/Cosy/caos/Ring.cc
- Timestamp:
- 08/22/05 10:35:02 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Ring.cc
r4892 r7296 20 20 bool Ring::CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k) 21 21 { 22 if (leds.At(i)==NULL) 23 { 24 cout << "Ring::CalcCenter: Led i=" << i << " is NULL." << endl; 25 return kFALSE; 26 } 27 if (leds.At(j)==NULL) 28 { 29 cout << "Ring::CalcCenter: Led j=" << j << " is NULL." << endl; 30 return kFALSE; 31 } 32 if (leds.At(k)==NULL) 33 { 34 cout << "Ring::CalcCenter: Led k=" << k << " is NULL." << endl; 35 return kFALSE; 36 } 37 22 38 Double_t h1 = leds(i).GetY()- leds(j).GetY(); 23 39 24 40 if (h1==0) 25 41 { 26 Swap( &j, &k);42 Swap(j, k); 27 43 h1 = leds(i).GetY()- leds(j).GetY(); 28 44 if (h1==0) 29 45 { 30 cout << " h1==0" <<endl;46 cout << "Ring::CalcCenter: h1==0" <<endl; 31 47 return kFALSE; 32 48 } … … 37 53 if (h2==0) 38 54 { 39 Swap( &i, &j);55 Swap(i, j); 40 56 h2 = leds(j).GetY() - leds(k).GetY(); 41 57 if (h2==0) 42 58 { 43 cout << " h2==0" << endl;59 cout << "Ring::CalcCenter: h2==0" << endl; 44 60 return kFALSE; 45 61 } … … 54 70 if (m2-m1==0) 55 71 { 56 cout << " All three points in a row! (m2-m1==0)" << endl;72 cout << "Ring::CalcCenter: All three points in a row! (m2-m1==0)" << endl; 57 73 return kFALSE; 58 74 }
Note:
See TracChangeset
for help on using the changeset viewer.