| Line | |
|---|
| 1 | #include "Leds.h"
|
|---|
| 2 |
|
|---|
| 3 | #include <iostream.h>
|
|---|
| 4 |
|
|---|
| 5 | #include "Led.h"
|
|---|
| 6 |
|
|---|
| 7 | ClassImp(Leds);
|
|---|
| 8 |
|
|---|
| 9 | void 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 |
|
|---|
| 14 | void 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 |
|
|---|
| 19 | void 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.