method Raw2SDigits added
[u/mrichter/AliRoot.git] / PMD / AliPMDRawDataRead.C
CommitLineData
3aa0223f 1//
2void AliPMDRawDataRead()
3{
4 // To read PMD raw data
5
df42ab21 6 TObjArray pmdddlcont;
7
3aa0223f 8 Int_t ievt = 0;
9 AliRawReaderFile reader(ievt);
10 AliPMDRawStream stream(&reader);
11
df42ab21 12 Int_t indexDDL = 0;
3aa0223f 13
3aa0223f 14
df42ab21 15 for (Int_t iddl = 0; iddl < 6; iddl++)
16 {
17
18 reader.Select("PMD", iddl, iddl);
19 //cout << reader.GetDataSize() << endl;
20 stream.DdlData(&pmdddlcont);
21 Int_t ientries = pmdddlcont.GetEntries();
22 for (Int_t ient = 0; ient < ientries; ient++)
23 {
24 AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont.UncheckedAt(ient);
25
26 Int_t det = pmdddl->GetDetector();
27 Int_t smn = pmdddl->GetSMN();
28 //Int_t mcm = pmdddl->GetMCM();
29 //Int_t chno = pmdddl->GetChannel();
30 Int_t row = pmdddl->GetRow();
31 Int_t col = pmdddl->GetColumn();
32 Int_t sig = pmdddl->GetSignal();
3aa0223f 33
df42ab21 34 }
35 pmdddlcont.Clear();
3aa0223f 36
37 }
38
df42ab21 39
3aa0223f 40}