RdGalacticDatasetMaker.h
Go to the documentation of this file.
1 #ifndef _RdGalacticDatasetMaker_h_
2 #define _RdGalacticDatasetMaker_h_
3 
4 #include <string>
5 #include <vector>
6 
7 // framework
8 #include <fwk/VModule.h>
9 
10 // revt
11 #include <revt/Station.h>
12 #include <revt/Channel.h>
13 #include <revt/REvent.h>
14 
15 // utl
16 #include <utl/Reader.h>
17 
18 
28 namespace evt {
29  class Event;
30 }
31 
32 namespace revt {
33  class REvent;
34  class Station;
35  class Channel;
36 }
37 
38 namespace RdGalacticDatasetMaker {
39 
41 
42  public:
45 
49 
50  private:
51  static float onlineMean(float oldMean, float nextValue, int n);
52  static int getChannelIndex(std::vector<int> vector, int element);
53  static double GPSSecToLSTHourAuger(const int gpsSec);
54  static float HHMMSS2hour(float ffHHMMSS);
55  static unsigned int TimeStamp2HHMMSS(const utl::TimeStamp& timest);
56 
58  int fCurRunId;
63  float fCurUTChour;
64  float fHHMMSS;
65 
66  // galactic global vars
68  double fSTDthreshold;
69  double ffreqBinWidth;
70  double ftimeBinWidth;
72  bool fdayStack;
74  std::vector<int> fchannels;
75  std::vector<int> fStationIds;
76  std::vector<float> freqBins;
77  std::vector<float> timeBins;
78  std::vector<std::vector<std::vector<std::vector<float> > > > AllChannelsAndStationsDatasets;
79  double fMinFrequency;
80  double fMaxFrequency;
81  int fstartBin;
84 
85  // stats
86  std::vector<std::vector<float> > stationTraceCounter;
87 
88  // impedance
91  static double GetImpedanceAt(utl::Branch topBranch, int channelID, float frequencyMHz);
92 
93  // globals
95 
96  REGISTER_MODULE("RdGalacticDatasetMaker", RdGalacticDatasetMaker);
97 
98  };
99 
100 }
101 
102 
103 #endif
static double GetImpedanceAt(utl::Branch topBranch, int channelID, float frequencyMHz)
fwk::VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Interface class to access to the Radio part of an event.
Definition: REvent.h:42
REGISTER_MODULE("RdGalacticDatasetMaker", RdGalacticDatasetMaker)
static unsigned int TimeStamp2HHMMSS(const utl::TimeStamp &timest)
A TimeStamp holds GPS second and nanosecond for some event.
Definition: TimeStamp.h:110
Class representing a document branch.
Definition: Branch.h:107
fwk::VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
std::vector< std::vector< std::vector< std::vector< float > > > > AllChannelsAndStationsDatasets
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
static int getChannelIndex(std::vector< int > vector, int element)
std::vector< std::vector< float > > stationTraceCounter
static float onlineMean(float oldMean, float nextValue, int n)
fwk::VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Provides datasets for galactic calibration.
Definition: XbArray.h:7

, generated on Tue Sep 26 2023.