- if(fData>=fICarlosWord[0]&&fData<=fICarlosWord[11]) { // Carlos Word
- if(fEndWords==12) continue; // out of event
- else if(fEndWords<12){
- fCarlosId = fData-fICarlosWord[0];
- //cout << "set fCarlosId to " << fCarlosId;
- Int_t iFifoIdx = fCarlosId/3;
- if(fNCarlos == 8) {
- if(fCarlosId==2) iFifoIdx = 1;
- if(fCarlosId==4 || fCarlosId==5) iFifoIdx = 2;
- if(fCarlosId==6 || fCarlosId==7) iFifoIdx = 3 ;
- }
- fNfifo[iFifoIdx] = fCarlosId;
- //cout << " and fNfifo[" << iFifoIdx << "] to " << fNfifo[iFifoIdx] << endl;
- }
- } else if (fData>=fIFifoWord[0]&&fData<=fIFifoWord[3]){
- //cout << "fIdcd: " << fIdcd << endl;
- fIdcd=0;
- if(fEndWords==12) continue; // out of event
- else if(fEndWords<12){
- //cout << "fData-fIFifoWord[0]: " << fData-fIFifoWord[0] << endl;
- fCarlosId = fNfifo[fData-fIFifoWord[0]];
- //cout << "fCarlosId set to " << fCarlosId << " from FIFO Word" << endl;
- }
- }
-
- if((fData >> 4) == 0xFF00000){ // jitter word