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

Last change on this file since 2023 was 1815, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 658 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, Double_t dy, Double_t mag);
22
23 //nst Led &GetLed(int i) const { return *(Led*)( (*this)[i] ); }
24
25 const Led &operator()(int i) const { return *(Led*)At(i); }
26 Led &operator()(int i) { return *(Led*)At(i); }
27
28 void Print(Option_t *o=NULL) const;
29
30 ClassDef(Leds, 1)
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.