]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/ReadAlignmentData.C
Possibility to vary the cos(PA) cut
[u/mrichter/AliRoot.git] / PMD / ReadAlignmentData.C
1 void ReadAlignmentData()
2 {
3   TFile * f = TFile::Open("$ALICE_ROOT/OCDB/PMD/Align/Data/Run0_999999999_v0_s0.root");
4
5   f->ls();
6
7   AliAlignObjMatrix * aam;
8
9   TGeoHMatrix hh;
10   Double_t tr[3];
11   if (!AliCDBEntry)
12     {
13       printf("Something is wrong ************ \n");
14     }
15   else if(AliCDBEntry)
16     {
17       AliCDBEntry->PrintId(); 
18       AliCDBEntry->PrintMetaData();
19
20       TClonesArray * ncut = 0;
21       ncut = (TClonesArray*)AliCDBEntry->GetObject();
22       ncut->Print(); 
23
24       Int_t nen = ncut->GetLast();
25       cout << nen << endl;
26
27       for (int i=0; i<4; i++)
28         {
29           aam = (AliAlignObjMatrix*)ncut->UncheckedAt(i);
30
31           aam->GetMatrix(hh);
32           //hh.Print();
33
34           aam->GetTranslation(tr);
35
36           cout << tr[0] << " " << tr[1] << " " << tr[2] << endl;
37
38         }
39
40     }
41 }