-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cmbdata.h
62 lines (47 loc) · 1.61 KB
/
Cmbdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef CMBDATA_H_
#define CMBDATA_H_
#include <vector>
#include <string>
#include <complex>
#define dcomp std::complex <double>
#include "Coordinate.h"
struct CmbDataElement
{
Coordinate coordinate; // the coordinate of the point
dcomp temperature; // the temperature (should be real)
double weight; // the surfaceweight (for not equal area tilings of the sphere)
CmbDataElement * triangle[3]; // three other elements to create triangle with
};
#define CmbDataVector std::vector<CmbDataElement>
class Cmbdata : public CmbDataVector
{
/**
* @class CmbData
* @brief A container for the Cosmic Microwave Background data
*/
public:
Cmbdata();
virtual ~Cmbdata();
// get/set resolution
int resolution(); // gets resolution
int resolution(int pResolution); // sets resolution
// get the maximum/minimum cmb value
double maximum();
double minimum();
// checks whether the CMB is real-valued
double reality();
void print(std::ostream *ost = &std::cout);
private:
int mResolution; // the resolution parameter
double mMinimum; // minimum value of the cmb (abs)
double mMaximum; // maximum value of the cmb (abs)
double mAverageTemp; // average temp
double mStandardDevTemp; // standard deviation
void clear();
void fillCoords(); // fills the coordinates
void fillMinMax(); // fills the minimum and maximum values
// implementation specific variables
int mResAzimuth; // azimuthal resolution
int mResZenith; // zenithal resolution
};
#endif /*CMBDATA_H_*/