1 // To read PMD raw root data and fetch the adc value for each cell
2 void AliPMDRootDataRead()
10 AliRawReaderRoot reader("raw.root",ievt);
11 // reader.NextEvent();
12 cout<<" Processing Event No : "<<ievt<<endl;
15 cout << "LDC ID = " << reader.GetLDCId() << endl;
16 cout << "Equipment ID = " << reader.GetEquipmentId() << endl;
17 cout << "Data Size = " << reader.GetDataSize() << endl;
20 AliPMDRawStream stream(&reader);
24 for (Int_t iddl = 0; iddl < 6; iddl++)
26 reader.Select("PMD", iddl, iddl);
27 junk = stream.DdlData(iddl,&pmdddlcont);
29 Int_t ientries = pmdddlcont.GetEntries();
30 for (Int_t ient = 0; ient < ientries; ient++)
32 AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont.UncheckedAt(ient);
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();
42 //cout << iddl<<" "<<row << " " << col << " " << sig << endl;