source: trunk/Cosy/caos/Leds.cc@ 18481

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