Line | |
---|
1 | #include "Led.h"
|
---|
2 |
|
---|
3 | #include <iostream.h>
|
---|
4 | #include <TMath.h>
|
---|
5 |
|
---|
6 | #include "Ring.h"
|
---|
7 |
|
---|
8 | ClassImp(Led);
|
---|
9 |
|
---|
10 | void Led::CalcPhi(const Ring &ring)
|
---|
11 | {
|
---|
12 | fPhi = TMath::ATan2(fY-ring.GetY(), fX-ring.GetX())*180/TMath::Pi();
|
---|
13 | }
|
---|
14 |
|
---|
15 | void Led::Print(Option_t *o=NULL) const
|
---|
16 | {
|
---|
17 | cout << "Led: ";
|
---|
18 | cout << "x=" << fX << "+-" << fDx << ", ";
|
---|
19 | cout << "y=" << fY << "+-" << fDy << ", ";
|
---|
20 | cout << "phi=" << fPhi << "+-" << fDphi << ", ";
|
---|
21 | cout << "mag=" << fMag << endl;
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.