FACT++  1.0
Led.cc
Go to the documentation of this file.
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 */
double CalcPhi(const Ring &ring)
Definition: Led.cc:9
STL namespace.
Definition: Ring.h:10
double GetY() const
Definition: Ring.h:29
double GetX() const
Definition: Ring.h:28