3 #include <fwk/CentralConfig.h>
5 #include <utl/config.h>
6 #include <utl/ErrorLogger.h>
7 #include <utl/Reader.h>
8 #include <utl/HannWindow.h>
10 #include <evt/Event.h>
11 #include <revt/REvent.h>
12 #include <revt/Station.h>
28 CentralConfig::GetInstance()->
GetTopBranch(
"RdStationTimeSeriesTaperer");
31 topBranch.
GetChild(
"RelativeWindowWidthOnEachSide").
GetData(fWindowSizeOnEachSide);
34 string tmpstring = topBranch.
GetChild(
"WindowType").
Get<
string>();
35 if (tmpstring ==
"Hann") {
37 fWindow =
new HannWindow(fWindowSizeOnEachSide);
45 info <<
"Station TimeSeries Windower is set up as " << tmpstring
46 <<
" window with a relative width of " << fWindowSizeOnEachSide
59 WARNING(
"No radio event found!");
63 REvent& rEvent =
event.GetREvent();
64 for (
auto& station : rEvent.StationsRange()) {
69 fWindow->SetTraceLength(timeSeries.
GetSize());
73 timeSeries[i] *= fWindow->GetWeightAtBin(i);
75 timeSeries[i] *= fWindow->GetRenormalizationFactor();
84 RdStationTimeSeriesTaperer::Finish()
Branch GetTopBranch() const
Abstract base class for analytic windows.
Interface class to access to the Radio part of an event.
#define INFO(message)
Macro for logging informational messages.
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Class representing a document branch.
std::vector< T >::size_type SizeType
#define WARNING(message)
Macro for logging warning messages.
void GetData(bool &b) const
Overloads of the GetData member template function.
ResultFlag
Flag returned by module methods to the RunController.
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.