source: trunk/FACT++/drive/Led.cc@ 18949

Last change on this file since 18949 was 18619, checked in by tbretz, 8 years ago
Removed references to root.
File size: 525 bytes
Line 
1#include "Led.h"
2
3#include <math.h>
4
5#include "Ring.h"
6
7using namespace std;
8
9double Led::CalcPhi(const Ring &ring)
10{
11 return atan2(fY-ring.GetY(), fX-ring.GetX())*180/M_PI;
12}
13
14/*
15void 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.