1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // This class provides access to TRD digits in raw data. //
22 // It loops over all TRD digits in the raw data given by the AliRawReader. //
23 // The Next method goes to the next digit. If there are no digits left //
24 // it returns kFALSE. //
25 // Several getters provide information about the current digit. //
27 // Author: C. Lippmann (C.Lippmann@gsi.de) //
29 ///////////////////////////////////////////////////////////////////////////////
32 #include "AliRawReader.h"
33 #include "AliTRDRawStream.h"
34 #include "AliTRDgeometry.h"
35 #include "AliTRDcalibDB.h"
37 ClassImp(AliTRDRawStream)
39 //_____________________________________________________________________________
40 AliTRDRawStream::AliTRDRawStream()
108 // Default constructor
111 for (Int_t i = 0; i < 540; i++) {
117 //_____________________________________________________________________________
118 AliTRDRawStream::AliTRDRawStream(AliRawReader *rawReader)
162 ,fRawReader(rawReader)
186 // Create an object to read TRD raw digits
189 fRawReader->Select("TRD");
191 for (Int_t i = 0; i < 540; i++) {
197 //_____________________________________________________________________________
198 AliTRDRawStream::AliTRDRawStream(const AliTRDRawStream& stream)
269 AliFatal("Copy constructor not implemented");
273 //_____________________________________________________________________________
274 AliTRDRawStream& AliTRDRawStream::operator = (const AliTRDRawStream&
278 // Assigment operator
281 Fatal("operator =", "assignment operator not implemented");
286 //_____________________________________________________________________________
287 AliTRDRawStream::~AliTRDRawStream()
299 //_____________________________________________________________________________
300 void AliTRDRawStream::SetRawReader(AliRawReader *rawReader)
304 fRawReader = rawReader;
308 //_____________________________________________________________________________
309 Bool_t AliTRDRawStream::SetRawVersion(Int_t rv)
312 // Set the raw data version
315 if ( rv >= 0 && rv <= 3 ) {
325 //____________________________________________________________________________
326 Int_t AliTRDRawStream::Init()
332 if (!AliTRDcalibDB::Instance()) {
333 AliError("Could not get calibration object");
338 fGeo = new AliTRDgeometry();
341 fTimeBinsCalib = AliTRDcalibDB::Instance()->GetNumberOfTimeBins();
342 AliDebug(2, Form("Number of Timebins read from CDB: %d", fTimeBinsCalib));
344 // The number of data words needed for this number of time bins (there
345 // are 3 time bins in one word)
346 fTimeWords = (fTimeBinsCalib-1)/3 + 1;
351 fHCHctr1 = fHCHctr2 = 0;
352 fGTUctr1 = fGTUctr2 = -1;
363 fNextStatus = fkStart;
370 fkBufferSet = kFALSE;
374 //____________________________________________________________________________
375 Int_t AliTRDRawStream::NextData()
378 // Updates the next data word pointer
381 if (fCountBytes + kSizeWord >= fBufSize)
383 fkBufferSet = fRawReader->ReadNextData(fPos);
384 if (fkBufferSet == kTRUE)
386 fBufSize = fRawReader->GetDataSize();
388 fDataWord = (UInt_t*)fPos;
389 fNextStatus = fkNextSM;
395 fNextStatus = fkStop;
403 fCountBytes += kSizeWord;
404 fDataWord = (UInt_t*)fPos;
410 //____________________________________________________________________________
411 Bool_t AliTRDRawStream::Next()
414 // Updates the next data word pointer
417 if (fNextStatus == fkStart)
422 while (fNextStatus != fkStop)
425 if (fNextStatus == fkNextMCM || fNextStatus == fkNextData)
429 if( ((*fDataWord & 0x80000000) == 0x0) && ((*fDataWord & 0x0000000f) == 0xC) )
432 if ( fMCM < 0 || fMCM > 15 || fROB < 0 || fROB > 7 )
434 AliWarning("Wrong fMCM or fROB. Skip this data");
435 fRawReader->AddMajorErrorLog(kWrongMCMorROB,Form("MCM=%d, ROB=%d",fMCM,fROB));
436 fNextStatus = fkNextHC;
439 fTbSwitch = 3; // For first adc channel we expect: (*fDataWord & 3) = 3
441 fADC = fTB = 0; // Reset Counter
442 fNextStatus = fkNextData;
446 if ( *fDataWord == kEndofrawdatamarker )
447 { // End of half-chamber data, finished
449 fNextStatus = fkNextHC;
453 if (fNextStatus == fkNextData )
454 { // MCM header is set, ADC data is valid.
456 // Found some data. Decode it now:
457 fRetVal = DecodeDataWord();
458 if ( fRetVal == 0 ) continue;
461 fNextStatus = fkNextHC;
464 if ( fADC > 1 && fADC < (Int_t)fGeo->ADCmax()-1 )
467 if ( fCOL >= 0 && fCOL < fColMax && fROW >= 0 && fROW < fRowMax )
482 if ( fNextStatus == fkNextHC )
485 // 1) Find end_of_tracklet_marker
488 if ( (*fDataWord & 0xfffff000) == 0xe0000000 )
494 // endoftrackletmarker?
495 if ( *fDataWord == kEndoftrackletmarker )
497 AliDebug(3, "end-of-tracklet-marker found");
498 fNextStatus = fkSeekNonEoTracklet;
504 AliDebug(3, "Tracklet found");
510 if (fNextStatus == fkSeekNonEoTracklet)
513 // 2) Look for non-end_of_tracklet_marker
515 //printf("Word %d: 0x%08x\n", fWordCtr, *fDataWord);
517 if ( *fDataWord != kEndoftrackletmarker )
519 fNextStatus = fkDecodeHC;
520 AliDebug(3, "NON end-of-tracklet-marker found");
521 //// no do not continue - this should be the hcheader
525 //just go on and find the non-end_of_tracklet_marker
530 if ( fNextStatus == fkDecodeHC )
532 AliDebug(3, "Decode HC");
535 // 3) This Word must be Half Chamber Header
537 if ( (*fDataWord & 0x00000003) == 1 )
539 DecodeHCheader(fTimeBinsCalib); // This is the new header!
540 fDET = fGeo->GetDetector(fLAYER, fSTACK, fSM);
541 fRowMax = fGeo->GetRowMax(fLAYER,fSTACK,fSM);
542 fColMax = fGeo->GetColMax(fROC);
547 fChamberDone[fDET]++;
548 fNextStatus = fkNextMCM;
549 AliDebug(3, "Decode HC OK");
554 AliDebug(3, "Decode HC NOT OK");
555 fNextStatus = fkNextSM;
560 if (fNextStatus == fkNextSM)
569 // After reading the first word check for size of this data and get Eq. ID
572 fDataSize = fRawReader->GetDataSize()/4; // Size of this payload in 32bit words
573 fEqID = fRawReader->GetEquipmentId(); // Get Equipment ID
574 if ( fDataSize > 0 ) fSizeOK = kTRUE;
578 if ( (*fDataWord & 0xfffff000) == 0xe0000000 )
581 fNextStatus = fkNextHC;
586 AliWarning(Form("Equipment %d: First data word is not GTU Link Mask!", fEqID));
587 fRawReader->AddMajorErrorLog(kGTULinkMaskMissing,Form("Equipment %d",fEqID));
588 fNextStatus = fkStop;
594 AliDebug(1, Form("That's all folks! %d", fSM));
598 //============================================================================
599 // Decoding functions
600 //============================================================================
603 //____________________________________________________________________________
604 void AliTRDRawStream::DecodeHCheader(Int_t timeBins)
607 // Decode the HC header (fRawVersion == 2, 3, 4, ???)
610 fRVmajor = (*fDataWord >> 24) & 0x7f;
611 fRVminor = (*fDataWord >> 17) & 0x7f;
613 if (fRVmajor < 2 || fRVmajor > 4)
614 AliError(Form(" Unsupported raw version: %d", fRawVersion))
616 if ( fRawVersion != fRVmajor ) {
618 AliWarning("===============================================================================");
619 AliWarning(Form("Mismatch between fRawVersion (%d) and fRVmajor from HC header (%d)"
620 ,fRawVersion,fRVmajor));
621 AliWarning(Form("Setting fRawVersion to %d", fRVmajor));
622 AliWarning("===============================================================================");
623 fRawVersion = fRVmajor;
628 // check for zero suppression
629 if ( fRawVersion >= 3 || fRawVersion <= 4 ) fZeroSuppressed = kTRUE;
630 else fZeroSuppressed = kFALSE;
633 if ( (*fDataWord & 0x3) == 1 ) {
635 fHCHWords = (*fDataWord >> 14) & 0x7;
636 fSM = (*fDataWord >> 9) & 0x1f;
637 fLAYER = (*fDataWord >> 6) & 0x7;
638 fSTACK = (*fDataWord >> 3) & 0x7;
639 fSIDE = (*fDataWord >> 2) & 0x1;
641 fROC = fGeo->GetDetectorSec(fLAYER, fSTACK);
643 AliDebug(3, Form("0x%08x: HC header: sm=%d; roc=%d; side=%x", *fDataWord, fSM, fROC, fSIDE+10));
653 AliWarning(Form("0x%08x: Strange HC header: dcs=%d; sm=%d; layer=%d; stack=%d.",
654 *fDataWord, fDCS, fSM, fLAYER, fSTACK));
655 fRawReader->AddMajorErrorLog(kHCHeaderCorrupt,Form("0x%08x:dcs=%d; sm=%d; layer=%d; stack=%d.",
656 *fDataWord, fDCS, fSM, fLAYER, fSTACK));
664 AliWarning(Form("0x%08x: No HC header when it was expected.", *fDataWord));
665 fRawReader->AddMajorErrorLog(kHCHeaderMissing,Form("0x%08x", *fDataWord));
669 if ( fHCHWords >= 1 ) {
670 // read one more word
671 if (NextData() != fkWordOK)
673 AliWarning("Next HC word missing");
674 fRawReader->AddMajorErrorLog(kHCWordMissing,"Next HC word missing");
675 fNextStatus = fkNextHC;
678 if ( (*fDataWord & 0x3) == 1 ) {
680 fBCctr = (*fDataWord >> 16);
681 fPTctr = (*fDataWord >> 12) & 0xf;
682 fPTphase = (*fDataWord >> 8) & 0xf;
683 fTBins = ((*fDataWord >> 2) & 0x3f) + 1;
685 AliDebug(3, Form("0x%08x: HC header 2: BCctr=%d PTctr=%d PTph=%d TB=%d"
686 , *fDataWord, fBCctr, fPTctr, fPTphase, fTBins));
688 if( fTBins != timeBins ) {
690 AliWarning("===============================================================================");
691 AliError(Form("Mismatch between nNTB from CDB (%d) and from HC header (%d)"
692 , timeBins, fTBins));
693 AliWarning(Form("We will use the value from the raw data (HC header): %d", fTBins));
694 AliWarning("===============================================================================");
696 fTimeWords = (fTBins - 1)/3 + 1;
704 if ( fHCHWords >= 2 ) {
705 // read one more word
706 if (NextData() != fkWordOK)
708 AliWarning("Next HC word missing");
709 fRawReader->AddMajorErrorLog(kHCWordMissing,"Next HC word missing");
710 fNextStatus = fkNextHC;
713 if ( (*fDataWord & 0x3) == 1 ) {
715 fTCon = (*fDataWord >> 29) & 0x1;
716 fPEDon = (*fDataWord >> 31) & 0x1;
717 fGAINon = (*fDataWord >> 30) & 0x1;
718 fXTon = (*fDataWord >> 28) & 0x1;
719 fNonLinOn = (*fDataWord >> 27) & 0x1;
720 fBypass = (*fDataWord >> 26) & 0x1;
722 fCommonAdditive = (*fDataWord >> 20) & 0x3f;
724 AliDebug(3, Form("0x%08x: HC header 3: TC=%d, PED=%d, GAIN=%d, XT=%d, NonLin=%d, Bypass=%d, Add=%d"
725 , fTCon, fPEDon, fGAINon, fXTon, fNonLinOn, fBypass, fCommonAdditive));
731 //____________________________________________________________________________
732 void AliTRDRawStream::DecodeMCMheader()
736 // Decode the MCM header
739 if ( fRawVersion < 1 || fRawVersion > 3 )
741 AliError(Form(" Unsupported raw version: %d", fRawVersion));
744 fMCM = (*fDataWord & 0xff000000) >> 24;
745 fEv = (*fDataWord & 0x00fffff0) >> 4;
750 fROW = fGeo->GetPadRowFromMCM(fROB, fMCM);
752 AliDebug(4, Form("0x%08x: SM%d L%dS%d. MCM Header: fROB=%d fMCM=%02d fEv=%02d"
753 , *fDataWord, fSM, fLAYER, fSTACK, fROB, fMCM, fEv));
755 if ( fROB % 2 == 0 && fSIDE == 1 ) {
756 AliWarning(Form("SM%d L%dS%d: Mismatch between fROB (%d) and fSIDE (%d): fMCM=%02d"
757 , fSM, fLAYER, fSTACK, fROB, fSIDE, fMCM ));
758 fRawReader->AddMajorErrorLog(kROBSideMismatch,Form("SM%d L%dS%d: fROB (%d) fSIDE (%d): fMCM=%02d"
759 , fSM, fLAYER, fSTACK, fROB, fSIDE, fMCM ));
761 if ( fROB % 2 != 0 && fSIDE == 0 ) {
762 AliWarning(Form("SM%d L%dS%d: Mismatch between fROB (%d) and fSIDE (%d): fMCM=%02d"
763 , fSM, fLAYER, fSTACK, fROB, fSIDE, fMCM ));
764 fRawReader->AddMajorErrorLog(kROBSideMismatch,Form("SM%d L%dS%d: fROB (%d) fSIDE (%d): fMCM=%02d"
765 , fSM, fLAYER, fSTACK, fROB, fSIDE, fMCM ));
767 if ( (fSTACK == 2 && fROW >= fGeo->RowmaxC0()) ||
768 (fSTACK != 2 && fROW >= fGeo->RowmaxC1()) || fROW < 0 ) {
769 AliWarning(Form("SM%d L%dS%d: Wrong Padrow (%d) fROB=%d, fSIDE=%d, fMCM=%02d"
770 , fSM, fLAYER, fSTACK, fROW, fROB, fSIDE, fMCM ));
771 fRawReader->AddMajorErrorLog(kWrongPadrow,Form("SM%d L%dS%d: Padrow (%d) fROB=%d, fSIDE=%d, fMCM=%02d"
772 , fSM, fLAYER, fSTACK, fROW, fROB, fSIDE, fMCM ));
778 // AdcMask for Zero supressed data
779 if ( fRawVersion == 3 ) {
780 // read one more word
781 if (NextData() != fkWordOK)
783 AliWarning("MCM ADC mask missing");
784 fRawReader->AddMajorErrorLog(kMCMADCMaskMissing,"Missing");
785 fNextStatus = fkNextHC;
788 if ( (*fDataWord & 0x000007ff) == 0xC ) { // at the moment bits 4-10 are empty
790 for ( Int_t ctr = 0; ctr < fGeo->ADCmax(); ctr++ ) {
791 if ( (*fDataWord >> (11+ctr)) == 0x1 ) fADCmask[ctr] = kTRUE;
792 else fADCmask[ctr] = kFALSE;
795 AliDebug(4, Form("0x%08x: ADC mask", *fDataWord));
799 AliWarning("Expected ADC mask but did not find one!");
800 fRawReader->AddMajorErrorLog(kMCMADCMaskMissing,"Decode error");
807 //____________________________________________________________________________
808 void AliTRDRawStream::DecodeTracklet()
812 // Decode the Tracklet
814 // this function is not tested yet on real tracklets
817 if ( fRawVersion < 1 || fRawVersion > 3 )
819 AliError(Form(" Unsupported raw version: %d", fRawVersion));
822 fTracklPID = (*fDataWord >> 24) & 0xff;
823 fTracklPadRow = (*fDataWord >> 20) & 0xf; // 0:15
824 fTracklDefL = (*fDataWord >> 13) & 0x7f;
825 fTracklPadPos = (*fDataWord) & 0x1fff;
827 fTracklPID /= (Float_t)((1<<8) - 1); // 0:1 (steps of 0.39%)
828 fTracklDefL = (fTracklDefL - ((1<< 7)-1)/2.) * 140.e-4; // -0.889:0.889cm
829 fTracklPadPos = (fTracklPadPos - ((1<<13)-1)/2.) * 160.e-4; // -65.528:65.528 cm
831 //AliDebug(4, Form("0x%08x: Tracklet found: SM%d L%dS%d side %x: PadRow=%d PadPos=%f DefL=%f PID=%f"
832 // , *fDataWord, fSM, fLAYER, fSTACK, fSIDE+10
833 // , fTracklPadRow, fTracklPadPos, fTracklDefL, fTracklPID));
835 if( (fSTACK == 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC0()) ||
836 (fSTACK != 2) && (fTracklPadRow >= (Int_t) fGeo->RowmaxC1()) ) {
837 AliWarning(Form("Strange Row read from Tracklet Word: %d", fTracklPadRow));
838 fRawReader->AddMajorErrorLog(kTrackletRowMismatch,Form("Word: %d", fTracklPadRow));
843 //____________________________________________________________________________
844 void AliTRDRawStream::DecodeGTUlinkMask()
848 // Decode the link masks sent by the GTU. These marke the active optical links
849 // between GTU and Super Module. Up to now only fully active links are found
850 // (0xfff = 12 active links).
853 if ( fRawVersion < 1 || fRawVersion > 3 )
855 AliError(Form(" Unsupported raw version: %d", fRawVersion));
858 if ( fGTUctr1 == -1 ) fGTUctr2++;
861 if ( (fGTUctr1 >= 0) && (fGTUctr1 < 5) && (fGTUctr2 >= 0) && (fGTUctr2 < 18) ) {
862 fGTUlinkMask[fGTUctr2][fGTUctr1] = (*fDataWord & 0xfff);
867 //____________________________________________________________________________
868 Int_t AliTRDRawStream::DecodeDataWord()
875 if ( fRawVersion >= 1 && fRawVersion <= 2 ) {
876 return DecodeDataWordV1V2();
878 else if ( fRawVersion >= 3 && fRawVersion <= 3 ) {
879 return DecodeDataWordV3();
882 AliError(Form(" Unsupported raw version: %d", fRawVersion));
887 //____________________________________________________________________________
888 Int_t AliTRDRawStream::DecodeDataWordV1V2()
892 // Decode the Data (full raw data. No zero suppression. 21 adc channels)
894 // return 0 means continue to next data word
895 // return -1 means break data loop
898 if ( (*fDataWord & 0x00000003) != 0x2 && (*fDataWord & 0x00000003) != 0x3) {
899 AliWarning(Form("Data %08x : Data Word ends neither with b11 nor b10", (Int_t)*fDataWord));
900 fRawReader->AddMinorErrorLog(kDataMaskError,Form("Data %08x", (Int_t)*fDataWord));
904 if ( (*fDataWord & 0x00000003) != fTbSwitch ) { // Next ADC channel found
905 fTbSwitch = (fTbSwitch & 2) | !(fTbSwitch & 1); // 0x3 <--> 0x2
911 fTbSwitchCtr++; // Just read one word
913 // We have only timeTotal time bins
914 if ( fTbSwitchCtr > fTimeWords ) {
915 AliWarning(Form("Data is strange. Already found %d words for this ADC channel", (Int_t)fTbSwitchCtr));
916 fRawReader->AddMinorErrorLog(kADCNumberOverflow,Form("%d words", (Int_t)fTbSwitchCtr));
920 // We have only 21 ADC channels.
921 if ( fADC > (Int_t)fGeo->ADCmax()-1 ) {
922 AliWarning(Form("Data %08x : Data is strange. fADC is already %d", (Int_t)*fDataWord, (Int_t)fADC));
923 fRawReader->AddMinorErrorLog(kADCChannelOverflow,Form("Data %08x : fADC=%d", (Int_t)*fDataWord, (Int_t)fADC));
927 // There are 18 pads connected to each MCM ADC channels 2...19. The other channels cross to other
928 // MCMs and are good for online tracking in the MCM.
929 if ( fADC > 1 && fADC < (Int_t)fGeo->ADCmax()-1 ) {
932 fCOL = fGeo->GetPadColFromADC(fROB, fMCM, fADC);
934 // We have only 144 Pad Columns
935 if ( fCOL > fColMax-1 || fCOL < 0 ) {
936 AliWarning(Form("SM%d L%dS%d: Wrong Pad column (%d) fROB=%d, fSIDE=%d, fMCM=%02d", fSM,
937 fLAYER, fSTACK, fCOL, fROB, fSIDE, fMCM ));
938 fRawReader->AddMajorErrorLog(kWrongPadcolumn,Form("SM%d L%dS%d: column (%d) fROB=%d, fSIDE=%d, fMCM=%02d", fSM,
939 fLAYER, fSTACK, fCOL, fROB, fSIDE, fMCM ));
942 // Decode 32 bit data words with information from 3 time bins and copy the data
943 fSig[0] = (*fDataWord & 0x00000ffc) >> 2;
944 fSig[1] = (*fDataWord & 0x003ff000) >> 12;
945 fSig[2] = (*fDataWord & 0xffc00000) >> 22;
947 // Print data to screen:
948 // Do NOT switch on for default production, it is VERY slow
949 // AliDebug(5, Form("SM%d L%dS%d: ROB%d MCM=%d ADC=%d (ROW=%d COL=%d): Data %04d %04d %04d\n",
950 // fSM, fLAYER, fSTACK, fROB, fMCM, fADC, fROW, fCOL, fSig[0], fSig[1], fSig[2]));
963 //____________________________________________________________________________
964 Int_t AliTRDRawStream::DecodeDataWordV3()
968 // Decode the data (Zero suppresses data. 21 adc channels)
970 // return 0 means continue to next data word
971 // return -1 means break data loop
973 // NOT TESTED YET!!!!!!!!
976 if ( (*fDataWord & 0x00000003) != 0x2 && (*fDataWord & 0x00000003) != 0x3) {
977 AliWarning(Form("Data %08x : Data Word ends neither with b11 nor b10", (Int_t)*fDataWord));
978 fRawReader->AddMinorErrorLog(kDataMaskError,Form("Data %08x", (Int_t)*fDataWord));
982 if ( (*fDataWord & 0x00000003) != fTbSwitch ) { // Next ADC channel found
983 fTbSwitch = (fTbSwitch & 2) | !(fTbSwitch & 1); // 0x3 <--> 0x2
986 // Jump to next ADC channel that is not masked
989 } while ( ((fADC < fGeo->ADCmax()) && (fADCmask[fADC] == kFALSE)) || (fADC >= fGeo->ADCmax()) );
993 fTbSwitchCtr++; // Just read one word
995 // We have only timeTotal time bins
996 if ( fTbSwitchCtr > fTimeWords ) {
997 AliWarning(Form("Data is strange. Already found %d words for this ADC channel", (Int_t)fTbSwitchCtr));
998 fRawReader->AddMinorErrorLog(kADCNumberOverflow,Form("%d words", (Int_t)fTbSwitchCtr));
1002 // We have only 21 ADC channels.
1003 if ( fADC > (Int_t)fGeo->ADCmax()-1 ) {
1004 AliWarning(Form("Data %08x : Data is strange. fADC is already %d", (Int_t)*fDataWord, (Int_t)fADC));
1005 fRawReader->AddMinorErrorLog(kADCChannelOverflow,Form("Data %08x : fADC=%d", (Int_t)*fDataWord, (Int_t)fADC));
1009 // There are 18 pads connected to each MCM ADC channels 2...19. The other channels cross to other
1010 // MCMs and are good for online tracking in the MCM.
1011 if ( fADC > 1 && fADC < (Int_t)fGeo->ADCmax()-1 ) {
1014 fCOL = fGeo->GetPadColFromADC(fROB, fMCM, fADC);
1016 // We have only 144 Pad Columns
1017 if ( fCOL > fColMax-1 || fCOL < 0 ) {
1018 AliWarning(Form("SM%d L%dS%d: Wrong Pad column (%d) fROB=%d, fSIDE=%d, fMCM=%02d", fSM,
1019 fLAYER, fSTACK, fCOL, fROB, fSIDE, fMCM ));
1020 fRawReader->AddMajorErrorLog(kWrongPadcolumn,Form("SM%d L%dS%d: column (%d) fROB=%d, fSIDE=%d, fMCM=%02d", fSM,
1021 fLAYER, fSTACK, fCOL, fROB, fSIDE, fMCM ));
1024 // Decode 32 bit data words with information from 3 time bins and copy the data
1025 fSig[0] = (*fDataWord & 0x00000ffc) >> 2;
1026 fSig[1] = (*fDataWord & 0x003ff000) >> 12;
1027 fSig[2] = (*fDataWord & 0xffc00000) >> 22;
1029 // Print data to screen:
1030 AliDebug(5, Form("SM%d L%dS%d: ROB%d MCM=%d ADC=%d (ROW=%d COL=%d): Data %04d %04d %04d\n",
1031 fSM, fLAYER, fSTACK, fROB, fMCM, fADC, fROW, fCOL, fSig[0], fSig[1], fSig[2]));