#include <FWCore/Framework/src/EPStates.h>
Public Types | |
typedef mpl::list < sc::custom_reaction< Run >, sc::custom_reaction< File > > | reactions |
Public Member Functions | |
bool | checkInvariant () |
HandleNewInputFile2 (my_context ctx) | |
sc::result | react (File const &file) |
sc::result | react (Run const &run) |
~HandleNewInputFile2 () |
Definition at line 264 of file EPStates.h.
typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile2::reactions |
Definition at line 273 of file EPStates.h.
statemachine::HandleNewInputFile2::HandleNewInputFile2 | ( | my_context | ctx | ) |
Definition at line 403 of file EPStates.cc.
References checkInvariant().
00403 : 00404 my_base(ctx) 00405 { 00406 context<HandleFiles>().goToNewInputFile(); 00407 checkInvariant(); 00408 }
statemachine::HandleNewInputFile2::~HandleNewInputFile2 | ( | ) |
Definition at line 410 of file EPStates.cc.
References checkInvariant().
00410 { 00411 checkInvariant(); 00412 }
bool statemachine::HandleNewInputFile2::checkInvariant | ( | ) |
Definition at line 414 of file EPStates.cc.
References statemachine::INVALID_RUN.
Referenced by HandleNewInputFile2(), react(), and ~HandleNewInputFile2().
00414 { 00415 assert(context<HandleRuns>().currentRun() != INVALID_RUN); 00416 return true; 00417 }
sc::result statemachine::HandleNewInputFile2::react | ( | File const & | file | ) |
Definition at line 431 of file EPStates.cc.
References checkInvariant().
00432 { 00433 checkInvariant(); 00434 if (!context<HandleFiles>().shouldWeCloseOutput()) { 00435 return transit<HandleNewInputFile2>(); 00436 } 00437 return forward_event(); 00438 }
sc::result statemachine::HandleNewInputFile2::react | ( | Run const & | run | ) |
Definition at line 419 of file EPStates.cc.
References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and statemachine::Run::id().
00420 { 00421 checkInvariant(); 00422 00423 if (context<HandleRuns>().currentRun() != run.id()) { 00424 return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run); 00425 } 00426 else { 00427 return transit<ContinueRun1>(); 00428 } 00429 }