Changeset 11458 for fact


Ignore:
Timestamp:
07/18/11 17:50:56 (13 years ago)
Author:
ogrimm
Message:
Fixed detection of erroneous trigger cell
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/FADctrl/FADBoard.cc

    r11425 r11458  
    535535          Count++;
    536536          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                 
    545538          // Amplitude calibration (will check if Mode is acalib)
    546539          AmplitudeCalibration();
     
    548541          // Update DIM services if necessary
    549542          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                }
    550550
    551551                // Determine event rate
Note: See TracChangeset for help on using the changeset viewer.