-
Notifications
You must be signed in to change notification settings - Fork 3
/
mwainput.h
46 lines (40 loc) · 1.14 KB
/
mwainput.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
#ifndef MWA_INPUT_H
#define MWA_INPUT_H
#include <cstring>
struct MWAInput
{
MWAInput() :
inputIndex(0), antennaIndex(0), cableLenDelta(0.0), polarizationIndex(0), isFlagged(false), slot(0)
{
for(size_t pfbBank=0; pfbBank!=24; ++pfbBank)
pfbGains[pfbBank] = 1.0;
}
MWAInput(const MWAInput& source) :
inputIndex(source.inputIndex), antennaIndex(source.antennaIndex), cableLenDelta(source.cableLenDelta),
polarizationIndex(source.polarizationIndex), isFlagged(source.isFlagged), slot(source.slot)
{
for(size_t pfbBank=0; pfbBank!=24; ++pfbBank)
pfbGains[pfbBank] = source.pfbGains[pfbBank];
}
MWAInput& operator=(const MWAInput& source)
{
inputIndex = source.inputIndex;
antennaIndex = source.antennaIndex;
cableLenDelta = source.cableLenDelta;
polarizationIndex = source.polarizationIndex;
isFlagged = source.isFlagged;
slot = source.slot;
for(size_t pfbBank=0; pfbBank!=24; ++pfbBank)
pfbGains[pfbBank] = source.pfbGains[pfbBank];
return *this;
}
size_t inputIndex;
size_t antennaIndex;
double cableLenDelta;
unsigned polarizationIndex;
bool isFlagged;
size_t slot;
double pfbGains[24];
private:
};
#endif