1 #ifndef __JDB_JDBTOOLKIT__ 
    2 #define __JDB_JDBTOOLKIT__ 
   20 namespace JDATABASE {};
 
   21 namespace JPP { 
using namespace JDATABASE; }
 
   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;
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
 
Auxiliary class for specifying selection of database data. 
 
std::string operator()(const int id) const 
Get detector identifier. 
 
static void initialise()
Initialise. 
 
std::map< std::string, int > det2id
 
static const JDetectorsHelper & getDetector
Function object for mapping serial number and object identifier of detectors. 
 
Auxiliary class for mapping serial number and object identifier of detectors. 
 
static data_type & getInstance()
Get unique instance of template class. 
 
int operator()(const std::string &detid) const 
Get detector serial number. 
 
std::map< int, std::string > id2det
 
Template definition for getting table specific selector. 
 
static JDB & get()
Get connection to database.