| Rev | Line | |
|---|
| [2385] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
|---|
| 2 |
|
|---|
| 3 | // ArchTOIPipe (C) CEA/DAPNIA/SPP IN2P3/LAL
|
|---|
| 4 | // Eric Aubourg
|
|---|
| 5 | // Christophe Magneville
|
|---|
| 6 | // Reza Ansari
|
|---|
| 7 | // $Id: ring.h,v 1.1 2003-05-19 23:31:29 aubourg Exp $
|
|---|
| 8 |
|
|---|
| 9 | #ifndef RING_H
|
|---|
| 10 | #define RING_H
|
|---|
| 11 |
|
|---|
| 12 | #include "config.h"
|
|---|
| 13 | using namespace std;
|
|---|
| 14 |
|
|---|
| 15 | #ifdef WITH_SOPHYA
|
|---|
| 16 | #include "array.h"
|
|---|
| 17 | #include "pexceptions.h"
|
|---|
| 18 | using namespace SOPHYA;
|
|---|
| 19 | #else
|
|---|
| 20 | #include "apexceptions.h"
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | class RingProcessor;
|
|---|
| 24 | class RingPhase;
|
|---|
| 25 |
|
|---|
| 26 | class Ring {
|
|---|
| 27 | public:
|
|---|
| 28 | Ring(int nsamples, double theta, double phi, double aperture, RingPhase* phinfo = NULL);
|
|---|
| 29 | virtual ~Ring();
|
|---|
| 30 |
|
|---|
| 31 | void setData(double* data);
|
|---|
| 32 | void setData(int i, double data);
|
|---|
| 33 |
|
|---|
| 34 | const double* getData() const;
|
|---|
| 35 | double getData(int i) const;
|
|---|
| 36 |
|
|---|
| 37 | int getNSamples() const {return n;}
|
|---|
| 38 | double getTheta() const {return theta;}
|
|---|
| 39 | double getPhi() const {return phi;}
|
|---|
| 40 | double getAperture() const {return aperture;}
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | protected:
|
|---|
| 44 | int n;
|
|---|
| 45 | double theta;
|
|---|
| 46 | double phi;
|
|---|
| 47 | double aperture;
|
|---|
| 48 | RingPhase* ringPhase;
|
|---|
| 49 | bool ownRingPhase;
|
|---|
| 50 | double* data;
|
|---|
| 51 | };
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | #endif
|
|---|
| 55 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.