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

Last change on this file since 1920 was 1802, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 819 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
35 Double_t GetX() const { return fX; }
36 Double_t GetY() const { return fY; }
37 Double_t GetR() const { return fR; }
38 Double_t GetPhi() const { return fPhi; }
39
40 bool CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k);
41 void InterpolCenters(const Rings &rings);
42
43 void Print(Option_t *o=NULL) const;
44
45 ClassDef(Ring, 1)
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.