112 #ifndef STAR_St_db_Maker
113 #define STAR_St_db_Maker
128 #include "StDbBroker/dbConfig.h"
151 UInt_t fMaxEntryTime;
152 std::map<std::pair<std::string,std::string>,UInt_t> fMaxEntryTimeOverride;
153 TStopwatch fTimer[6];
163 ,
const char *dir1 =
""
164 ,
const char *dir2 =
""
165 ,
const char *dir3 =
""
166 ,
const char *dir4 =
""
167 ,
const char *dir5 =
""
168 ,
const char *dir6 =
""
169 ,
const char *dir7 =
""
170 ,
const char *dir8 =
""
171 ,
const char *dir9 =
""
174 virtual TDataSet *GetDataBase(
const char* logInput,
const TDatime *td=0);
175 virtual const TDatime &GetDateTime()
const;
176 static Int_t GetValidity(
const TTable *tb, TDatime *
const val);
177 virtual void SetDateTime(
int idat,
int itim);
178 virtual void SetDateTime(
const char *datalias);
179 virtual Int_t InitRun(
int runumber);
180 virtual Int_t Init();
181 virtual Int_t
Make();
182 virtual Int_t Save(
const char *path,
const TDatime *newtime=0);
183 virtual Int_t SaveSnapshotPlus(
char* path,
int type = 0);
184 virtual void SetOff(
const Char_t *path);
185 virtual void SetOn (
const Char_t *path);
186 virtual void SetFlavor(
const char *flav,
const char *tabname=
".all");
187 virtual void OnOff();
188 virtual void Clear(Option_t *opt=
"");
190 void SetMaxEntryTime(Int_t idate,Int_t itime);
191 void AddMaxEntryTimeOverride(Int_t idate,Int_t itime,
char*
dbType = 0,
char*
dbDomain = 0);
194 virtual int UpdateTable(UInt_t parId,
TTable* dat,
const TDatime &req, TDatime val[2]);
196 virtual TDataSet *FindLeft(
StValiSet *val, TDatime vals[2],
const TDatime ¤Time);
197 virtual TDataSet *OpenMySQL(
const char* dbname);
198 virtual Int_t SaveDataSet(
TDataSet* ds,
int type,
bool savenext);
199 virtual Int_t SaveDataSetAsCMacro(
TTable* tb, TString ds_name,
bool savenext);
200 virtual Int_t SaveDataSetAsRootFile(
TTable* tb, TString ds_name,
bool savenext);
202 int Snapshot (
int flag);
204 static EDataSetPass UpdateDB (
TDataSet* ds,
void *user );
205 static EDataSetPass PrepareDB(
TDataSet* ds,
void *user );
206 int UpdateValiSet(
StValiSet *val,
const TDatime ¤Time);
208 static TDatime Time(
const char *filename);
209 static int Kind(
const char *filename);
211 virtual const char *GetCVS()
const
212 {
static const char cvs[]=
"Tag $Name: $ $Id: St_db_Maker.h,v 1.46 2015/05/05 21:05:52 dmitry Exp $ built " __DATE__
" " __TIME__ ;
return cvs;}
virtual void Clear(Option_t *opt="")
User defined functions.