RdChannelBeaconSimulator.h
Go to the documentation of this file.
1 #ifndef _RdChannelBeaconSimulator_h_
2 #define _RdChannelBeaconSimulator_h_
3 
4 #include <fwk/VModule.h>
5 #include <revt/Channel.h>
6 #include <utl/TimeInterval.h>
7 
8 namespace evt {
9  class Event;
10 }
11 
12 namespace RdChannelBeaconSimulator {
13 
24 
25  public:
26  // If you define a constructor, you MUST provide an implementation
27  // for it, otherwise the REGISTER_MODULE macro will not register
28  // your module. (Here, implementation is in RdChannelPedestalRemover.cc)
30  virtual ~RdChannelBeaconSimulator();
31 
35 
36 
37  private:
39  std::vector<double> fBeaconPosition;
40 
43 
46 
48  double fAmplitude;
49 
51  std::string fOutputShiftFile;
52 
54  std::vector<double> fBeaconFrequencies;
57 
59  void timeShift(revt::Channel&, const utl::TimeInterval&) const;
60 
61  // The REGISTER_MODULE macro makes the framework aware of your module.
62  // You need to put this macro at the very end of your module class definition.
63  // Give your module a name (first argument) and specify its
64  // class name (second argument). In the ModuleSequenceExample.xml file,
65  // you can see this module being refered to by the name we give it here.
66 
67  REGISTER_MODULE("RdChannelBeaconSimulator", RdChannelBeaconSimulator);
68 
69  };
70 
71 }
72 
73 
74 #endif
75 
76 // Configure (x)emacs for this file ...
77 // Local Variables:
78 // mode:c++
79 // compile-command: "make -k"
80 // End:
This module simulates the beacon and the GPS time jitter.
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
void timeShift(revt::Channel &, const utl::TimeInterval &) const
shifts the trace in time by multiplying a phasegradient to the spectrum
Module interface.
Definition: VModule.h:53
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
std::string fOutputShiftFile
Name of file for ASCII output of shifts (not needed for normal analysis)
std::vector< double > fBeaconFrequencies
Vector of frequencies to simulate.
REGISTER_MODULE("RdChannelBeaconSimulator", RdChannelBeaconSimulator)
A TimeInterval is used to represent time elapsed between two events.
Definition: TimeInterval.h:43
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
double fTimeJitterMean
Mean of gaussian distibution for the time jitter.
Class that holds the data associated to an individual radio channel.
void RemoveDCOffset(revt::ChannelTimeSeries &)
DC Offset subtraction.
std::vector< double > fBeaconPosition
Vector for the position of the beacon.

, generated on Tue Sep 26 2023.