]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDRawDataRead.C
Introduction of SPD half-stave volumes, cleaning and new code (in relation to new...
[u/mrichter/AliRoot.git] / PMD / AliPMDRawDataRead.C
1 //
2 void AliPMDRawDataRead()
3 {
4   // To read PMD raw data
5
6   TObjArray pmdddlcont;
7
8   Int_t ievt = 0;
9   AliRawReaderFile reader(ievt);
10   AliPMDRawStream stream(&reader);
11
12   Int_t indexDDL = 0;
13
14
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();
33
34         }
35       pmdddlcont.Clear();
36
37     }
38
39
40 }