3 * @author Christian Holm Christensen <cholm@nbi.dk>
4 * @date Thu Nov 17 11:35:08 2011
6 * @brief Script to run the QATrender over a single run
8 * @ingroup pwglf_forward_qa_scripts
16 * The QATrender is run over the list of files (runs) to produce the
17 * file <tt>trending.root</tt> which contains a TTree of QA
18 * information - one entry per run.
20 * The QATrender will also produce two files per run:
22 * - <tt>index.root</tt> which contains TCanvas objects of
25 * - <tt>index.pdf</tt> which is a PDF of the TCanvases
28 * @param input Input file
29 * @param type Data type (data or sim)
31 * @param period Period (e.g., LHC10h)
32 * @param pass Pass (e.g., pass1, cpass1, passMC)
33 * @param runNo Run number
35 * @ingroup pwglf_forward_qa_scripts
38 RunQA(const char* input,
46 TString fwd(gSystem->Getenv("QA_FWD"));
47 TString mac(gROOT->GetMacroPath());
49 mac.Prepend(Form(".:%s:",fwd.Data()));
50 gSystem->AddIncludePath(Form("-I%s", fwd.Data()));
53 fwd = gSystem->Getenv("ANA_SRC");
55 fwd = "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2";
56 mac.Prepend(Form(".:%s/qa:%s/corrs:",fwd.Data(), fwd.Data()));
57 gSystem->AddIncludePath(Form("-I%s/qa", fwd.Data()));
59 gROOT->SetMacroPath(mac);
60 gSystem->Load("libGpad");
61 gSystem->Load("libTree");
63 gROOT->LoadMacro("QATrender.C+g");
64 QATrender t(keep, type, year, period, pass, runNo);
66 // t.SetOutputName("trending.root");
67 if (!t.Run()) exit(1);