AliPhysics  fffcdf3 (fffcdf3)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunQA.C
Go to the documentation of this file.
1 
10 class TTree;
11 class TCanvas;
12 
37 void
38 RunQA(const char* input,
39  const char* type,
40  Int_t year,
41  const char* period,
42  const char* pass,
43  Long_t runNo)
44 {
45  Bool_t keep = true;
46  TString fwd(gSystem->Getenv("QA_FWD"));
47  TString mac(gROOT->GetMacroPath());
48  if (!fwd.IsNull()) {
49  mac.Prepend(Form(".:%s:",fwd.Data()));
50  gSystem->AddIncludePath(Form("-I%s", fwd.Data()));
51  }
52  else {
53  fwd = gSystem->Getenv("ANA_SRC");
54  if (fwd.IsNull())
55  fwd = "${ALICE_PHYSICS}/PWGLF/FORWARD/analysis2";
56  mac.Prepend(Form(".:%s/qa:%s/corrs:",fwd.Data(), fwd.Data()));
57  gSystem->AddIncludePath(Form("-I%s/qa", fwd.Data()));
58  }
59  gROOT->SetMacroPath(mac);
60  gSystem->Load("libGpad");
61  gSystem->Load("libTree");
62 
63  TString inp(input);
64  if (inp.Contains("#QA_results")) inp.ReplaceAll("#QA_results", "#trending");
65 
66  gROOT->LoadMacro("QATrender.C+g");
67  QATrender t(keep, type, year, period, pass, runNo);
68  t.AddFile(inp);
69  // t.SetOutputName("trending.root");
70  if (!t.Run()) exit(1);
71 }
72 //
73 // EOF
74 //
TSystem * gSystem
void RunQA(const char *input, const char *type, Int_t year, const char *period, const char *pass, Long_t runNo)
Definition: RunQA.C:38
Bool_t Run()
Definition: QATrender.C:663
int Int_t
Definition: External.C:63
const char * fwd
bool Bool_t
Definition: External.C:53
void AddFile(const char *filename)
Definition: QATrender.C:654