ds->cd();
// Write stats also in the bookkeeping RunDB
- AliRunDB *rundb = new AliRunDB;
+ AliRunDB *rundb = new AliRunDB(kTRUE);
rundb->Update(this);
rundb->UpdateRDBMS(this);
rundb->UpdateAliEn(this);
//______________________________________________________________________________
-AliRunDB::AliRunDB()
+AliRunDB::AliRunDB(Bool_t noLocalDB)
{
// Open run database, and get or create tree.
+ fRunDB = 0;
+
+ if (noLocalDB) return;
+
// Get hostname
char hostname[64], filename[64];
const char *fs = kRunDBFS;
{
// Add stats object to database.
+ if (!stats || !fRunDB) return;
+
TDirectory *ds = gDirectory;
fRunDB->cd();
{
// Add stats object to central MySQL DB.
+ if (!stats) return;
+
char sql[4096];
char bt[25], et[25];
{
// Record file in AliEn catalog.
+ if (!stats) return;
+
TGrid *g = TGrid::Connect(kAlienHost, "");
TString lfn = kAlienDir;
{
// Close run database.
- fRunDB->Close();
+ if (fRunDB) fRunDB->Close();
delete fRunDB;
}