Line | |
---|
1 | #ifndef COSY_Leds |
---|
2 | #define COSY_Leds |
---|
3 | |
---|
4 | #ifndef ROOT_TClonesArray |
---|
5 | #include <TClonesArray.h> |
---|
6 | #endif |
---|
7 | |
---|
8 | class Led; |
---|
9 | |
---|
10 | class Leds : public TClonesArray |
---|
11 | { |
---|
12 | public: |
---|
13 | Leds() : TClonesArray("Led", 1) {} |
---|
14 | |
---|
15 | // |
---|
16 | // leds.ExpandCreate(5); |
---|
17 | // for (int i=1; i<5; i++) |
---|
18 | // leds.Set(i, x, y, dx, dy, mag); |
---|
19 | // |
---|
20 | |
---|
21 | void Set(Int_t i, Double_t x, Double_t y, Double_t dx=0, Double_t dy=0, Double_t mag=0); |
---|
22 | void Add(Double_t x, Double_t y, Double_t dx=0, Double_t dy=0, Double_t mag=0); |
---|
23 | void Add(TObject *o) { } |
---|
24 | |
---|
25 | //nst Led &GetLed(int i) const { return *(Led*)( (*this)[i] ); } |
---|
26 | |
---|
27 | const Led &operator()(int i) const { return *(Led*)At(i); } |
---|
28 | Led &operator()(int i) { return *(Led*)At(i); } |
---|
29 | |
---|
30 | void Print(Option_t *o=NULL) const; |
---|
31 | void Print(Option_t *o1, Option_t *o2) const { TClonesArray::Print(o1, o2); } |
---|
32 | |
---|
33 | void Print(const Option_t*, Int_t) const { } |
---|
34 | void Print(const Option_t*, const char*, Int_t) const { } |
---|
35 | void Print(const Option_t*, TPRegexp&, Int_t) const { } |
---|
36 | |
---|
37 | ClassDef(Leds, 1) |
---|
38 | }; |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.