#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 403 of file EPStates.h.
typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile3::reactions |
Definition at line 412 of file EPStates.h.
statemachine::HandleNewInputFile3::HandleNewInputFile3 | ( | my_context | ctx | ) |
Definition at line 684 of file EPStates.cc.
References checkInvariant().
: my_base(ctx) { context<HandleFiles>().goToNewInputFile(); checkInvariant(); }
statemachine::HandleNewInputFile3::~HandleNewInputFile3 | ( | ) |
bool statemachine::HandleNewInputFile3::checkInvariant | ( | ) |
Definition at line 695 of file EPStates.cc.
References fjr2json::lumi, CrabTask::run, and ExpressReco_HICollisions_FallBack::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 713 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 703 of file EPStates.cc.
References checkInvariant().
{ checkInvariant(); if (context<HandleRuns>().currentRun() == run) { return transit<ContinueRun2>(); } return forward_event(); }