| Line | |
|---|
| 1 | #include "Led.h"
|
|---|
| 2 |
|
|---|
| 3 | #include <math.h>
|
|---|
| 4 |
|
|---|
| 5 | #include "Ring.h"
|
|---|
| 6 |
|
|---|
| 7 | using namespace std;
|
|---|
| 8 |
|
|---|
| 9 | double Led::CalcPhi(const Ring &ring)
|
|---|
| 10 | {
|
|---|
| 11 | return atan2(fY-ring.GetY(), fX-ring.GetX())*180/M_PI;
|
|---|
| 12 | }
|
|---|
| 13 |
|
|---|
| 14 | /*
|
|---|
| 15 | void Led::Print(Option_t *o) const
|
|---|
| 16 | {
|
|---|
| 17 | cout << "Led: ";
|
|---|
| 18 | //cout << "x=" << MString::Format("%5.1f", fX) << "+-" << fDx << ", ";
|
|---|
| 19 | //cout << "y=" << MString::Format("%5.1f", fY) << "+-" << fDy << ", ";
|
|---|
| 20 | //cout << "phi=" << MString::Format("%6.1f", fPhi) << "+-" << fDphi << ", ";
|
|---|
| 21 | cout << "mag=" << fMag << endl;
|
|---|
| 22 | }
|
|---|
| 23 | */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.