ROOT logo
TObject* Browse(Bool_t fmd=true, Bool_t rw=false)
{
  if (gROOT->IsBatch()) { 
    Error("", "Cannot run Forward OADB browser in batch mode");
    return;
  }
  const char* fwd = "${ALICE_ROOT}/PWGLF/FORWARD/analysis2";
  if (!gROOT->GetClass("AliOADBForward"))
    gROOT->Macro(Form("%s/scripts/LoadLibs.C", fwd));
  gSystem->AddIncludePath(Form("-I%s -I$ALICE_ROOT/include", fwd));
  TString macro = Form("%s/corrs/ForwardOADBGui.C+", fwd);
  Info("", "Loading macro %s", macro.Data());
  gROOT->LoadMacro(macro);
  
  AliOADBForward* db = new AliOADBForward;
  db->Open(fmd ? "fmd_corrections.root" : "spd_corrections.root", "*", rw);
  
  ForwardOADBGui(db);

  return db;
}
 Browse.C:1
 Browse.C:2
 Browse.C:3
 Browse.C:4
 Browse.C:5
 Browse.C:6
 Browse.C:7
 Browse.C:8
 Browse.C:9
 Browse.C:10
 Browse.C:11
 Browse.C:12
 Browse.C:13
 Browse.C:14
 Browse.C:15
 Browse.C:16
 Browse.C:17
 Browse.C:18
 Browse.C:19
 Browse.C:20
 Browse.C:21
 Browse.C:22