source: tags/release-1.1.12/src/FitsIO/Beam.hh

Last change on this file was 788, checked in by MatthewWhiting, 13 years ago

First part of dealing with #110. Have defined a Beam & DuchampBeam? class and use these to hold the beam information. FitsHeader? holds the one that we work with, and copies it to Param for use with outputs. Parameters will be taken into account if no header information is present. Still need to add code to deal with the case of neither being present (the beam being EMPTY) and how that affects the integrated flux calculations.

File size: 665 bytes
Line 
1#ifndef DUCHAMP_BEAM_HH
2#define DUCHAMP_BEAM_HH
3
4#include <iostream>
5
6namespace duchamp
7{
8
9  class Beam
10  {
11  public:
12    Beam();
13    Beam(float maj, float min, float pa);
14    virtual ~Beam(){};
15    Beam(const Beam &b);
16    Beam& operator=(const Beam &b);
17
18    virtual void define(float maj, float min, float pa);
19    void setFWHM(float fwhm);
20    void setArea(float area);
21
22    float maj(){return itsMaj;};
23    float min(){return itsMin;};
24    float pa(){return itsPA;};
25    float area(){return itsArea;};
26
27  protected:
28    float itsMaj;
29    float itsMin;
30    float itsPA;
31    float itsArea;
32
33    void calculateArea();
34    void areaToFWHM();
35
36  };
37
38
39
40
41
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.