Skip to content
Snippets Groups Projects
Commit 1e2fa189 authored by Bram Veenboer's avatar Bram Veenboer
Browse files

Rename m_element_response to itsElementResponse

parent 36ddd985
No related branches found
No related tags found
No related merge requests found
......@@ -41,12 +41,12 @@ matrix22c_t DualDipoleAntenna::response(real_t freq,
vector2r_t thetaphi = cart2thetaphi(direction);
thetaphi[1] -= 5.0 * Constants::pi_4;
matrix22c_t response;
m_element_response->element_response(freq, thetaphi[0], thetaphi[1],
itsElementResponse->element_response(freq, thetaphi[0], thetaphi[1],
reinterpret_cast<std::complex<double> (&)[2][2]>(response));
return response;
}
std::unique_ptr<ElementResponse> DualDipoleAntenna::m_element_response = nullptr;
std::unique_ptr<ElementResponse> DualDipoleAntenna::itsElementResponse = nullptr;
} //# namespace StationResponse
} //# namespace LOFAR
......@@ -52,7 +52,7 @@ public:
virtual matrix22c_t response(real_t freq, const vector3r_t &direction)
const final override;
static std::unique_ptr<ElementResponse> m_element_response;
static std::unique_ptr<ElementResponse> itsElementResponse;
};
// @}
......
......@@ -37,11 +37,11 @@ Station::Station(const string &name, const vector3r_t &position)
itsPosition(position),
itsPhaseReference(position)
{
if (DualDipoleAntenna::m_element_response == nullptr) {
DualDipoleAntenna::m_element_response.reset(new HamakerElementResponseLBA);
if (DualDipoleAntenna::itsElementResponse == nullptr) {
DualDipoleAntenna::itsElementResponse.reset(new HamakerElementResponseLBA);
}
if (TileAntenna::m_element_response == nullptr) {
TileAntenna::m_element_response.reset(new HamakerElementResponseHBA);
if (TileAntenna::itsElementResponse == nullptr) {
TileAntenna::itsElementResponse.reset(new HamakerElementResponseHBA);
}
}
......
......@@ -88,12 +88,12 @@ matrix22c_t TileAntenna::elementResponse(real_t freq,
thetaphi[1] -= 5.0 * Constants::pi_4;
matrix22c_t response;
m_element_response->element_response(freq, thetaphi[0], thetaphi[1],
itsElementResponse->element_response(freq, thetaphi[0], thetaphi[1],
reinterpret_cast<std::complex<double> (&)[2][2]>(response));
return response;
}
std::unique_ptr<ElementResponse> TileAntenna::m_element_response = nullptr;
std::unique_ptr<ElementResponse> TileAntenna::itsElementResponse = nullptr;
} //# namespace StationResponse
} //# namespace LOFAR
......@@ -63,7 +63,7 @@ public:
virtual matrix22c_t elementResponse(real_t freq,
const vector3r_t &direction) const final override;
static std::unique_ptr<ElementResponse> m_element_response;
static std::unique_ptr<ElementResponse> itsElementResponse;
private:
TileConfig itsConfig;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment