77 gSystem->Load(
"St_base");
78 gSystem->Load(
"StChain");
79 gSystem->Load(
"xdf2root");
80 gSystem->Load(
"St_Tables");
81 gSystem->Load(
"St_params_Maker");
83 const Char_t *
Path=
"/afs/rhic.bnl.gov/star/packages/dev/StDb/";
87 St_params_Maker
params(
"params",
"run/params");
89 int iInit = chain.Init();
90 if (iInit) chain.Fatal(iInit,
"on init");
102 path += t->
Path()->ReplaceAll(
"params/",
"");
103 cout <<
"path = " << path.Data() << endl;
106 dirname = gSystem->DirName(path.Data());
109 if (!gSystem->OpenDirectory(dirname.Data())) {
110 if (gSystem->mkdir(dirname.Data())) {
111 cout <<
"Directoty " << dirname <<
" creation failed" << endl;
114 ofstream *out =
new ofstream(path.Data());
115 cout <<
"Open " << path.Data() << endl;
116 t->SavePrimitive(*out,
"");
virtual TString Path() const
return the full path of this data set