2 #include <utl/ErrorLogger.h>
5 #include <revt/REvent.h>
6 #include <revt/Header.h>
7 #include <revt/Station.h>
8 #include <revt/Channel.h>
10 #include <utl/Trace.h>
11 #include <utl/TraceAlgorithm.h>
12 #include <utl/ErrorLogger.h>
13 #include <utl/Reader.h>
14 #include <utl/config.h>
15 #include <utl/AugerUnits.h>
16 #include <fwk/CentralConfig.h>
31 fNumberOfTracestoPrepare(0),
38 RdChannelNoiseASCIIExporter::~RdChannelNoiseASCIIExporter()
52 INFO(
"RdChannelNoiseASCIIExporter::Init()");
53 Branch topBranch = CentralConfig::GetInstance()->
GetTopBranch(
"RdChannelNoiseASCIIExporter");
58 cout <<
" MM DEBUG " <<
fpath <<
" " << *(--
fpath.end()) << endl;
72 INFO(
"RdChannelNoiseASCIIExporter::Run()");
77 ofstream outf(fname.str().c_str());
83 WARNING(
"RdChannelNoiseASCIIExporter::No radio event found!");
86 REvent& rEvent =
event.GetREvent();
94 outf << station.
GetId() <<
" " << channel.
GetId();
97 channel.GetConstChannelTimeSeries();
99 for (
unsigned int i = 0; i < timeSeries.
GetSize(); ++i)
100 outf <<
" " << timeSeries[i];
109 INFO(
"We've done enough for today");
117 RdChannelNoiseASCIIExporter::Finish()
122 INFO(
"RdChannelNoiseASCIIExporter::Finish()");
Branch GetTopBranch() const
int GetId() const
Return Id of the Channel.
Report success to RunController.
Interface class to access to the Radio part of an event.
Skip remaining modules in the current loop and continue with next iteration of the loop...
double GetBinning() const
size of one slot
#define INFO(message)
Macro for logging informational messages.
StationIterator StationsEnd()
StationIterator StationsBegin()
std::string AddZero(int val)
void Init()
Initialise the registry.
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
ChannelIterator ChannelsBegin()
begin Channel iterator for read/write
boost::filter_iterator< StationFilter, AllStationIterator > StationIterator
Iterator over all (non-exculded) stations.
ChannelIterator ChannelsEnd()
end Channel iterator for read/write
Class representing a document branch.
Break current loop. It works for nested loops too!
class to hold data at the radio Station level.
constexpr double nanosecond
#define WARNING(message)
Macro for logging warning messages.
int fNumberOfTracestoPrepare
void GetData(bool &b) const
Overloads of the GetData member template function.
int GetId() const
Get the station Id.
ResultFlag
Flag returned by module methods to the RunController.
Class that holds the data associated to an individual radio channel.
int fNumber
Writes out a spectrum in an ASCII file.