FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
*/
Led::CalcPhi
double CalcPhi(const Ring &ring)
Definition:
Led.cc:9
Led.h
std
STL namespace.
Ring.h
Ring
Definition:
Ring.h:10
Ring::GetY
double GetY() const
Definition:
Ring.h:29
Ring::GetX
double GetX() const
Definition:
Ring.h:28
drive
Led.cc
Generated on Sun Sep 18 2016 20:50:18 for FACT++ by
1.8.11