| Line | |
|---|
| 1 | #ifndef COSY_Rings
|
|---|
| 2 | #define COSY_Rings
|
|---|
| 3 |
|
|---|
| 4 | #ifndef ROOT_TClonesArray
|
|---|
| 5 | #include <TClonesArray.h>
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef COSY_Ring
|
|---|
| 9 | #include "Ring.h"
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | class Leds;
|
|---|
| 13 |
|
|---|
| 14 | class Rings : public TClonesArray
|
|---|
| 15 | {
|
|---|
| 16 | private:
|
|---|
| 17 | Ring fCenter;
|
|---|
| 18 |
|
|---|
| 19 | void CalcCenters(const Leds &leds, Float_t min, Float_t max);
|
|---|
| 20 |
|
|---|
| 21 | public:
|
|---|
| 22 | Rings() : TClonesArray("Ring", 1) {}
|
|---|
| 23 |
|
|---|
| 24 | void CalcRings(Leds &leds, Float_t min=-1, Float_t max=-1);
|
|---|
| 25 |
|
|---|
| 26 | void Print(Option_t *o=NULL) const;
|
|---|
| 27 |
|
|---|
| 28 | const Ring &operator()(int i) const { return *(Ring*)At(i); }
|
|---|
| 29 | Ring &operator()(int i) { return *(Ring*)At(i); }
|
|---|
| 30 |
|
|---|
| 31 | const Ring &GetCenter() const { return fCenter; }
|
|---|
| 32 |
|
|---|
| 33 | ClassDef(Rings, 1)
|
|---|
| 34 | };
|
|---|
| 35 |
|
|---|
| 36 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.