/** * @file RunQA.C * @author Christian Holm Christensen * @date Thu Nov 17 11:35:08 2011 * * @brief Script to run the QATrender over a single run * * @ingroup pwglf_forward_qa_scripts */ class TTree; class TCanvas; /** * Run the QATrender * * The QATrender is run over the list of files (runs) to produce the * file trending.root which contains a TTree of QA * information - one entry per run. * * The QATrender will also produce two files per run: * * - index.root which contains TCanvas objects of * the finished plots. * * - index.pdf which is a PDF of the TCanvases * mentioned above. * * @param input Input file * @param type Data type (data or sim) * @param year Year * @param period Period (e.g., LHC10h) * @param pass Pass (e.g., pass1, cpass1, passMC) * @param runNo Run number * * @ingroup pwglf_forward_qa_scripts */ void RunQA(const char* input, const char* type, Int_t year, const char* period, const char* pass, Long_t runNo) { Bool_t keep = true; gROOT->SetMacroPath(Form(".:$(ANA_SRC)/qa:$(ANA_SRC)/corrs:" "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/qa:" "$(ALICE_ROOT)/PWGLF/FORWARD/analysis2/corrs:" "%s", gROOT->GetMacroPath())); gSystem->AddIncludePath("-I${ALICE_ROOT}/PWGLF/FORWARD/analysis2/qa"); gSystem->Load("libGpad"); gSystem->Load("libTree"); gROOT->LoadMacro("QATrender.C+g"); QATrender t(keep, type, year, period, pass, runNo); t.AddFile(input); // t.SetOutputName("trending.root"); if (!t.Run()) exit(1); } // // EOF //