Changeset 10082 for fact/Evidence
- Timestamp:
- 01/06/11 07:27:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/Evidence/Edd/Edd.cc
r10079 r10082 1136 1136 rewind(Tmpfile); 1137 1137 1138 // Write event header text to file 1138 1139 if (RD->ReadEvent(0, Tmpfile) != CTX_OK) { 1139 1140 QMessageBox::warning(this, "Edd Warning","Could not read event.",QMessageBox::Ok); 1140 1141 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++)); 1141 1150 } 1142 1151 … … 1178 1187 for (unsigned int j=0; j<R->Samples; j++) { 1179 1188 1180 if (PhysPipeAction->isChecked()) Cell = (j +Trig) % 1024;1189 if (PhysPipeAction->isChecked()) Cell = (j - Trig) % 1024; 1181 1190 else Cell = j; 1182 1191 … … 1189 1198 1190 1199 // 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); 1192 1201 } 1193 1202 }
Note:
See TracChangeset
for help on using the changeset viewer.