- Timestamp:
- 07/18/11 17:50:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/FADctrl/FADBoard.cc
r11425 r11458 535 535 Count++; 536 536 Unlock(); 537 538 // Check if trigger cells resonable (to trace FAD 'double signal' bug) 539 int Diff = abs((max_element(Status.TriggerCell,Status.TriggerCell+4) - min_element(Status.TriggerCell,Status.TriggerCell+4))); 540 if (Diff > 20 && Diff < 1000) { 541 SetStatus("Warning: Trigger cell mismatch board %s, cells are %d %d %d %d", Name, Status.TriggerCell[0], Status.TriggerCell[1], Status.TriggerCell[2], Status.TriggerCell[3]); 542 m->Message(m->WARN, "Trigger cell mismatch board %s, cells are %d %d %d %d", Name, Status.TriggerCell[0], Status.TriggerCell[1], Status.TriggerCell[2], Status.TriggerCell[3]); 543 } 544 537 545 538 // Amplitude calibration (will check if Mode is acalib) 546 539 AmplitudeCalibration(); … … 548 541 // Update DIM services if necessary 549 542 if (Status.Update.tv_sec - PrevStatus.Update.tv_sec > m->EventUpdateDelay) { 543 544 // Check if trigger cells resonable (to trace FAD 'double signal' bug) 545 int Diff = abs((*max_element(Status.TriggerCell,Status.TriggerCell+4) - *min_element(Status.TriggerCell,Status.TriggerCell+4))); 546 if (Diff > 20 && Diff < 1000) { 547 SetStatus("Warning: Trigger cell mismatch board %s, cells are %d %d %d %d", Name, Status.TriggerCell[0], Status.TriggerCell[1], Status.TriggerCell[2], Status.TriggerCell[3]); 548 m->Message(m->WARN, "Trigger cell mismatch board %s, cells are %d %d %d %d", Name, Status.TriggerCell[0], Status.TriggerCell[1], Status.TriggerCell[2], Status.TriggerCell[3]); 549 } 550 550 551 551 // Determine event rate
Note:
See TracChangeset
for help on using the changeset viewer.