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

Last change on this file since 7310 was 4255, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 777 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
32 ClassDef(Leds, 1)
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.