FD2ADST.h
Go to the documentation of this file.
1 #ifndef _RecDataWriterNG_FD2ADST_h_
2 #define _RecDataWriterNG_FD2ADST_h_
3 
4 #include "Offline2ADST.h"
5 #include "Config.h"
6 
7 #include <adst/FdRecLevel.h>
8 
9 #include <string>
10 #include <map>
11 
12 
13 class FDEvent;
14 class FdRecShower;
15 class FdRecGeometry;
16 class RecEvent;
17 class FdApertureLight;
18 class FdGeometry;
19 
20 namespace evt {
21  class Event;
22  class ShowerFRecData;
23 }
24 
25 namespace fevt {
26  class FEvent;
27  class Eye;
28  class EyeRecData;
29 }
30 
31 namespace fdet {
32  class Eye;
33 }
34 
35 namespace otoa {
36 
37  class Config;
38  class Status;
39  class Offline2ADST;
40 
41 
49  class FD2ADST {
50  public:
51  FD2ADST(const otoa::Offline2ADST& parent, otoa::Status& status);
52 
53  void Convert(const evt::Event& event, RecEvent& recEvent);
54 
55  private:
61  };
62 
63  const otoa::Offline2ADST& Parent() const { return fParent; } // delegated
64  const otoa::Config& Config() const { return Parent().Config(); } // delegated
65  const otoa::Status& Status() const { return fStatus; }
66  otoa::Status& Status() { return fStatus; }
67  int Verbosity() const { return Config().Verbosity(); } // delegated
68 
69  void IncreaseFdRecLevel(FDEvent& fdevent, EFdRecLevel reclevel);
70 
71  void FillEye(const fevt::Eye& eye, FDEvent& fd);
72 
73  void FillEyeHeader(const fevt::Eye& eye, FDEvent& fd);
74 
75  void FillSDP(const fdet::Eye& dEye, const fevt::EyeRecData& eyeRec, FdRecGeometry& geo);
76 
77  void FillTimeFit(const fdet::Eye& dEye, const fevt::EyeRecData& eyeRec, FdRecGeometry& geo);
78 
79  void FillPCGFit(const fdet::Eye& dEye, const fevt::EyeRecData& eyeRec, FdRecGeometry& geo);
80 
81  void FillFdCoreAxis(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
82 
83  bool FillEyeApertureLight(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
84 
85  void FillCloudCameraDataBrief(const fevt::Eye& eye, FDEvent& fd);
86 
87  void FillCloudsBetweenEyeAndShower(const fevt::Eye& eye, FDEvent& fd) const;
88 
89  bool FillFdProfile(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
90 
91  bool FillGaisserHillas(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
92 
93  bool FillEnergy(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
94 
95  void FillAtmosphericProfileVars(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
96 
97  void FillTelRecData(const fevt::Eye& theEye, FDEvent& fd);
98 
99  bool FillTelSimData(const fevt::Eye& theEye, FDEvent& fd);
100 
101  void FillGeometricalUncertainties(const fdet::Eye& dEye, const fevt::Eye& eye, FDEvent& fd);
102 
103  void FillFdRecStations(const evt::Event& event, const fevt::Eye& eye, FDEvent& adstFDEvent) const;
104 
105  void FillRecPixel(const fevt::Eye& eye, FDEvent& fd);
106 
107  void FillEyeSim(const evt::Event& event, FDEvent& fd);
108 
109  void FillHybridStations(const evt::Event& event, const fevt::Eye& eye, FdRecGeometry& geo);
110 
111  void FillSDEye(const evt::Event& theEvent, const fevt::Eye& theEye, FDEvent& fd);
112 
113  //void FillViewingAngle(FDEvent& fd);
114  void FillViewingAngle(FdApertureLight* apLight, FdGeometry* geo, const double xMaxChi);
115 
118  };
119 
120 }
121 
122 
123 #endif
void FillTimeFit(const fdet::Eye &dEye, const fevt::EyeRecData &eyeRec, FdRecGeometry &geo)
Definition: FD2ADST.cc:394
int Verbosity() const
Definition: Config.h:23
void FillEyeHeader(const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:172
void FillViewingAngle(FdApertureLight *apLight, FdGeometry *geo, const double xMaxChi)
Definition: FD2ADST.cc:2902
void IncreaseFdRecLevel(FDEvent &fdevent, EFdRecLevel reclevel)
Definition: FD2ADST.cc:2024
bool FillEyeApertureLight(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:678
const otoa::Status & Status() const
Definition: FD2ADST.h:65
Fluorescence Detector Eye Event.
Definition: FEvent/Eye.h:29
Converts an Offline event to ADST FDEvent.
Definition: FD2ADST.h:49
FDSaturationStatus
Definition: FD2ADST.h:56
void FillSDEye(const evt::Event &theEvent, const fevt::Eye &theEye, FDEvent &fd)
Definition: FD2ADST.cc:2957
Detector description interface for Eye-related data.
Definition: FDetector/Eye.h:45
int Verbosity() const
Definition: FD2ADST.h:67
int fd
Definition: dump1090.h:233
void FillEyeSim(const evt::Event &event, FDEvent &fd)
Definition: FD2ADST.cc:2724
void FillSDP(const fdet::Eye &dEye, const fevt::EyeRecData &eyeRec, FdRecGeometry &geo)
Definition: FD2ADST.cc:379
Status
Return code for seek operation.
Definition: IoCodes.h:24
const otoa::Config & Config() const
Fetch the converter configuration.
Definition: Offline2ADST.h:52
Converts an Offline event to ADST.
Definition: Config.h:19
const otoa::Offline2ADST & Parent() const
Definition: FD2ADST.h:63
void FillFdRecStations(const evt::Event &event, const fevt::Eye &eye, FDEvent &adstFDEvent) const
Definition: FD2ADST.cc:2032
void FillGeometricalUncertainties(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:605
otoa::Status & fStatus
Definition: FD2ADST.h:117
bool FillEnergy(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:1998
otoa::Status & Status()
Definition: FD2ADST.h:66
Eye-specific shower reconstruction data.
Definition: EyeRecData.h:65
void FillFdCoreAxis(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:497
void FillEye(const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:260
void FillAtmosphericProfileVars(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:1289
const otoa::Config & Config() const
Definition: FD2ADST.h:64
bool FillFdProfile(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:965
void FillCloudsBetweenEyeAndShower(const fevt::Eye &eye, FDEvent &fd) const
Definition: FD2ADST.cc:736
const otoa::Offline2ADST & fParent
Definition: FD2ADST.h:116
bool FillGaisserHillas(const fdet::Eye &dEye, const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:1118
bool FillTelSimData(const fevt::Eye &theEye, FDEvent &fd)
Definition: FD2ADST.cc:1470
FD2ADST(const otoa::Offline2ADST &parent, otoa::Status &status)
Definition: FD2ADST.cc:99
void Convert(const evt::Event &event, RecEvent &recEvent)
Definition: FD2ADST.cc:106
void FillTelRecData(const fevt::Eye &theEye, FDEvent &fd)
Definition: FD2ADST.cc:1765
void FillRecPixel(const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:2234
void FillCloudCameraDataBrief(const fevt::Eye &eye, FDEvent &fd)
Definition: FD2ADST.cc:816
void FillHybridStations(const evt::Event &event, const fevt::Eye &eye, FdRecGeometry &geo)
Definition: FD2ADST.cc:2798
void Config(const std::string &infile)
Definition: fwkPython.cc:13
Converts an Offline event to ADST.
Definition: Offline2ADST.h:27
void FillPCGFit(const fdet::Eye &dEye, const fevt::EyeRecData &eyeRec, FdRecGeometry &geo)
Definition: FD2ADST.cc:461
Represents the status of a single event conversion.
Definition: Status.h:17

, generated on Tue Sep 26 2023.