]> git.uio.no Git - u/mrichter/AliRoot.git/blob - test/QA/AnaQACorr.C
In vmctest/gun:
[u/mrichter/AliRoot.git] / test / QA / AnaQACorr.C
1 /*
2  *  AnaQACorr.C
3  *  
4  *
5  *  Created by schutz on 15/08/08.
6  *  Copyright 2008 CERN. All rights reserved.
7  *
8  */
9
10 void AnaQACorr(Int_t run)
11 {
12   // Analyze the QA NTUPLE for correlation among detectors
13   // Open the file and get the ntuple
14   TFile fin(Form("CORR.QA.%d.0.root", run)) ; 
15   TNtupleD * nt = dynamic_cast<TNtupleD*>(fin.FindObjectAny(AliQA::GetQACorrName())) ; 
16   TObjArray * branches = nt->GetListOfBranches() ; 
17   printf("The following parameters are available:\n") ; 
18   for ( Int_t b = 0 ; b < branches->GetEntries() ; b++) {
19     printf("  %2d ---> %s\n", b, branches->At(b)->GetName()) ; 
20   }
21 }
22