Changeset 15355


Ignore:
Timestamp:
04/16/13 10:25:13 (12 years ago)
Author:
tbretz
Message:
Improved the order in runClose to make sure that during DRS calibration the run is closed before it is signaled.
File:
1 edited

Legend:

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

    r15294 r15355  
    758758        }
    759759
     760        /*
    760761        fFiles.erase(it);
    761762
     
    765766
    766767        fDimEvents.Update(fNumEvts);
     768        */
    767769
    768770        const bool rc = file->Close(tail);
     
    771773            // Error message
    772774        }
     775
     776        // Note that this is the signal for the fadctrl to change from
     777        // WritingData back to Connected. If this is done too early,
     778        // a new run might be started before this is closed. This is
     779        // faster, but leads to problems with the DRS calibration
     780        // if the system is fast enough to start the new run before
     781        // this one has really been closed.
     782        fFiles.erase(it);
     783
     784        fLastClosed = file->GetRunId();
     785        CloseRun(fLastClosed);
     786        UpdateRuns();
     787
     788        fDimEvents.Update(fNumEvts);
     789
    773790
    774791        ostringstream str;
Note: See TracChangeset for help on using the changeset viewer.