1 #ifndef HARPORUNCONFIG_H
2 #define HARPORUNCONFIG_H
12 #include "TObjString.h"
40 Bool_t
GetRunConfig(Long_t nrun,
const TString *dbUrl=NULL);
53 Bool_t
Lookup(
const TString field);
55 Bool_t
Lookup(
const char * field);
58 Bool_t
GetVal(
const TString field, TString &val);
60 Bool_t
GetVal(
const char * field, TString &val);
void list()
list all filds found which his types
Bool_t GetRunConfig(Long_t nrun, const TString *dbUrl=NULL)
Query Db for given run Only this function in class interact wich DataBase. Must be called in HarpoRaw...
Get Run Configuration info by run number. The class query MySQL databe use GetRunConfig Method Only t...
void print()
Print values of all founded fields.
Bool_t Lookup(const TString field)
Lookup filed exist.
Bool_t GetVal(const TString field, TString &val)
Return value of existing field in Tstring.
Bool_t GetType(const TString field, TString &type)
Return Type of field in Tstring.
Long_t GetNrun()
Get method for run number of this record.
std::map< TString, TString > dbFields
virtual ~HarpoRunConfig()
std::map< TString, dbField > dbFields