1 // To read PMD raw root data and fetch the adc value for each cell
2 void AliPMDRootDataRead(Int_t NEVT = 10)
14 TH2F *h2 = new TH2F("h2","Y vs. X",200,-100.,100.,200,-100.,100.);
17 for(Int_t ievt=3; ievt < NEVT; ievt++)
20 AliRawReaderRoot reader("08000033646024.10.root",ievt);
21 // reader.NextEvent();
22 cout<<" Processing Event No : "<<ievt<<endl;
25 cout << "LDC ID = " << reader.GetLDCId() << endl;
26 cout << "Equipment ID = " << reader.GetEquipmentId() << endl;
27 cout << "Data Size = " << reader.GetDataSize() << endl;
31 AliPMDRawStream stream(&reader);
34 while((iddl = stream.DdlData(&pmdddlcont)) >= 0)
36 Int_t ientries = pmdddlcont.GetEntries();
38 //cout << "iddl = " << iddl << " ientries = " << ientries << endl;
40 for (Int_t ient = 0; ient < ientries; ient++)
42 AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont.UncheckedAt(ient);
44 Int_t det = pmdddl->GetDetector();
45 Int_t smn = pmdddl->GetSMN();
46 //Int_t mcm = pmdddl->GetMCM();
47 //Int_t chno = pmdddl->GetChannel();
48 Int_t row = pmdddl->GetRow();
49 Int_t col = pmdddl->GetColumn();
50 Int_t sig = pmdddl->GetSignal();
52 // cout << iddl<<" "<<row << " " << col << " " << sig << endl;
60 else if(smn >=12 && smn < 24)
68 cc.RectGeomCellPos(smn,xpad,ypad,xx,yy);
79 cc->SetWriteModule(1);