3 #include "fgtElosCutoff.h"
4 gSystem->Setenv(
"DB_ACCESS_MODE",
"write");
6 gROOT->Macro(
"LoadLogger.C");
7 gSystem->Load(
"St_base.so");
8 gSystem->Load(
"libStDb_Tables.so");
9 gSystem->Load(
"StDbLib.so");
14 StDbTable* dbtable = node->addDbTable(
"fgtElosCutoff");
15 TString storeTime =
"2011-09-22 12:00:00";
16 mgr->setStoreTime(storeTime.Data());
19 fgtElosCutoff_st table;
21 for (
int i = 0; i < 10000; i++) {
25 std::string comment =
"test comment";
27 length = comment.copy(table.comment, comment.size());
28 table.comment[length] =
'\0';
30 std::ifstream in(
"BichselELossProbHighBG.dat");
31 if (!in.is_open()) { cout <<
"Can't find eloss file!\n"; exit(0); }
32 Double_t cl1, cl2, cl3, cl4, cl5, cl6, cl7;
35 std::cout << setprecision(10);
37 for (
int i = 0; i < 10000; i++) {
38 in >> cl1 >> cl2 >> cl3 >> cl4 >> cl5 >> cl6 >> cl7;
41 table.cutoff[i] = cl7;
50 mgr->storeDbTable(dbtable);
virtual void SetTable(char *data, int nrows, int *idList=0)
calloc'd version of data for StRoot
static StDbManager * Instance()
strdup(..) is not ANSI