1 #ifndef _fdet_FdUpTimeSQLManager_h_
2 #define _fdet_FdUpTimeSQLManager_h_
4 #include <utl/config.h>
5 #include <det/ValidityStamp.h>
7 #ifdef AUGER_SQLITE_ENABLED
8 # include <det/VSQLManager_SQLite.h>
10 # include <det/VSQLManager_MySQL.h>
16 class TabulatedFunction;
53 const std::
string& componentProperty,
54 const std::
string& componentName,
57 void Init(const std::
string& configLink);
61 const std::
string& componentProperty,
62 const std::
string& componentName,
63 const
IndexMap& componentIndex) const;
66 const std::
string& componentProperty,
67 const std::
string& componentName,
68 const
IndexMap& componentIndex) const;
93 : Variance(v), Threshold(t), Baseline(b) { }
105 typedef std::map<unsigned int, IndexEntry>
Index;
std::map< unsigned int, IndexEntry >::iterator IndexIterator
std::map< int, double > fTelescopeOnTimeFraction
std::map< int, double > fEyeOnTimeFraction
std::pair< unsigned int, unsigned int > IndexEntry
std::map< unsigned int, IndexEntry > Index
Status const
Fetch first item from first row and optionally free query result.
VMANAGER_GETDATA_HANDLE_DENIED int fVerbosity
static const double fgSearchMapBinning
int GetChannelIndex(const IndexMap &componentIndex) const
std::map< int, int > fTelescopeStatus
int GetEyeIndex(const IndexMap &componentIndex) const
Interface for detector managers that use MySQL.
#define VMANAGER_GETDATA_DENIED(_T_...)
#define VMANAGER_GETDATA_HANDLE_DENIED
static const unsigned int kNPixelPerTel
std::map< int, std::vector< ChannelInfo > > fChannelInfo
Status GetChannelData(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const
virtual Status GetData(double &returnData, const std::string &componentProperty, const std::string &componentName, 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
Status GetOnTimeFraction(double &returnData, const std::string &componentProperty, const std::string &componentName, const IndexMap &componentIndex) const
virtual ~FdUpTimeSQLManager()
det::ValidityStamp fDataValidity
double fCDASOnTimeFraction
int GetTelIndex(const IndexMap &componentIndex) const
std::map< unsigned int, IndexEntry >::const_iterator ConstIndexIterator
ChannelInfo(unsigned int v, unsigned int t, unsigned int b)
#define VMANAGER_GETDATA_NOTFOUND(_T_...)
Status
Specifies success or (eventually) various possible failure modes.
std::map< int, int > fEyeStatus