]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDRootDataRead.C
Decalibration is done Exec method
[u/mrichter/AliRoot.git] / PMD / AliPMDRootDataRead.C
CommitLineData
1f86361b 1//
2void AliPMDRootDataRead()
3{
4 // To read PMD raw root data and fetch the adc value for each cell
5
6 TObjArray pmdddlcont;
7
8 Int_t ievt = 2;
9
10 Bool_t junk;
11
12 AliRawReaderRoot reader("raw_6b_61.root",ievt);
13 //reader.NextEvent();
14 //reader.NextEvent();
15
16
17
18 /*
19 reader.ReadHeader();
20 cout << "LDC ID = " << reader.GetLDCId() << endl;
21 cout << "Equipment ID = " << reader.GetEquipmentId() << endl;
22 cout << "Data Size = " << reader.GetDataSize() << endl;
23 */
24
25 AliPMDRawStream stream(&reader);
26
27 Int_t indexDDL = 0;
28
29
30 for (Int_t iddl = 0; iddl < 6; iddl++)
31 {
32
33 reader.Select("PMD", iddl, iddl);
34
35 junk = stream.DdlData(&pmdddlcont);
36
37 Int_t ientries = pmdddlcont.GetEntries();
38 for (Int_t ient = 0; ient < ientries; ient++)
39 {
40 AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont.UncheckedAt(ient);
41
42 Int_t det = pmdddl->GetDetector();
43 Int_t smn = pmdddl->GetSMN();
44 //Int_t mcm = pmdddl->GetMCM();
45 //Int_t chno = pmdddl->GetChannel();
46 Int_t row = pmdddl->GetRow();
47 Int_t col = pmdddl->GetColumn();
48 Int_t sig = pmdddl->GetSignal();
49
50 // cout << row << " " << col << " " << sig << endl;
51
52 }
53 pmdddlcont.Clear();
54
55 }
56
57
58}