1 // To read PMD raw root data and fetch the adc value for each cell
2 void AliPMDRootDataRead(Char_t *file="rawfile.root",Int_t runNr = 0,
7 AliCDBManager *man = AliCDBManager::Instance();
8 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
11 gBenchmark->Start("");
12 gStyle->SetOptStat(0);
18 TH2F *h2 = new TH2F("h2","Y vs. X",200,-100.,100.,200,-100.,100.);
20 TH1F *h1 = new TH1F("h1","",200,0.,200.);
23 for(Int_t ievt=495; ievt < NEVT; ievt++)
26 //AliRawReaderRoot reader("09000095029017.10.root",ievt);
27 AliRawReaderRoot reader(file,ievt);
29 cout<<" Processing Event No : "<<ievt<<endl;
31 AliPMDRawStream stream(&reader);
35 while((iddl = stream.DdlData(&pmdddlcont)) >= 0)
38 Int_t ientries = pmdddlcont.GetEntries();
40 cout << "iddl = " << iddl << " ientries = " << ientries << endl;
42 for (Int_t ient = 0; ient < ientries; ient++)
44 AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont.UncheckedAt(ient);
46 Int_t det = pmdddl->GetDetector();
47 Int_t smn = pmdddl->GetSMN();
48 Int_t mcm = pmdddl->GetMCM();
49 Int_t pbus = pmdddl->GetPatchBusId();
50 //Int_t chno = pmdddl->GetChannel();
52 Int_t row = pmdddl->GetRow();
53 Int_t col = pmdddl->GetColumn();
54 Int_t sig = pmdddl->GetSignal();
57 //printf("%d %d %d %d %d %d\n",iddl,det,smn,pbus,row,col);
59 if(mcm == 0) continue;
67 else if(smn >=12 && smn < 24)
75 cc.RectGeomCellPos(smn,xpad,ypad,xx,yy);
87 cc.SetWriteModule(1); // set here 0 not to print the module no
88 cc.DrawPMDModule(0); // 0 : for preshower, 1:for CPV plane