AliPhysics  05c4c93 (05c4c93)
RunFileQA.C
Go to the documentation of this file.
1 
20 void
21 RunFileQA(const char* input, const char* output=0,
22  Int_t prodYear=0, const char* prodLetter="")
23 {
24  int ret = 0;
25  gROOT->SetMacroPath(Form(".:%s", gROOT->GetMacroPath()));
26  gSystem->Load("libGpad");
27  gSystem->Load("libTree");
28 
29  gROOT->LoadMacro("QABase.h+g");
30  gROOT->LoadMacro("QATrender.C+g");
31 
32  QATrender t(true, false, prodYear, prodLetter[0]);
33  t.AddFile(input);
34  if (output && output[0] != '\0')
35  t.SetOutputName(output);
36  if (!t.Run()) exit(1);
37 }
38 //
39 // EOF
40 //
TSystem * gSystem
Bool_t Run()
Definition: QATrender.C:663
int Int_t
Definition: External.C:63
void SetOutputName(const char *name)
Definition: QABase.h:117
void RunFileQA(const char *input, const char *output=0, Int_t prodYear=0, const char *prodLetter="")
Definition: RunFileQA.C:21
void AddFile(const char *filename)
Definition: QATrender.C:654