1 #ifndef _RdChannelNoisePowerAnalyser_h_
2 #define _RdChannelNoisePowerAnalyser_h_
5 #include <revt/Station.h>
6 #include <utl/UTCDateTime.h>
8 #include <fwk/VModule.h>
11 #include "TProfile2D.h"
14 #include "THnSparse.h"
43 typedef boost::tuple<int, int, int>
Key;
80 {
return (!(year%4) && (year%100)) || !(year%400); }
const double fLocalSiderealDay
double fFrequencyBinWidth
bool fUnbinnedASCIIOutput
long unsigned int numberOfTraces
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
double GPSSecToLSTHourAuger(const unsigned long gps)
const int fMaximumChannelId
const int fNumberOfBinsPerDay
std::map< KeyYearMonth, TProfile2D * > fDynamicPowerSpectrum
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
class to hold data at the radio Station level.
static int NumberOfDaysInMonth(const int year, const int month)
REGISTER_MODULE("RdChannelNoisePowerAnalyser", RdChannelNoisePowerAnalyser)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
boost::tuple< int, int, int > Key
std::string fOutputFilename
ResultFlag
Flag returned by module methods to the RunController.
std::vector< int > GPSsecods
boost::tuple< int, int, int, int > KeyYearMonth
double FindPulse(revt::Station &station)
Module which determines the frequency and amplitude of noise pulses on channel level.
static bool IsLeapYear(const int year)
double totalSignalSerachWindow
const int fMinimumChannelId
RdChannelNoisePowerAnalyser()
std::vector< double > SNRs
std::vector< double > fFrequencies
std::map< Key, THnSparseF * > fHistogramPowerMap
long unsigned int numberOfPulses
std::map< Key, THnSparseF * > fHistogramPowerMapLinear
const utl::UTCDateTime fReferenceTime