New detector numbering scheme (common for DAQ/HLT/Offline). All the subdetectors...
[u/mrichter/AliRoot.git] / TOF / AliTOFRawDataRead.C
1 void AliTOFRawDataRead(Int_t iEvent=0)
2 {
3   //
4   // To read TOF raw data
5   //
6
7   Int_t indexDDL = 0;
8
9   AliRawReaderFile reader(ievt);
10
11   for (indexDDL = 0; indexDDL < 72; indexDDL++) {
12
13     reader.Reset();
14     AliTOFRawStream stream(&reader);
15     reader.Select("TOF", indexDDL, indexDDL);
16
17     //FILE *fpw = fopen("TOFrawDataRead.txt","w");
18
19     while(stream.Next()) {
20
21       if (stream.GetSector()==0) {
22
23         printf("%2i %2i %2i %2i         %2i %1i %2i %1i %2i    %7i %8i\n",
24                stream.GetDDL(),stream.GetTRM(),
25                stream.GetTDC(),stream.GetChannel(),
26                stream.GetSector(),stream.GetPlate(),
27                stream.GetStrip(),stream.GetPadZ(),stream.GetPadX(),
28                stream.GetADCbin(),stream.GetTofBin());
29         /*
30           Int_t iSector = stream.GetSector();
31           Int_t iPlate  = stream.GetPlate();
32           Int_t iStrip  = stream.GetStrip();
33           Int_t iPadZ   = stream.GetPadZ();
34           Int_t iPadX   = stream.GetPadX();
35           Int_t iTof    = stream.GetTofBin();
36           Int_t iAdc    = stream.GetADCbin();
37           
38           fprintf(fpw,"%2i %1i %2i %1i %2i %8i %7i\n",
39           iSector, iPlate, iStrip, iPadZ, iPadX, iTof, iAdc);
40         */
41
42       }
43
44     }
45
46   }
47
48 }