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