Adding a reminder for coders
[u/mrichter/AliRoot.git] / prod / cosmic / qasummary.C
CommitLineData
35bb17ae 1void qasummary()
2{
3 // checks all QA result and issues a summary
4
5 TString cmd = Form(".! ls QA.*.root > tempo.txt") ;
6 gROOT->ProcessLine(cmd.Data()) ;
7 ifstream in("tempo.txt") ;
8 TString file ;
9 while ( 1 ) {
10 in >> file ;
11 if ( !in.good() )
12 break ;
13 TFile qaf(file) ;
14 Bool_t flag = kFALSE ;
15 AliQA * qa = static_cast<AliQA *>(qaf.Get(AliQA::GetQAName())) ;
16 for (Int_t det = 0; det < AliQA::kNDET; det++) {
17 for (Int_t task = 0; task < AliQA::kNTASK; task++) {
18 for (Int_t bit = 0; bit < AliQA::kNBIT; bit++) {
19 if (qa->IsSet(det, task, bit)) {
20 flag = kTRUE ;
21 break ;
22 }
23 if (flag)
24 break ;
25 }
26 if (flag) break ;
27 }
28 if (flag) {
29 printf(" ***************** QA error found in %s :\n", file.Data()) ;
30 qa->Show(det) ;
31 flag = kFALSE ;
32 }
33 }
34 }
35}