Changeset 10082


Ignore:
Timestamp:
Jan 6, 2011, 7:27:07 AM (10 years ago)
Author:
ogrimm
Message:
Fixed bug in display of physical pipeline
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/Evidence/Edd/Edd.cc

    r10079 r10082  
    11361136  rewind(Tmpfile);
    11371137
     1138  // Write event header text to file
    11381139  if (RD->ReadEvent(0, Tmpfile) != CTX_OK) {
    11391140    QMessageBox::warning(this, "Edd Warning","Could not read event.",QMessageBox::Ok);
    11401141    return;
     1142  }
     1143
     1144  // Add trigger cells to file
     1145  fprintf(Tmpfile, "\nTrigger cells:");
     1146  int *TrigCells = (int *) RD->Data;
     1147  for (unsigned int i=0; i<RD->RHeader->NBoards; i++) {
     1148    fprintf(Tmpfile, "\n Board %d   ", i);
     1149        for (unsigned int j=0; j<RD->RHeader->NChips; j++) fprintf(Tmpfile, "%d ", *(TrigCells++));
    11411150  }
    11421151
     
    11781187        for (unsigned int j=0; j<R->Samples; j++) {
    11791188
    1180           if (PhysPipeAction->isChecked()) Cell = (j + Trig) % 1024;
     1189          if (PhysPipeAction->isChecked()) Cell = (j - Trig) % 1024;
    11811190          else Cell = j;
    11821191
     
    11891198         
    11901199          // Set trigger point indicator
    1191           if (Trig == j/*+R->Offset*/) List[i].Trigger->setValue(x, y);
     1200          if (Trig == j) List[i].Trigger->setValue(x, y);       
    11921201    }
    11931202  }
Note: See TracChangeset for help on using the changeset viewer.