Int_t chipLow = AliITSRawStreamSPD::GetOnlineChipFromOffline(mod,0);
Int_t chipHigh = AliITSRawStreamSPD::GetOnlineChipFromOffline(mod,159);
+
if (chipLow>chipHigh) {chipLow -= 4; chipHigh += 4;}
UInt_t hs = AliITSRawStreamSPD::GetOnlineHSFromOffline(mod);
// insert digit into map...
// (reverse order of cols and rows as in real raw data)
- digMap->Insert(chip*256*32+(32-col)*256+(256-row),row);
+ digMap->Insert(chip*256*32+(31-col)*256+(255-row),row);
}
}
for (UInt_t nHit=0; nHit<nrHits; nHit++) {
Int_t key = digMap->GetKeyIndex(nHit);
chip = key/(256*32);
- Int_t col = 32 - (key%(256*32))/256;
+ Int_t col = 31 - (key%(256*32))/256;
Int_t row = digMap->GetValIndex(nHit);
if(previousChip==-1) { // first hit
branch->GetEvent(moduleNumber);
//For each Module, buf contains the array of data words in Binary format
//fIndex gives the number of 32 bits words in the buffer for each module
- GetDigitsSPD(digits,mod,i,buf);
+ GetDigitsSPD(digits,moduleNumber,i,buf);
outfile->WriteBuffer((char *)buf,((fIndex+1)*sizeof(UInt_t)));
for(Int_t i=0;i<(fIndex+1);i++){
buf[i]=0;