3 * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4 * @date Fri Jan 6 11:39:22 2012
6 * @brief Script to check a QA file
8 * @ingroup pwglf_forward_qa_scripts
11 * Script to check a QA file. Note that this terminates the ROOT session.
13 * @param filename File to read
15 * @ingroup pwglf_forward_qa_scripts
17 void CheckQAFile(const char* filename)
20 TFile* file = TFile::Open(filename, "READ");
22 Error("CheckQAFile", "No such file %s", filename);
25 TObject* forward1 = file->Get("Forward");
27 Error("CheckQAFile", "No Forward object found in %s", filename);
30 TObject* forward2 = file->Get("ForwardResults");
32 Error("CheckQAFile", "No ForwardResults object found in %s", filename);