1 #ifndef _RdChannelBeaconTimingCalibrator_RdChannelBeaconTimingCalibrator_h_
2 #define _RdChannelBeaconTimingCalibrator_RdChannelBeaconTimingCalibrator_h_
4 #include <fwk/VModule.h>
5 #include <utl/TimeStamp.h>
20 class FFTDataContainerAlgorithm;
119 std::vector<std::map<int, double> >
getReferencePhases(std::vector<double> beaconFrequencies);
126 const std::map<int,double>&,
127 const std::map<int,double>&,
std::string fDebugOutputFile
Name of file for debugging output.
std::vector< std::map< int, double > > getReferencePhases(std::vector< double > beaconFrequencies)
Get reference phases from database (as preliminary version from text file)
std::vector< double > fBeaconPosition
Postion of the beacon UTM(WGS84)
int fReferenceChannel
Reference channel (ususally 1 = NS, high gain)
std::map< int, int > fBeaconCorrectionSuccesses
Number of events for which beacon correction was successful for a paticular station.
double fMaxTimeDifference
Maximum time difference to correct for.
std::vector< double > fBeaconFrequencies
Vector of beacon frequencies, if specified in XML file.
REGISTER_MODULE("RdChannelBeaconTimingCalibrator", RdChannelBeaconTimingCalibrator)
Interface class to access to the Radio part of an event.
double fEpsilon
This defines the epsilon neigborhood in which the shifts of one channel are trusted.
unsigned int fMinSNR
Number of spectral bins to calculate the noise level around.
bool fFirstModuleCall
first call of module?
std::map< int, int > fBeaconSNRcounter
Counter for later normalization of mean signal to noise ratios.
int fFixedReferenceStationID
ID for fixed reference station, or negative value to chose station with best signal-to-noise ratio...
bool fRejectIfNoRefPhaseAvailable
Reject stations if no reference phase is available.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
double fBeaconTimeCalibrationUncertainty
total timing uncertainty after beacon correction in ns (Auger base unit)
bool fOverwriteDebugFile
Overwrite debug file if already existing.
bool fEqualizeStationTimeStamps
Compensate time stamp differences (adjust all station time stamps to the same)
A TimeStamp holds GPS second and nanosecond for some event.
utl::TimeStamp fStartingDateTimeForBeaconCorrection
skip events before this time
bool fUseBeaconDistanceInsteadOfDatabaseValues
Calculate correction based on distance to beacon.
std::set< int > fDebugStationIds
List of station IDs which will be included into debugging file.
bool fRejectIfCorrectionFailed
Reject stations if beacon correction failed.
bool fUseCrossCorrelationMethod
Calculate correction by maximizing cross-correlation of beacon beat.
bool writeDebugFile(const int &, const std::map< int, double > &, const std::map< int, double > &, const utl::TimeStamp &) const
Write debug output to file.
void matchStationTimeStamps(revt::REvent &) const
Shifts all traces in time, such that they match the time stamp of the first station.
ResultFlag
Flag returned by module methods to the RunController.
Makes the fine tuning time calibration using the reference signal of the beacon.
std::string fInputPhaseFile
Name of file for ASCII input of reference phases.
std::map< int, std::map< int, double > > fBeaconSNRs
Mean signal to noise ratio per station and beacon frequency (for monitoring, debugging, etc.)
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
std::map< int, int > fBeaconCorrectionFailures
Number of events for which beacon correction was unsuccessful for a paticular station.
unsigned int fMinGoodFreqs
Minimum number of beacon signals which have to pass the SNR cut.
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
unsigned int fNoiseFilterSize
Number of spectral bins to calculate the noise level around.