source: trunk/MagicSoft/Cosy/caos/Ring.h@ 4119

Last change on this file since 4119 was 4107, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 857 bytes
Line 
1#ifndef COSY_Ring
2#define COSY_Ring
3
4#ifndef ROOT_TObject
5#include <TObject.h>
6#endif
7
8class Leds;
9class Rings;
10
11class Ring : public TObject
12{
13private:
14 Double_t fX;
15 Double_t fY;
16 Double_t fR;
17 Double_t fPhi;
18
19 Double_t fDx;
20 Double_t fDy;
21 Double_t fDr;
22 Double_t fDphi;
23
24 Double_t sqr(Double_t x) { return x*x; }
25
26 void Swap(int *m, int *n)
27 {
28 int dummy = *m;
29 *m = *n;
30 *n = dummy;
31 }
32
33public:
34 Ring(Double_t x=0, Double_t y=0);
35
36 Double_t GetX() const { return fX; }
37 Double_t GetY() const { return fY; }
38 Double_t GetR() const { return fR; }
39 Double_t GetPhi() const { return fPhi; }
40
41 bool CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k);
42 void InterpolCenters(const Rings &rings);
43
44 void Print(Option_t *o=NULL) const;
45
46 ClassDef(Ring, 1)
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.