FOpticalEfficiencyLossSQLManager.h
Go to the documentation of this file.
1 #ifndef _fdet_FOpticalEfficiencyLossSQLManager_h_
2 #define _fdet_FOpticalEfficiencyLossSQLManager_h_
3 
4 #include <utl/config.h>
5 
6 #ifdef AUGER_SQLITE_ENABLED
7 #include <det/VSQLManager_SQLite.h>
8 #else
9 #include <det/VSQLManager_MySQL.h>
10 #endif
11 
12 #include <string>
13 
14 namespace utl {
15  class Reader;
16  class Branch;
17  class TabulatedFunction;
18 }
19 
20 
21 namespace fdet {
22 
35 
36  public:
37  void Init(const std::string& configLink);
38 
41  VMANAGER_GETDATA_DECLARE(std::map<int, utl::TabulatedFunction>)
42  VMANAGER_GETDATA_DECLARE(std::vector<int>)
43 
44  //VMANAGER_GETDATA_DENIED(unsigned long long int)
45  VMANAGER_GETDATA_DENIED(std::string)
46  VMANAGER_GETDATA_DENIED(std::vector<double>)
47  VMANAGER_GETDATA_DENIED(std::vector<std::string>)
48  VMANAGER_GETDATA_DENIED(std::list<double>)
49  VMANAGER_GETDATA_DENIED(std::list<int>)
50  VMANAGER_GETDATA_DENIED(std::list<std::string>)
53  VMANAGER_GETDATA_DENIED(std::list<std::pair<int, int> >)
54  VMANAGER_GETDATA_NOTFOUND(std::map<std::string, double>)
55  VMANAGER_GETDATA_DENIED(std::vector<bool>)
56 
57  private:
58  bool GetOpticalEfficiencyCorrectionForTelescope(const unsigned int eyeId, const unsigned int telId, double& value) const;
59  std::string ConvertEyeTelToTelId(const int eyeId, const int telId) const;
60 
62 
63  };
64 
65 }
66 
67 
68 #endif // _fdet_FOpticalEfficiencyLossSQLManager_h_
69 
70 // Configure (x)emacs for this file ...
71 // Local Variables:
72 // mode: c++
73 // compile-command: "make -C .. FOpticalEfficiencyLossSQLManager.o -k"
74 // End:
void Init(const std::string &configLink)
Manager Initialization. configLink is the CentralConfig hook for the configuration file...
bool GetOpticalEfficiencyCorrectionForTelescope(const unsigned int eyeId, const unsigned int telId, double &value) const
Class to hold collection (x,y) points and provide interpolation between them.
Interface for detector managers that use MySQL.
Class to hold collection (x,y) points and provide interpolation between them, where y are complex num...
#define VMANAGER_GETDATA_DENIED(_T_...)
Definition: VManager.h:21
#define VMANAGER_GETDATA_HANDLE_DENIED
Definition: VManager.h:75
#define VMANAGER_GETDATA_DECLARE(_T_...)
Definition: VManager.h:69
std::string ConvertEyeTelToTelId(const int eyeId, const int telId) const
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Definition: VManager.h:41
Manager for FD optical efficiency correction constants read from SQL database.

, generated on Tue Sep 26 2023.