FCalibSQLManager.h
Go to the documentation of this file.
1 #ifndef _fdet_FCalibSQLManager_h_
2 #define _fdet_FCalibSQLManager_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 namespace utl {
13  class Reader;
14  class Branch;
15  class TabulatedFunction;
16 }
17 
18 
19 namespace fdet {
20 
41 
42  public:
43  void Init(const std::string& configLink);
44 
47  VMANAGER_GETDATA_DECLARE(std::map<int, utl::TabulatedFunction>)
48  VMANAGER_GETDATA_DECLARE(std::vector<int>)
49 
50  //VMANAGER_GETDATA_DENIED(unsigned long long int)
51  VMANAGER_GETDATA_DENIED(std::string)
52  VMANAGER_GETDATA_DENIED(std::vector<double>)
53  VMANAGER_GETDATA_DENIED(std::vector<std::string>)
54  VMANAGER_GETDATA_DENIED(std::vector<bool>)
55  VMANAGER_GETDATA_DENIED(std::list<double>)
56  VMANAGER_GETDATA_DENIED(std::list<int>)
57  VMANAGER_GETDATA_DENIED(std::list<std::string>)
60  VMANAGER_GETDATA_DENIED(std::list<std::pair<int, int> >)
61 
62  VMANAGER_GETDATA_NOTFOUND(std::map<std::string, double>)
63 
64  private:
66 
67  int GetWorkingCalibId(const IndexMap& componentIndex) const;
68  int GetPixelTOffsetId(const IndexMap& componentIndex) const;
69  int GetPixelCalibId(const IndexMap& componentIndex) const;
70 
72  std::vector<double> FindAvailableWavelengths(const int pixelCalibId) const;
73 
74  std::vector<unsigned int> fEyesToIgnore;
75 
76  };
77 
78 }
79 
80 
81 #endif
VMANAGER_GETDATA_HANDLE_DENIED int GetWorkingCalibId(const IndexMap &componentIndex) const
Class to hold collection (x,y) points and provide interpolation between them.
std::vector< unsigned int > fEyesToIgnore
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
int GetPixelCalibId(const IndexMap &componentIndex) const
void Init(const std::string &configLink)
Manager Initialization. configLink is the CentralConfig hook for the configuration file...
std::map< std::string, std::string > IndexMap
Definition: VManager.h:133
std::vector< double > FindAvailableWavelengths(const int pixelCalibId) const
Find out which wavelengths (nm) are available for the calibration.
int GetPixelTOffsetId(const IndexMap &componentIndex) const
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Definition: VManager.h:41
Manager for FD calibration and monitoring data residing in MySQL database.

, generated on Tue Sep 26 2023.