Changeset 7297 for trunk/MagicSoft/Cosy/caos
- Timestamp:
- 08/22/05 10:46:31 (20 years ago)
- Location:
- trunk/MagicSoft/Cosy/caos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Ring.h
r4357 r7297 26 26 Double_t sqr(Double_t x) { return x*x; } 27 27 28 void Swap(int *m, int *n)28 void Swap(int &m, int &n) 29 29 { 30 int dummy = *m;31 *m = *n;32 *n = dummy;30 int dummy = m; 31 m = n; 32 n = dummy; 33 33 } 34 34 -
trunk/MagicSoft/Cosy/caos/Rings.cc
r4892 r7297 16 16 int nPoints = leds.GetEntries(); 17 17 18 if (nPoints<fMinNumberLeds) 18 // A minimum of at least 3 points is mandatory! 19 if (nPoints<fMinNumberLeds || nPoints<3) 19 20 return; 20 21 -
trunk/MagicSoft/Cosy/caos/Rings.h
r4865 r7297 21 21 22 22 public: 23 Rings() : TClonesArray("Ring", 1) 24 { 25 fMinNumberLeds=5; 26 } 23 Rings() : TClonesArray("Ring", 1) : fMinNumberLeds(5) { } 27 24 28 25 void SetMinNumberLeds(Short_t n) { fMinNumberLeds=n; }
Note:
See TracChangeset
for help on using the changeset viewer.