3 #include <utl/ErrorLogger.h>
6 #include <revt/REvent.h>
7 #include <revt/Header.h>
8 #include <revt/Station.h>
9 #include <revt/StationRecData.h>
11 #include <det/Detector.h>
12 #include <rdet/RDetector.h>
14 #include <utl/Trace.h>
15 #include <utl/TraceAlgorithm.h>
16 #include <utl/ErrorLogger.h>
17 #include <utl/Reader.h>
18 #include <utl/config.h>
19 #include <utl/AugerUnits.h>
21 #include <utl/PhysicalConstants.h>
23 #include <fwk/CoordinateSystemRegistry.h>
35 RdWaveModel::RdWaveModel() { }
36 RdWaveModel::~RdWaveModel() { }
43 this->origin = origin;
48 cerr <<
"Abstract method RdWaveModel::delay not meant to be called\n";
52 this -> skyPos = skyPos;
55 return delay (skyPos, antennaPos);
63 void RdSphericalWaveModel::setSkyPos(
utl::Point skyPos) {
64 this -> skyPos = skyPos;
65 skyVecNorm =
norm(skyPos - origin);
91 return 1.0 / skyVec.
GetR(cs);
95 #ifdef RDDELAYS_AS_MODULE
99 INFO(
"RdWaveModel::Init()");
106 INFO(
"RdWaveModel::Run()");
110 WARNING(
"RdWaveModel::No radio event found!");
111 return eContinueLoop;
114 REvent& rEvent =
event.GetREvent();
116 stringstream fMessage;
117 fMessage <<
"Radio event found with "
120 INFO(fMessage.str());
124 fMessage <<
"Found header with ID "
126 <<
" and timestamp: "
127 << rHeader.GetTime();
128 INFO(fMessage.str());
130 setOrigin (revt::signalBarycenter (rEvent));
136 RdWaveModel::Finish() {
137 INFO(
"RdWaveModel::Finish()");
Module for fitting time shifts of station traces which give maximal beam signal.
Interface class to access to the Radio part of an event.
double GetR(const CoordinateSystemPtr &coordinateSystem) const
radius r in spherical coordinates coordinates (distance to origin)
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
Header & GetHeader()
access to REvent Header
int GetNumberOfStations() const
Get total number of stations in the event.
#define WARNING(message)
Macro for logging warning messages.
constexpr double kSpeedOfLight
ResultFlag
Flag returned by module methods to the RunController.