Changeset 1815 for trunk/MagicSoft/Cosy
- Timestamp:
- 03/11/03 18:28:04 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r1810 r1815 1 1 -*-*- END -*-*- 2 2 2003/03/11 - Daniela Dorner, Thomas Bretz: 3 3 4 * .cosyrc_magic, .cosyrc_model: 5 - added 6 7 * caos/Leds.h, caos/Rings.h: 8 - changed from operator[] to At() 9 10 * caos/Ring.cc: 11 - changed Floats to Doubles 12 13 * caos/Rings.cc: 14 - replaced Expand by Clear 15 4 16 * base/MStar.h: 5 17 - added Compare … … 47 59 48 60 2003/03/02 - Daniela Dorner, Thomas Bretz (LaPalma): 61 62 * tpoint/tpointfit.C: 63 - added 64 65 * main/MBending.[h,cc]: 66 - adapted to Magic bending model 67 68 * candrv/nodedrv.cc: 69 - some changes to the output 70 71 * candrv/vmodican.cc: 72 - minor changes 73 74 * devdrv/macs.[h,cc]: 75 - implemented 76 - removed guarding 77 - removed motor off 78 79 * devdrv/shaftencoder.cc: 80 - removed Gaurding 81 82 * gui/MGEmbeddedCanvas.[h,cc]: 83 - added overloads for Resize 84 85 * gui/MGSkyPosition.[h,cc]: 86 - added SetDotRange 87 88 * gui/MGStarguider.cc: 89 - write interpolated pictures 90 91 * videodev/PngReader.cc: 92 - removed unused variable 93 94 * videodev/Writer.cc: 95 - added warning if file couldn't be opened 49 96 50 97 * videodev/CaosFilter.[h,cc], videodev/PngReader.[h,cc]: -
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.