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/Channel.h>
13 #include <revt/Station.h>
28 CentralConfig::GetInstance()->
GetTopBranch(
"RdChannelTimeSeriesTaperer");
29 topBranch.
GetChild(
"RelativeWindowWidthOnEachSide").
GetData(fWindowSizeOnEachSide);
32 string tmpstring = topBranch.
GetChild(
"WindowType").
Get<
string>();
33 if (tmpstring ==
"Hann") {
35 fWindow =
new HannWindow(fWindowSizeOnEachSide);
39 info <<
"Channel TimeSeries Windower is set up as " << tmpstring
40 <<
" window with a relative width of " << fWindowSizeOnEachSide
41 <<
" on each side.\n";
53 WARNING(
"No radio event found!");
57 REvent& rEvent =
event.GetREvent();
60 for (
auto& station : rEvent.StationsRange()) {
61 for (
auto& channel : station.ChannelsRange()) {
63 if (!channel.IsActive())
70 fWindow->SetTraceLength(timeSeries.
GetSize());
74 timeSeries[i] *= fWindow->GetWeightAtBin(i);
76 timeSeries[i] *= fWindow->GetRenormalizationFactor();
86 RdChannelTimeSeriesTaperer::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< double >::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.