RdChannelGalacticConstantsGenerator.h
Go to the documentation of this file.
1 #ifndef _RdChannelGalacticConstantsGenerator_RdChannelGalacticConstantsGenerator_h_
2 #define _RdChannelGalacticConstantsGenerator_RdChannelGalacticConstantsGenerator_h_
3 
4 #include <fwk/VModule.h>
5 #include "TProfile3D.h"
6 #include <string>
7 #include <fstream>
8 
9 
10 namespace evt {
11  class Event;
12 }
13 
14 namespace revt {
15  class Station;
16 }
17 
18 
20 
31 
32  public:
33  fwk::VModule::ResultFlag Init() override;
34  fwk::VModule::ResultFlag Run(evt::Event& event) override;
36 
37  private:
38  std::vector<int> fIgnoreStations;
39  double fMaxIntensity = 0;
40  std::string fOutputFileName;
41  bool fSaveROOTFile = true;
42  std::string fFileNameROOTFile;
43 
44  std::ofstream fOutfile;
45  bool fFirstEvent = true;
46 
47  // TProfiles of NS and EW spectra: [station id][LST][frequency][spectral amplitude]
48  TProfile3D* fLSTSpecNS = nullptr;
49  TProfile3D* fLSTSpecEW = nullptr;
50 
51  // ROOT quantities and statistics
53  unsigned long fHighestGPSSec = 0;
54 
55  static double GPSSecToLSTHourAuger(const int gpsSec);
56 
57  REGISTER_MODULE("RdChannelGalacticConstantsGenerator", RdChannelGalacticConstantsGenerator);
58  };
59 
60 }
61 
62 
63 #endif
64 
Calculates frequency-dependent relative calibration constants based on the galactic background...
REGISTER_MODULE("RdChannelGalacticConstantsGenerator", RdChannelGalacticConstantsGenerator)
#define max(a, b)
Module interface.
Definition: VModule.h:53
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
fwk::VModule::ResultFlag Run(evt::Event &event) override
Run: invoked once per event.
fwk::VModule::ResultFlag Finish() override
Finish: invoked at end of the run (NOT end of the event)
fwk::VModule::ResultFlag Init() override
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: XbArray.h:7

, generated on Tue Sep 26 2023.