#include "Rings.h" #include #include "Led.h" #include "Leds.h" ClassImp(Rings); using namespace std; void Rings::CalcCenters(const Leds &leds, Float_t min, Float_t max) { Clear(); int nPoints = leds.GetEntries(); // A minimum of at least 3 points is mandatory! if (nPoints=0&&ring.GetR()=0&&ring.GetR()>max)) { RemoveAt(n); continue; } n++; } } Int_t Rings::CalcRings(Leds &leds, Float_t min, Float_t max) { CalcCenters(leds, min, max); fCenter.InterpolCenters(*this); int n = leds.GetEntries(); for (int j=0; j0) { TClonesArray::Print(); cout << "Center: " << endl; fCenter.Print(); } }