Changeset 2278 for trunk/MagicSoft/Cosy/caos/Rings.cc
- Timestamp:
- 07/15/03 15:05:21 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/caos/Rings.cc
r1815 r2278 8 8 ClassImp(Rings); 9 9 10 void Rings::CalcCenters(const Leds &leds )10 void Rings::CalcCenters(const Leds &leds, Float_t min, Float_t max) 11 11 { 12 12 Clear(); 13 13 14 14 int nPoints = leds.GetEntries(); 15 16 if (nPoints<5) 17 return; 15 18 16 19 int n=0; … … 27 30 } 28 31 32 // 33 //filter and remove rings with too big or too small radius 34 // 35 if ((min>=0&&ring.GetR()<min) || (max>=0&&ring.GetR()>max)) 36 { 37 RemoveAt(n); 38 continue; 39 } 40 29 41 n++; 30 42 } … … 33 45 } 34 46 35 void Rings::CalcRings(Leds &leds )47 void Rings::CalcRings(Leds &leds, Float_t min, Float_t max) 36 48 { 37 CalcCenters(leds );49 CalcCenters(leds, min, max); 38 50 39 51 fCenter.InterpolCenters(*this); … … 51 63 { 52 64 cout << "Number of Rings: " << GetEntries() << endl; 53 TClonesArray::Print(); 54 cout << "Center: " << endl; 55 fCenter.Print(); 65 if (GetEntriesFast()>0) 66 { 67 TClonesArray::Print(); 68 cout << "Center: " << endl; 69 fCenter.Print(); 70 } 56 71 }
Note:
See TracChangeset
for help on using the changeset viewer.