Changeset 13170 for trunk/FACT++


Ignore:
Timestamp:
03/22/12 15:01:38 (13 years ago)
Author:
tbretz
Message:
Added checks for the consistency of the event and trigger number.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r13169 r13170  
    868868                CloseRunFile(runNr, 0, 0);
    869869                break;
    870             }
     870                }
     871                */
    871872            if (beg->fEventCounter != ptr->fEventCounter)
    872873            {
    873                 Error("Inconsist run number detected.... closing run.");
     874                fMsg.Error("Inconsistent FAD event number detected.... closing run.");
    874875                CloseRunFile(runNr, 0, 0);
    875                 break;
    876             }
     876                return -1;
     877            }
     878
    877879            if (beg->fTriggerCounter != ptr->fTriggerCounter)
    878880            {
    879                 Error("Inconsist trigger number detected.... closing run.");
     881                fMsg.Error("Inconsistent FTM trigger number detected.... closing run.");
    880882                CloseRunFile(runNr, 0, 0);
    881                 break;
    882             }*/
     883                return -1;
     884            }
    883885
    884886            if (beg->fAdcClockPhaseShift != ptr->fAdcClockPhaseShift)
Note: See TracChangeset for help on using the changeset viewer.