Ignore:
Timestamp:
08/22/05 10:46:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/caos
Files:
3 edited

Legend:

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

    r4357 r7297  
    2626    Double_t sqr(Double_t x) { return x*x; }
    2727
    28     void Swap(int *m, int *n)
     28    void Swap(int &m, int &n)
    2929    {
    30         int dummy = *m;
    31         *m = *n;
    32         *n = dummy;
     30        int dummy = m;
     31        m = n;
     32        n = dummy;
    3333    }
    3434
  • trunk/MagicSoft/Cosy/caos/Rings.cc

    r4892 r7297  
    1616    int nPoints = leds.GetEntries();
    1717
    18     if (nPoints<fMinNumberLeds)
     18    // A minimum of at least 3 points is mandatory!
     19    if (nPoints<fMinNumberLeds || nPoints<3)
    1920        return;
    2021
  • trunk/MagicSoft/Cosy/caos/Rings.h

    r4865 r7297  
    2121
    2222public:
    23     Rings() : TClonesArray("Ring", 1)
    24         {
    25             fMinNumberLeds=5;
    26         }
     23    Rings() : TClonesArray("Ring", 1) : fMinNumberLeds(5) { }
    2724
    2825    void SetMinNumberLeds(Short_t n) { fMinNumberLeds=n; }
Note: See TracChangeset for help on using the changeset viewer.