AliPhysics  1811c8f (1811c8f)
Browse.C
Go to the documentation of this file.
1 TObject* Browse(Bool_t fmd=true, Bool_t rw=false)
2 {
3  if (gROOT->IsBatch()) {
4  Error("", "Cannot run Forward OADB browser in batch mode");
5  return;
6  }
7  const char* fwd = "${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2";
8  if (!gROOT->GetClass("AliOADBForward"))
9  gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
10  gSystem->AddIncludePath(Form("-I%s -I$ALICE_PHYSICS/include", fwd));
11  TString macro = Form("%s/corrs/ForwardOADBGui.C+", fwd);
12  Info("", "Loading macro %s", macro.Data());
13  gROOT->LoadMacro(macro);
14 
15  TString fn(fmd ? "fmd_corrections.root" : "spd_corrections.root");
17  db->Open(fn, "*", rw);
18 
19  ForwardOADBGui(db, fn.Data());
20 
21  return db;
22 }
TGMainFrame * ForwardOADBGui(AliOADBForward *db=0, const char *path=0)
TObject * Browse(Bool_t fmd=true, Bool_t rw=false)
Definition: Browse.C:1
TSystem * gSystem
const char * fwd
bool Bool_t
Definition: External.C:53
Bool_t Open(const TString &fileName, const TString &tables="*", Bool_t rw=false, Bool_t verb=false, Bool_t fallback=false)