Changeset 1815 for trunk/MagicSoft/Cosy/caos
- Timestamp:
- 03/11/03 18:28:04 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/caos
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Leds.h
r1802 r1815 23 23 //nst Led &GetLed(int i) const { return *(Led*)( (*this)[i] ); } 24 24 25 const Led &operator()(int i) const { return *(Led*) ((*(Leds*)this)[i]); }26 Led &operator()(int i) { return *(Led*) ((*(Leds*)this)[i]); }25 const Led &operator()(int i) const { return *(Led*)At(i); } 26 Led &operator()(int i) { return *(Led*)At(i); } 27 27 28 28 void Print(Option_t *o=NULL) const; -
trunk/MagicSoft/Cosy/caos/Ring.cc
r1802 r1815 12 12 bool Ring::CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k) 13 13 { 14 Float_t h1 = leds(i).GetY()- leds(j).GetY();14 Double_t h1 = leds(i).GetY()- leds(j).GetY(); 15 15 16 16 if (h1==0) … … 25 25 } 26 26 27 Float_t h2 = leds(j).GetY() - leds(k).GetY();27 Double_t h2 = leds(j).GetY() - leds(k).GetY(); 28 28 29 29 if (h2==0) … … 38 38 } 39 39 40 const Float_t w1 = leds(i).GetX() - leds(j).GetX();41 const Float_t w2 = leds(j).GetX() - leds(k).GetX();40 const Double_t w1 = leds(i).GetX() - leds(j).GetX(); 41 const Double_t w2 = leds(j).GetX() - leds(k).GetX(); 42 42 43 const Float_t m1 = -w1/h1;44 const Float_t m2 = -w2/h2;43 const Double_t m1 = -w1/h1; 44 const Double_t m2 = -w2/h2; 45 45 46 46 if (m2-m1==0) -
trunk/MagicSoft/Cosy/caos/Rings.cc
r1802 r1815 10 10 void Rings::CalcCenters(const Leds &leds) 11 11 { 12 Clear(); 13 12 14 int nPoints = leds.GetEntries(); 13 15 … … 28 30 } 29 31 30 Expand(n);32 // Expand(n); 31 33 } 32 34 -
trunk/MagicSoft/Cosy/caos/Rings.h
r1802 r1815 26 26 void Print(Option_t *o=NULL) const; 27 27 28 const Ring &operator()(int i) const { return *(Ring*) ((*(Rings*)this)[i]); }29 Ring &operator()(int i) { return *(Ring*) ((*(Rings*)this)[i]); }28 const Ring &operator()(int i) const { return *(Ring*)At(i); } 29 Ring &operator()(int i) { return *(Ring*)At(i); } 30 30 31 31 const Ring &GetCenter() const { return fCenter; }
Note:
See TracChangeset
for help on using the changeset viewer.