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