CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions
statemachine::HandleNewInputFile2 Class Reference

#include <EPStates.h>

Inheritance diagram for statemachine::HandleNewInputFile2:

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 (Run const &run)
 
sc::result react (File const &file)
 
 ~HandleNewInputFile2 ()
 

Detailed Description

Definition at line 279 of file EPStates.h.

Member Typedef Documentation

typedef mpl::list< sc::custom_reaction<Run>, sc::custom_reaction<File> > statemachine::HandleNewInputFile2::reactions

Definition at line 288 of file EPStates.h.

Constructor & Destructor Documentation

statemachine::HandleNewInputFile2::HandleNewInputFile2 ( my_context  ctx)

Definition at line 293 of file EPStates.cc.

References checkInvariant().

293  :
294  my_base(ctx) {
295  context<HandleFiles>().goToNewInputFile();
296  checkInvariant();
297  }
statemachine::HandleNewInputFile2::~HandleNewInputFile2 ( )

Definition at line 299 of file EPStates.cc.

References checkInvariant().

299  {
300  checkInvariant();
301  }

Member Function Documentation

bool statemachine::HandleNewInputFile2::checkInvariant ( )

Definition at line 303 of file EPStates.cc.

References assert().

Referenced by HandleNewInputFile2(), react(), and ~HandleNewInputFile2().

303  {
304  assert(context<HandleRuns>().currentRun() != INVALID_RUN);
305  return true;
306  }
assert(m_qm.get())
sc::result statemachine::HandleNewInputFile2::react ( Run const &  run)

Definition at line 308 of file EPStates.cc.

References checkInvariant(), statemachine::HandleRuns::finalizeRun(), and DTTTrigCorrFirst::run.

308  {
309  checkInvariant();
310 
311  if(context<HandleRuns>().currentRun() != run) {
312  return transit<NewRun, HandleRuns, Run>(&HandleRuns::finalizeRun, run);
313  } else {
314  return transit<ContinueRun1>();
315  }
316  }
void finalizeRun(Run const &)
Definition: EPStates.cc:245
sc::result statemachine::HandleNewInputFile2::react ( File const &  file)

Definition at line 318 of file EPStates.cc.

References checkInvariant().

318  {
319  checkInvariant();
320  if(!context<HandleFiles>().shouldWeCloseOutput()) {
321  return transit<HandleNewInputFile2>();
322  }
323  return forward_event();
324  }