source: branches/FACT++_part_filenames/drive/Ring.h@ 19882

Last change on this file since 19882 was 18620, checked in by tbretz, 8 years ago
Removed references to root.
File size: 690 bytes
Line 
1#ifndef COSY_Ring
2#define COSY_Ring
3
4#include <vector>
5
6#include "Led.h"
7
8class Rings;
9
10class Ring
11{
12private:
13 double fX;
14 double fY;
15 double fR;
16 double fPhi;
17
18 double fMag;
19
20 double sqr(double x) { return x*x; }
21
22public:
23 Ring(double x=0, double y=0);
24
25 void SetXY(double x=0, double y=0) { fX=x; fY=y; }
26 void SetPhi(double phi) { fPhi=phi; }
27
28 double GetX() const { return fX; }
29 double GetY() const { return fY; }
30 double GetR() const { return fR; }
31 double GetPhi() const { return fPhi; }
32
33 double GetMag() const { return fMag; }
34
35 bool CalcCenter(Led, Led, Led);
36 void InterpolCenters(const std::vector<Ring> &rings);
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.