- while(fRawStreamTracker->NextDDL()) {
-
- ddlTracker = fRawStreamTracker->GetDDLTracker();
-
- Int_t nBlock = ddlTracker->GetBlkHeaderEntries();
- for(Int_t iBlock = 0; iBlock < nBlock ;iBlock++){
-
- blkHeader = ddlTracker->GetBlkHeaderEntry(iBlock);
-
- Int_t nDsp = blkHeader->GetDspHeaderEntries();
-
- for(Int_t iDsp = 0; iDsp < nDsp ;iDsp++){ //DSP loop
-
- dspHeader = blkHeader->GetDspHeaderEntry(iDsp);
-
- Int_t nBusPatch = dspHeader->GetBusPatchEntries();
-
- for(Int_t iBusPatch = 0; iBusPatch < nBusPatch; iBusPatch++) {
-
- busStruct = dspHeader->GetBusPatchEntry(iBusPatch);
-
- dataSize = busStruct->GetLength();
- buspatchId = busStruct->GetBusPatchId();
-
- for (Int_t iData = 0; iData < dataSize; iData++) {
-
- // digits info
- parity = busStruct->GetParity(iData); // test later for parity
- manuId = busStruct->GetManuId(iData);
- channelId = busStruct->GetChannelId(iData);
- charge = busStruct->GetCharge(iData);
- // set charge
- fDigit->SetSignal(charge);
- fDigit->SetPhysicsSignal(charge);
- fDigit->SetADC(charge);
-
- // Get Back the hits at pads
- Int_t error = GetMapping(buspatchId,manuId,channelId,fDigit);
- if (error) {
- AliWarning("Mapping Error\n");
- continue;
- }
- // debugging
- if (AliLog::GetGlobalDebugLevel() == 3) {
- Int_t padX = fDigit->PadX();
- Int_t padY = fDigit->PadY();
- Int_t iCath = fDigit->Cathode();
- Int_t idDE = fDigit->DetElemId();
-
- AliDebug(1,Form("output IdDE %d busPatchid %d PadX %d PadY %d iCath %d \n",
- idDE, buspatchId, padX, padY, iCath));
-
- AliDebug(3,Form("idDE %d Padx %d Pady %d, Cath %d, charge %d",
- idDE, padX, padY, iCath, charge));
- }
-
- // fill digits
- iChamber = AliMpDEManager::GetChamberId(fDigit->DetElemId());
-
- if (fDigitFlag)
- fMUONData->AddDigit(iChamber, *fDigit);
- else
- fMUONData->AddSDigit(iChamber, *fDigit);