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 |
|
---|
24 | //nst Led &GetLed(int i) const { return *(Led*)( (*this)[i] ); }
|
---|
25 |
|
---|
26 | const Led &operator()(int i) const { return *(Led*)At(i); }
|
---|
27 | Led &operator()(int i) { return *(Led*)At(i); }
|
---|
28 |
|
---|
29 | void Print(Option_t *o=NULL) const;
|
---|
30 |
|
---|
31 | ClassDef(Leds, 1)
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.