source: trunk/MagicSoft/Cosy/caos/Leds.h@ 9488

Last change on this file since 9488 was 7787, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 859 bytes
Line 
1#ifndef COSY_Leds
2#define COSY_Leds
3
4#ifndef ROOT_TClonesArray
5#include <TClonesArray.h>
6#endif
7
8class Led;
9
10class Leds : public TClonesArray
11{
12public:
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 ClassDef(Leds, 1)
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.