Ignore:
Timestamp:
03/11/03 18:28:04 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/caos
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/caos/Leds.h

    r1802 r1815  
    2323    //nst Led &GetLed(int i) const { return *(Led*)( (*this)[i] ); }
    2424
    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); }
    2727
    2828    void Print(Option_t *o=NULL) const;
  • trunk/MagicSoft/Cosy/caos/Ring.cc

    r1802 r1815  
    1212bool Ring::CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k)
    1313{
    14     Float_t h1 = leds(i).GetY()- leds(j).GetY();
     14    Double_t h1 = leds(i).GetY()- leds(j).GetY();
    1515
    1616    if (h1==0)
     
    2525    }
    2626
    27     Float_t h2 = leds(j).GetY() - leds(k).GetY();
     27    Double_t h2 = leds(j).GetY() - leds(k).GetY();
    2828
    2929    if (h2==0)
     
    3838    }
    3939
    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();
    4242
    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;
    4545
    4646    if (m2-m1==0)
  • trunk/MagicSoft/Cosy/caos/Rings.cc

    r1802 r1815  
    1010void Rings::CalcCenters(const Leds &leds)
    1111{
     12    Clear();
     13
    1214    int nPoints = leds.GetEntries();
    1315
     
    2830            }
    2931
    30     Expand(n);
     32    //    Expand(n);
    3133}
    3234
  • trunk/MagicSoft/Cosy/caos/Rings.h

    r1802 r1815  
    2626    void Print(Option_t *o=NULL) const;
    2727
    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); }
    3030
    3131    const Ring &GetCenter() const { return fCenter; }
Note: See TracChangeset for help on using the changeset viewer.