#include <EPStates.h>
Public Types | |
typedef mpl::list < sc::custom_reaction< Run > , sc::custom_reaction< File > > | reactions |
Public Member Functions | |
bool | checkInvariant () |
HandleNewInputFile3 (my_context ctx) | |
sc::result | react (Run const &run) |
sc::result | react (File const &file) |
~HandleNewInputFile3 () |
Definition at line 405 of file EPStates.h.
typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile3::reactions |
Definition at line 414 of file EPStates.h.
statemachine::HandleNewInputFile3::HandleNewInputFile3 | ( | my_context | ctx | ) |
Definition at line 567 of file EPStates.cc.
References checkInvariant().
: my_base(ctx) { context<HandleFiles>().goToNewInputFile(); checkInvariant(); }
statemachine::HandleNewInputFile3::~HandleNewInputFile3 | ( | ) |
bool statemachine::HandleNewInputFile3::checkInvariant | ( | ) |
Definition at line 577 of file EPStates.cc.
References fjr2json::lumi, DTTTrigCorrFirst::run, and convertSQLiteXML::runNumber.
Referenced by HandleNewInputFile3(), react(), and ~HandleNewInputFile3().
{ assert(context<HandleRuns>().currentRun() != INVALID_RUN); assert(context<HandleLumis>().currentLumi().processHistoryID() == context<HandleRuns>().currentRun().processHistoryID()); assert(context<HandleLumis>().currentLumi().run() == context<HandleRuns>().currentRun().runNumber()); assert(context<HandleLumis>().currentLumi().lumi() != INVALID_LUMI); return true; }
sc::result statemachine::HandleNewInputFile3::react | ( | File const & | file | ) |
Definition at line 594 of file EPStates.cc.
References checkInvariant().
{ checkInvariant(); if(!context<HandleFiles>().shouldWeCloseOutput()) { return transit<HandleNewInputFile3>(); } return forward_event(); }
sc::result statemachine::HandleNewInputFile3::react | ( | Run const & | run | ) |
Definition at line 585 of file EPStates.cc.
References checkInvariant().
{ checkInvariant(); if(context<HandleRuns>().currentRun() == run) { return transit<ContinueRun2>(); } return forward_event(); }