FACT++  1.0
Ring.h
Go to the documentation of this file.
1 #ifndef COSY_Ring
2 #define COSY_Ring
3 
4 #include <vector>
5 
6 #include "Led.h"
7 
8 class Rings;
9 
10 class Ring
11 {
12 private:
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 
22 public:
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
Ring(double x=0, double y=0)
Definition: Ring.cc:11
Definition: Led.h:8
void InterpolCenters(const std::vector< Ring > &rings)
Definition: Ring.cc:66
double fMag
Definition: Ring.h:18
double fR
Definition: Ring.h:15
void SetXY(double x=0, double y=0)
Definition: Ring.h:25
void SetPhi(double phi)
Definition: Ring.h:26
double fPhi
Definition: Ring.h:16
Definition: Ring.h:10
double fX
Definition: Ring.h:13
double GetY() const
Definition: Ring.h:29
double sqr(double x)
Definition: Ring.h:20
double GetPhi() const
Definition: Ring.h:31
double GetR() const
Definition: Ring.h:30
double GetMag() const
Definition: Ring.h:33
double fY
Definition: Ring.h:14
bool CalcCenter(Led, Led, Led)
Definition: Ring.cc:16
double GetX() const
Definition: Ring.h:28