Changeset 11425


Ignore:
Timestamp:
07/15/11 15:44:33 (13 years ago)
Author:
ogrimm
Message:
Bug fix for previous trigger cell sanity check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADBoard.cc

    r11414 r11425  
    537537         
    538538          // Check if trigger cells resonable (to trace FAD 'double signal' bug)
    539           if (abs((min_element(Status.TriggerCell,Status.TriggerCell+4) - max_element(Status.TriggerCell,Status.TriggerCell+4) + 1024)%1024) > 20) {
     539          int Diff = abs((max_element(Status.TriggerCell,Status.TriggerCell+4) - min_element(Status.TriggerCell,Status.TriggerCell+4)));
     540          if (Diff > 20 && Diff < 1000) {
    540541                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]);
    541542                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]);
Note: See TracChangeset for help on using the changeset viewer.