source: trunk/MagicSoft/Cosy/caos/Leds.cc@ 4076

Last change on this file since 4076 was 2278, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 473 bytes
Line 
1#include "Leds.h"
2
3#include <iostream.h>
4
5#include "Led.h"
6
7ClassImp(Leds);
8
9void Leds::Set(Int_t i, Double_t x, Double_t y, Double_t dx, Double_t dy, Double_t mag)
10{
11 new ((*this)[i]) Led(x, y, dx, dy, mag);
12}
13
14void Leds::Add(Double_t x, Double_t y, Double_t dx, Double_t dy, Double_t mag)
15{
16 Set(GetEntriesFast(), x, y, dx, dy, mag);
17}
18
19void Leds::Print(Option_t *o=NULL) const
20{
21 cout << "Number of Leds: " << GetEntries() << endl;
22 TClonesArray::Print();
23}
Note: See TracBrowser for help on using the repository browser.