source: trunk/MagicSoft/Cosy/caos/Led.cc@ 1882

Last change on this file since 1882 was 1802, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 469 bytes
Line 
1#include "Led.h"
2
3#include <iostream.h>
4#include <TMath.h>
5
6#include "Ring.h"
7
8ClassImp(Led);
9
10void Led::CalcPhi(const Ring &ring)
11{
12 fPhi = TMath::ATan2(fY-ring.GetY(), fX-ring.GetX())*180/TMath::Pi();
13}
14
15void 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.