Go to the documentation of this file.    1 #ifndef __JDB_JDBTOOLKIT__ 
    2 #define __JDB_JDBTOOLKIT__ 
   44       for (
JDetectors parameters; rs >> parameters; ) {
 
   45         getInstance().det2id[parameters.OID] = parameters.SERIALNUMBER;
 
   46         getInstance().id2det[parameters.SERIALNUMBER] = parameters.OID;
 
   69         if (rs >> parameters) {
 
  104         if (rs >> parameters) {
 
  111           return parameters.
OID;
 
 
static data_type & getInstance()
Get unique instance of template class.
 
std::map< int, std::string > id2det
 
static JDB & get()
Get connection to database.
 
static const JDetectorsHelper & getDetector
Function object for mapping serial number and object identifier of detectors.
 
Auxiliary classes and methods for database I/O.
 
Auxiliary class for mapping serial number and object identifier of detectors.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
static void initialise()
Initialise.
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
Template definition for getting table specific selector.
 
std::map< std::string, int > det2id
 
std::string operator()(const int id) const
Get detector identifier.
 
int operator()(const std::string &detid) const
Get detector serial number.
 
Auxiliary class for specifying selection of database data.