3 * @author Christian Holm Christensen <cholm@nbi.dk>
4 * @date Thu Nov 17 11:35:08 2011
6 * @brief Script to run the QAPlotter over a tree with runs
8 * @ingroup pwglf_forward_qa_scripts
16 * The QAPlotter is then run over the merged <tt>trending.root</tt>
17 * file and produces two files
19 * - <tt>index.root</tt> which contains TCanvas objects of the
20 * finished plots. It also contains the TMultiGraph objects painted
23 * - <tt>index.pdf</tt> which is a PDF of the TCanvases mentioned
26 * The QAPlotter will also produce PNGs of each canvas.
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)
34 * @ingroup pwglf_forward_qa_scripts
37 PeriodQA(const char* input,
44 TString fwd(gSystem->Getenv("QA_FWD"));
45 TString mac(gROOT->GetMacroPath());
47 mac.Prepend(Form(".:%s:",fwd.Data()));
48 gSystem->AddIncludePath(Form("-I%s", fwd.Data()));
51 fwd = gSystem->Getenv("ANA_SRC");
53 fwd = "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2";
54 mac.Prepend(Form(".:%s/qa:%s/corrs:",fwd.Data(), fwd.Data()));
55 gSystem->AddIncludePath(Form("-I%s/qa", fwd.Data()));
57 gROOT->SetMacroPath(mac);
58 gSystem->Load("libGpad");
59 gSystem->Load("libTree");
61 gROOT->LoadMacro("QAPlotter.C+g");
62 QAPlotter p(type, year, period, pass, useVar);
64 // t.SetOutputName("trending.root");
65 if (!p.Run()) exit(1);