1 //_____________________________________________________//
3 // This macro reads ACORDE DDL Raw Data and //
4 // converts it into Digits //
6 //____________________________________________________ //
9 void ACORDERaw2Digits(Int_t nEvents = 1, char* fileName = "alien:///alice/data/2008/LHC08a_ACORDE/000016788/raw/08000016788014.20.root")
11 // Reads DDL data from fileName
16 TGrid::Connect("alien://");
18 AliRawReader* rawReader = 0x0;
19 // rawReader = new AliRawReaderFile(fileName); // DDL files
20 rawReader = new AliRawReaderRoot(fileName); // DDL files
22 AliACORDERawStream* rawStream = new AliACORDERawStream(rawReader);
24 for (Int_t i=0; i<nEvents; i++) {
25 printf("=========== EVENT %d ===========\n",i);
26 if (!rawReader->NextEvent())
30 if (!rawStream->Next())
32 printf("Data size is %d\n",rawStream->DataSize());
33 for (Int_t j=0; j<4; j++)
34 printf(" %x",rawStream->GetWord(j));