1 #ifndef _RdStationSignalReconstructor_h_
2 #define _RdStationSignalReconstructor_h_
4 #include <fwk/VModule.h>
6 #include <revt/Station.h>
7 #include <revt/Channel.h>
9 #include <utl/AugerUnits.h>
10 #include <utl/PhysicalConstants.h>
15 #include "Minuit2/MnUserParameters.h"
16 #include "Minuit2/MnUserParameterState.h"
17 #include <Minuit2/FCNBase.h>
86 double& RMSNoise,
double& MeanNoise,
double NoiseWindowStart,
double NoiseWindowStop)
const;
90 double& PeakAmplitude,
double& PeakTime,
double& PeakTimeError,
91 double SignalSearchWindowStart,
double SignalSearchWindowStop,
unsigned int& sample)
const;
95 unsigned int sample,
const double PeakAmplitude,
double& SignalFWHM,
double& IntegratedSignal,
96 double& SignalWindowStart,
double& SignalWindowStop)
const;
100 unsigned int sample,
double IntegrationTime,
double& IntegratedSignal,
101 double& SignalWindowStart,
double& SignalWindowStop,
const bool usePower)
const;
104 double IntegrationTime,
double& IntegratedSignal,
105 double& SignalWindowStart,
double& SignalWindowStop,
106 double SignalSearchWindowStart,
double SignalSearchWindowStop)
const;
122 const double noiseRMS,
125 const bool fixPhaseSlope,
126 const double phaseSlope);
141 double operator()(
const std::vector<double>& pars)
const;
unsigned int fNumberOfEvents5plusSignalStations
bool fAdjustSignalAmplitude
utl::Trace< double > fTrace
double GetSignalTimeUncertainty(const double SNR) const
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
void PulseSlidingWindowIntegrator(const revt::ChannelTimeSeries &channeltrace, double IntegrationTime, double &IntegratedSignal, double &SignalWindowStart, double &SignalWindowStop, double SignalSearchWindowStart, double SignalSearchWindowStop) const
std::string fNoiseSubtraction
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
double fBlackSpiderAntennaUncertainty
double GetSignalUncertainty(const double signalAmplitude, const double SNR) const
double operator()(const std::vector< double > &pars) const
unsigned int fNumberOfEvents3SignalStations
void PulseFixedWindowIntegrator(const revt::ChannelTimeSeries &channeltrace, unsigned int sample, double IntegrationTime, double &IntegratedSignal, double &SignalWindowStart, double &SignalWindowStop, const bool usePower) const
REGISTER_MODULE("RdStationSignalReconstructor", RdStationSignalReconstructor)
void PulseFWHMIntegrator(const revt::ChannelTimeSeries &channeltrace, unsigned int sample, const double PeakAmplitude, double &SignalFWHM, double &IntegratedSignal, double &SignalWindowStart, double &SignalWindowStop) const
double fSignalIntegrationWindowSize
double fRelativeAmplitudeUncertainty
class to hold data at the radio Station level.
unsigned int fTotalNumberOfEvents
unsigned int fNumberOfEvents2SignalStations
void Noisefinder(const revt::ChannelTimeSeries &channeltrace, double &RMSNoise, double &MeanNoise, double NoiseWindowStart, double NoiseWindowStop) const
void Pulsefinder(const revt::ChannelTimeSeries &channeltrace, double &PeakAmplitude, double &PeakTime, double &PeakTimeError, double SignalSearchWindowStart, double SignalSearchWindowStop, unsigned int &sample) const
double fDefaultAntennaUncertainty
double fButterflyAntennaUncertainty
PulseFinder searches for maximum in the trace. Choose vectorial component in the xml file...
std::string fSignalToNoiseDef
void SetErrorDef(const double def)
ResultFlag
Flag returned by module methods to the RunController.
RdStationSignalReconstructor()
bool fAddNoiseToUncertainty
unsigned int fVectorialComponent
SignalObjectiveFunction(utl::Trace< double > trace, const double noiseRMS)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
unsigned int fNumberOfEvents5SignalStations
unsigned int fNumberOfEvents1SignalStations
ROOT::Minuit2::MnUserParameterState FitAnalyticSignal(utl::Trace< double > &trace, const double noiseRMS, revt::Station &, const int, const bool fixPhaseSlope, const double phaseSlope)
double GetAdjustedSignalAmplitude(const double signalAmpitude, const double SNR) const
the formula is documented in GAP 2013-059
unsigned int fNumberOfEvents4SignalStations
std::string fPolarizationDef