]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TOF/FillQAReference.C
Added possibility to run without AliTOFcalib object; read t0spread from AliESDEvent
[u/mrichter/AliRoot.git] / TOF / FillQAReference.C
CommitLineData
f8ad78ac 1/*
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.
5 *
6 * autor: Roberto Preghenella (R+)
7 * contact: preghenella@bo.infn.it
8 */
9
10FillQAReference(const Char_t *fileName = "$ALICE_ROOT/TOF/data/TOFQA.LHC09a4.80050.root")
11{
12
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");
18
19 if (!hTOFDig_ClusMap || !hTOFDig_ClusTime || !hTOFDig_ClusToT || !hTOFDig_NClus) {
20 printf("couldn't retrieve all reference histos from file. abort.\n");
21 return;
22 }
23
24 printf("reference histo successfully retrieved.\n");
25
26 printf("filling QA reference repository...\n");
27 printf("nothing done\n");
28
29}