diff options
author | Thomas White <taw@physics.org> | 2010-02-04 19:04:20 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-04 19:04:20 +0100 |
commit | a162a01f988a86f38d10a1b507d524637670566e (patch) | |
tree | 401f12e5878d8ca150b51bca5835cae627eabc6e /src/detector.h | |
parent | c85a8a308ec7ab50545255530da6a31b841be3ed (diff) |
Improved framework for detector geometry
Diffstat (limited to 'src/detector.h')
-rw-r--r-- | src/detector.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/detector.h b/src/detector.h index 09e4ce3b..30c2f44c 100644 --- a/src/detector.h +++ b/src/detector.h @@ -16,13 +16,25 @@ #ifndef DETECTOR_H #define DETECTOR_H +struct image; + #include "image.h" -/* Position of central beam for upper and lower CCDs */ -#define UPPER_CX (491.9) -#define UPPER_CY (440.7) -#define LOWER_CX (492.0) -#define LOWER_CY (779.7) +struct panel +{ + int min_x; /* Smallest x value considered to be in this panel */ + int max_x; /* Largest x value considered to be in this panel */ + int min_y; /* ... and so on */ + int max_y; + float cx; /* Location of centre */ + float cy; +}; + +struct detector +{ + struct panel *panels; + int n_panels; +}; extern void record_image(struct image *image, int do_water, int do_poisson, int do_bloom); |