2 * this macro will be used to setup QA reference repository.
3 * reference histos are retrieved from input file and stored
4 * in the QA reference repository.
6 * autor: Roberto Preghenella (R+)
7 * contact: preghenella@bo.infn.it
10 FillQAReference(const Char_t *fileName = "$ALICE_ROOT/TOF/data/TOFQA.LHC09a4.80050.root")
13 TFile *file = TFile::Open(fileName);
14 TH2F *hTOFDig_ClusMap = (TH2F *)file->Get("TOFDig_ClusMap");
15 TH1F *hTOFDig_ClusTime = (TH1F *)file->Get("TOFDig_ClusTime");
16 TH1F *hTOFDig_ClusToT = (TH1F *)file->Get("TOFDig_ClusToT");
17 TH1F *hTOFDig_NClus = (TH1F *)file->Get("TOFDig_NClus");
19 if (!hTOFDig_ClusMap || !hTOFDig_ClusTime || !hTOFDig_ClusToT || !hTOFDig_NClus) {
20 printf("couldn't retrieve all reference histos from file. abort.\n");
24 printf("reference histo successfully retrieved.\n");
26 printf("filling QA reference repository...\n");
27 printf("nothing done\n");